su command problem
jhnpublic at yahoo.com
Tue Mar 29 08:25:13 PST 2005
Thank you very much! I had checked the password file,
but had been focused on the mysql account. I only
just noticed that the root account was set to use
/bin/csh for it's shell. When I changed it to
/usr/local/bin/bash, suddenly everything started
working. Thank you for your direction, I really
Thank you to everybody who helped me on this. <Insert
huge sigh of relief here>
--- Kevin Kinsey <kdk at daleco.biz> wrote:
> John Public wrote:
> >I'm apologize for being unclear. Let me try again.
> >have not modified the mysql-server.sh script in any
> >way. The 'su -m mysql -c date' line is merely an
> >example of what I used to see if 'su' is having a
> >problem. All that line does is run the 'date'
> >as the mysql user. I used this for testing between
> >the 5.3 system and the 5.2.1 system to see if there
> >was a difference.
> >Indeed there was a difference. On the 5.2.1 system
> >the command ran 'date' w/o any problem and then
> >returned control to the root shell, but on the 5.3
> >system, it su'ed me to the mysql account, but did
> >execute the 'date' command and stayed w/ the mysql
> >This is how I have come to the conclusion that it
> >something to do w/ the su command or security
> >to it, rather than the scripts which are used to
> >mysql or nagios. I guess I'm trying to determine
> >this is a bug in the 'su' command or if there is a
> >security setting somewhere in 5.3 which changes the
> >behavior of 'su'.
> >Thanks again for your attention.
> So, we need to check on a few things between
> the two systems; I'd start with the contents of
> /etc/passwd, which should be the same on
> both machines.
> FWIW, I can't reproduce the "problem" on 5.3
> nor 4.11, as long as I'm running as root or using
> sudo. Running without privileges gives a "Password"
> prompt, as expected....
> Kevin Kinsey
Do you Yahoo!?
Yahoo! Mail - Easier than ever with enhanced search. Learn more.
More information about the freebsd-questions