cancel
Showing results for 
Search instead for 
Did you mean: 

problem with su

SOLVED
Go to solution
mjsunil
Advisor

problem with su

Hi,
Iam not able to su to root from one user whereas Iam able to su from another user. Has anybody come across this kind of problem. We havent made any configuration changes. It was working properly earlier.

rgds-mjs
13 REPLIES
Steven E. Protter
Exalted Contributor

Re: problem with su

Check permissions on su

make sure they aare this:
-rwsr-xr-x 1 root root 47522 Aug 12 2003 /bin/su


the /etc/securetty file may have become trashed in some way or may have been set to block su.

Not if a hacker had your box the first thing he/she might do is disable your ability to log on as root an nail he/she.

check for space on root fs and /var du -h

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Stuart Browne
Honored Contributor

Re: problem with su

Have you verified the root password by logging in on the console?
One long-haired git at your service...
Roberto Polli
Trusted Contributor

Re: problem with su

did you check log files looking for an error?
search in /var/log and report error here.
Peace, R>
Kiyoshi Miyake
Frequent Advisor
Solution

Re: problem with su

perhaps pam.
did you change /etc/pam.conf or /etc/pam.d/* ?

or you use *BSD?
so, only wheel group member can su to root.
mjsunil
Advisor

Re: problem with su

Hi,
I have checked the /etc/pam.d/su and i havent enabled the wheel group and pam.wheel.so. The permission is correct for su and root has permission in /etc/securetty.We have space in /var. In /var/log/messages. we are able to su to root with only one user. I tried to create new users and even they r not able to su to root
rgds-mjs
Vitaly Karasik_1
Honored Contributor

Re: problem with su

Can you please copy/paste error passage you receive when you try "su -" ?
Stuart Browne
Honored Contributor

Re: problem with su

Also paste the contents of '/etc/pam.d/su'.
One long-haired git at your service...

Re: problem with su

just in case, check 'which su' to see where the binary is taken from.
Robert Binkhorst
Trusted Contributor

Re: problem with su

Hi,

Do you have sudo installed? try visudoers..

HTH,

Robert
linux: the choice of a GNU generation
mjsunil
Advisor

Re: problem with su

Hi,
When I su i get su: incorrect password and I sure that the /etc/pam.d/su is the default file created during installation. I dont have sudo installed.
rgds-mjs
mjsunil
Advisor

Re: problem with su

Hi,
I have checked the /etc/pam.d/su file and found that use_sid was unchecked.Thks for all your help
rgds-mjs
Overbey
Occasional Visitor

Re: problem with su

you had stated that the /etc/pam.d/su had a uncheck field -- please explain.
I have the same problem and can not figure it out.
Thanks
doverbey
t35t0r
Occasional Visitor

Re: problem with su

Yes. For us it was really our stupidity since we forgot to modify the /etc/pam.d/access.conf file. If this file (or a similar file) is referenced from /etc/pam.d/system-auth:

account required /lib/security/$ISA/pam_access.so accessfile=/etc/security/access.conf

then make sure that file is properly allowing access for the user in question. We had put the new user in a new group but had forgotten to give that group access to login to the machine by modifying the access.conf file.