Instead of aliasing su="su -" which will not get your intended result, why not alias su as a different command so that users will not know to use the - flag? Or why not create a program or script with another name so that the - flag cannot be used? You could then audit the users' history and make sure they are not using su improperly.
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.