1833589 Members
3851 Online
110061 Solutions
New Discussion

Re: Can't use "su"

 
SOLVED
Go to solution
Cheung_2
Frequent Advisor

Can't use "su"

In our system, part of Login ID can't run ???su??? to login as other user

eg.
# su - tommy
Password:
su: incorrect password

After I use ???su??? and userid , it will pop up ???incorrect password??? , someone can suggest how to fix it? Thx.
Andy
11 REPLIES 11
U.SivaKumar_2
Honored Contributor
Solution

Re: Can't use "su"

Hi,

Login as root.

#chmod +s /bin/su

hope your problem is solved

regards,
U.SivaKumar
Innovations are made when conventions are broken
Cheung_2
Frequent Advisor

Re: Can't use "su"

Hi U.SivaKumar,

I tried your method , it is not success . Thx.
Andy
Rajeev  Shukla
Honored Contributor

Re: Can't use "su"

Can you let us know two things.
1. Is your systems trusted?
2. do "which su" and let me know what it returns and the permission of this file which is returned by above command.

Rajeev
Cheung_2
Frequent Advisor

Re: Can't use "su"

cus//test> which su
/bin/su
cus//test> ll /bin/su
-rwsr-sr-x 1 root root 18452 Jul 24 2001 /bin/su
Andy
Rajeev  Shukla
Honored Contributor

Re: Can't use "su"

sorry for one more thing ..
what version of HP-UX is it.

Thanks
Rajeev
Cheung_2
Frequent Advisor

Re: Can't use "su"

HP UX 11.0
Andy
T G Manikandan
Honored Contributor

Re: Can't use "su"

Some of the su problems are fixed in this patch.

PHCO_16127
http://www1.itrc.hp.com/service/patch/patchDetail.do?patchid=PHCO_16127&context=hpux:800:11:00

check it out and revert
Rajeev  Shukla
Honored Contributor

Re: Can't use "su"

I am surprised at a few things.
1. The file size for 11.00 is different from what you have specified.
2. Ownership of the files are wrong.
Can you do few things.
/bin/sh is a hard link or a copy of /usr/bin/sh. Can you make sure that /usr/bin/sh and /bin/sh have same ownership and permission.
Alternatevely as you said for some logins its working, which might be because some users have /usr/bin/sh as their default shell where as others might be having /bin/sh


Rajeev
Fragon
Trusted Contributor

Re: Can't use "su"

This is my data in L2000 with HP-UX11.00:
#ll /usr/bin/su
-r-sr-xr-x 1 root bin 24576 Aug 7 1998 su
#ll /bin/su
-r-sr-xr-x 1 root bin 24576 Aug 7 1998 su
John Collier
Esteemed Contributor

Re: Can't use "su"

I have the exact same info for those two files that Gerald has. Not that this will help you much, but it is offered to verify that his readings are consistant with other systems.
"I expect to pass through this world but once. Any good, therefore, that I can do, or any kindness that I can show to any human being, let me do it now. Let me not defer or neglect it, for I shall not pass this way again." Stephen Krebbet, 1793-1855
Jose Mosquera
Honored Contributor

Re: Can't use "su"

Usually, the error message is other, but...

Are you using /etc/default/security implementation? pls review SU_ROOT_GROUP definition.

Rgds