[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-jail
Subject:    pam _start: system error
From:       kalnz () kalnz ! id ! lv (Kalnz)
Date:       2007-08-30 3:19:08
Message-ID: 46D6989E.6080400 () kalnz ! id ! lv
[Download RAW message or body]

Alexander Leidinger wrote:
> Quoting Kalnz <kalnz@kalnz.id.lv> (from Mon, 27 Aug 2007 22:21:25 +0300):
>
>> Alexander Leidinger wrote:
>>> Quoting Kalnz <kalnz@kalnz.id.lv> (from Mon, 27 Aug 2007 12:54:19 
>>> +0300):
>>>
>>>> Hi!
>>>>
>>>> After installing (in the jail) mysql-server-5.0.45 from ports,
>>>> I can`t get up and running my mysql server.
>>>> I have to point out that this problem is only inside the jail.
>>>> All I have is:
>>>> 1) clean mysql-server install
>>>> 2) default my.cnf (small systems)
>>>> 3) mysql_enable="YES"
>>>>
>>>> After this server should run, but it didn`t, so I get this:
>>>>
>>>> # /usr/local/etc/rc.d/mysql-server start
>>>> Starting mysql.
>>>> su: pam_start: system error
>>>> #
>>>>
>>>> In the logs there is:
>>>> su: in openpam_load_module(): no pam_unix.so found
>>>> su: pam_start: system error
>>>>
>>>> In fact pam_unix.so file is present in /usr/lib directory.
>>>> I`m sure this is because of jail, but I can`t figure out what could be
>>>> the problem.
>>>
>>> How do you startup the jail, how have you populated the basesystem  
>>> in the jail initially? What's the size of pam_unix.so, what does  
>>> "file /usr/lib/pam_unix.so" print?
>> I took some info from here when making my first  jail :
>> http://www.section6.net/wiki/index.php/Creating_a_FreeBSD_Jail
>> Anyway I have 2 jails and everything was working fine until now when I
>> installed mysql-server and can`t run it inside the jail.
>
> It's not the installtion instruction as documented by FreeBSD. I use 
> mysql in an ezjail (ports) created jail. It works without any problems.
>
>> # file /usr/lib/pam_unix.so output:
>> pam_unix.so: symbolic link to `pam_unix.so.3'
>> The same output from base system.
>> size = 10848 Bytes
>
> As the size is printed, there's a real file at the end of the link. So 
> my first idea what the problem is, is busted. ATM I have no further 
> idea. You would have to "ktrace -i" what the mysql startup is doing 
> and have a look at the output (man ktrace, man dump). Then you can 
> maybe check that everything what it tries to touch is there.
>
> Bye,
> Alexander.
>
At the moment I`ve noticed that mysql do not like 2 files in /etc/pam.d 
- "su" and "other" which are here by default after freebsd install.
In fact in base system mysql works well and /etc/pam.d content is the same.
Anyway when I rename or remove these 2 files, mysql starts and run well, 
it seems there is no problems then.
It is clear that it is connected with pam modules.
I think I should do some debug when starting mysql as you said to find 
out where exactly is the problem...

-- 
Edmunds aka Kalnz

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic