Operating System - HP-UX
1833758 Members
2520 Online
110063 Solutions
New Discussion

"su - <username>" asks for password unless isued by root

 
SOLVED
Go to solution
Arturo Castaneda
Occasional Contributor

"su - <username>" asks for password unless isued by root

I'm logged as root at the system, every time I issue a "su - " to switch to any user the system asks for the password, what's going on?

Any way to avoid this?
7 REPLIES 7
John Palmer
Honored Contributor

Re: "su - <username>" asks for password unless isued by root

Hi,

Check the permissions of the su command. They should read:-

-r-sr-xr-x 1 root bin

Regards,
John
Sukant Naik
Trusted Contributor

Re: "su - <username>" asks for password unless isued by root

Hi Arturo,

By default the root user must be allowed to do a su to any account without prompting for a password.

I only suspect the /etc/default/security file or the /etc/nologin file.

Please do man security .

Just my two cents.
-Sukant
Who dares he wins
Alex Glennie
Honored Contributor

Re: "su - <username>" asks for password unless isued by root

well it's not normal behaviour what's the O/S ? is nis or trusted systems involved here ?

I'd advise patching wrt su eg 11.00 PHC0_16127
Charlie Rubeor
Frequent Advisor

Re: "su - <username>" asks for password unless isued by root

It sounds like you are using DCE (Distributed Computing Environment.) If so, then I believe that you are stuck and will have to provide the password, even if you are logged in as root.
Helen French
Honored Contributor

Re: "su - <username>" asks for password unless isued by root

Hi,

Your subject and the question gives some confusion. Normally 'su -' issued by root will not require a password. But if issued by another user, then it will prompt for the password.

If you are root, then check if any alias set for this command:

# alias

If 'su' invoked with -d option, then it will prompt for the password even if it is root. See man pages of su

HTH,
Shiju
Life is a promise, fulfill it!
Mark Vollmers
Esteemed Contributor
Solution

Re: "su - <username>" asks for password unless isued by root

the patch for the 10.20 OS is PHCO_14258

http://us-support2.external.hp.com/wpsl/bin/doc.pl/screen=wpslDisplayPatch/sid=7fdbb6520e70716fad

Mark
"We apologize for the inconvience" -God's last message to all creation, from Douglas Adams "So Long and Thanks for all the Fish"
Arturo Castaneda
Occasional Contributor

Re: "su - <username>" asks for password unless isued by root

In fact I'm logged in as root, not as any other user, that's why it seems so strange to me that it prompts for the password. I'm using HP-UX 10.20

Best Regards.