Operating System - HP-UX
1834685 Members
2316 Online
110069 Solutions
New Discussion

su command for an id which is disabled

 
SOLVED
Go to solution
Joyce Suganthy
Advisor

su command for an id which is disabled

Hi,

Just a question. I have an id which is disabled because of password aging. Now is i log in to the machine as root, and then using the "su" command to log into the server using the disabled id, will i be able to run some of the user's proprietry jobs, like starting some processes that is belonging to the id?

Thanks

Regards
Joyce
4 REPLIES 4
Hoefnix
Honored Contributor
Solution

Re: su command for an id which is disabled

If you are able to switch to the user-id with su - you should be able to do this. (I am not sure if you can su to the user?)

But if you are able to become root, why not activate the user again (if you are not that experienced use SAM to do this)

Regards,
Peter
T G Manikandan
Honored Contributor

Re: su command for an id which is disabled

Only other users cannot do a su to that user.Also the user disabled cannot login.
But
Super user i.e. root can do anything.He is unrestricted.
For all your above questions,
Yes root can!

Hein van den Heuvel
Honored Contributor

Re: su command for an id which is disabled


Yes, as root you can switch to the user.

Why not simply try it?
(with SAM) Create a user
verify uer works
(with SAM) Disable user (accounts.. users..
select... Actions... (Re/De)Active.
check user still there : grep user /etc/passwd
verify login fails
verify su - user users


enjoy,
Hein.
Jeroen Peereboom
Honored Contributor

Re: su command for an id which is disabled

Joyce,

this is normal behaviour.
Root will have no problems su-ing.
Other users will not be able to su.

JP.