Simpler Navigation for Servers and Operating Systems
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
cancel
Showing results for 
Search instead for 
Did you mean: 

restrict su to non-root users

Nazaf Khan
Frequent Advisor

restrict su to non-root users

We need to restrict "su" access such that it should not be possible to su to normal ( unprivileged ) user accounts.
For eg.. su to root should be possible but su to mickey should not be possible.
4 REPLIES
Torsten.
Acclaimed Contributor

Re: restrict su to non-root users

Once you become root you can do everything.

Consider to use sudo to perform commands as root instead of su.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Nazaf Khan
Frequent Advisor

Re: restrict su to non-root users

Hi Torsten,

Thanks for the reply, but my issue is that customer is insisting that, his normal user when used the su command to any other non-root user, it shoud give the error on that su command itself and it should not prompt for the login and the password.

But if that user does the su to root, then he should be able to get the login and password prompt.
Torsten.
Acclaimed Contributor

Re: restrict su to non-root users

Similar thread?

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1206541

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Nazaf Khan
Frequent Advisor

Re: restrict su to non-root users

Thanks Torsten for the reply.

Yes, I do belive that the link can satisfy the customer query.


Thanks a lot.