Operating System - HP-UX
1854906 Members
3663 Online
104105 Solutions
New Discussion

Re: su without supplying password

 
Susanto Hartono
Occasional Advisor

su without supplying password

Hi,

I would like to create a user other than root, but has similar functionallity/privilege as root, That is to "su" to different users without have to supply password ???

is this possible under HPUX 11.0 ? or is there a work around ?

Thanks in advance

Santo
4 REPLIES 4
Kenny Chau
Trusted Contributor

Re: su without supplying password

I think you can create a userid with the UID=0. UID=0 means this user had superuser privilege.

Hope this helps.
Kenny.
Kenny
Deepak Extross
Honored Contributor

Re: su without supplying password

It's a dangerous thing you're asking for, but if you're sure you want to do this, see this thread:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x5d661012aa92d5118ff10090279cd0f9,00.html

Also, investigate the use of 'sudo'. It should help.
K.Vijayaragavan.
Respected Contributor

Re: su without supplying password

Hi,

If you create a new user with the user id "0" or if you change one of the existing user's id to "0" then it is possible. But it is a security risk. Better security policy will not allow duplication of user ids.

have a look at "strings /usr/lib/nls/msg/C/su.cat "

I am not to sure whether the file "/etc/default/security" helps this purpose or not.

-Vijay
"Let us fine tune our knowledge together"
Tom Geudens
Honored Contributor

Re: su without supplying password

Hi,
You might want to use a tool like sudo (http://www.courtesan.com/sudo) to accomplish this. You can then limit the actions executed "as root" to the su ... without creating another uid 0 user.

Hope this helps,
Tom Geudens
A life ? Cool ! Where can I download one of those from ?