su user
I would like to have a special user that can su all general user , but this special user do not have other root permission but only can do su , is that possible to have such user ?
thanks |
You can do it out of any normal $USER so long as he knows the passwd of all other regular users to whom he shall su to. When this su-ing user attempts to su to root the password thereto he must not know, so that he cannot obtain root user privilege; also, this su-ing regular user must have NO "sudo" power: i.e. he is not listed in the /etc/sudoers list. Just make sure that the filesystem he is working to allows him to set user id.
You can try that if it works. It works in my Slackware. Hope that helps. Good luck. |
I guess /etc/sudoers may help you.
Try learn the syntax of the /etc/sudoers file.
& you will get it. |
Quote:
Read the man page on the sudo command, and pay attention to the -u option. Set the sudoers file up accordingly. |
All times are GMT -5. The time now is 07:50 AM. |