I haven't tried this, so I won't swear it will work. But you could change the permissions of /usr/bin/su so that only members of a specific group could run the command. For example, since su's group is sys, make the users you want to run su secondary members of the sys group. Then remove world execute for /usr/bin/su.
Adding these users to a privileged group might bring up other issues, so perhaps removing execute perms for others and creating an ACL to allow members of the ACL to run the command would be a better way to go.
Hmmm I have a similar problem but the other way around.
There is a machine where not all users are allowed to "SU" to root user...
I want to add another user to do this, but I don't know where it is configured !?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.