Skip to content

Shell script to prevent nested root shells (POSIX)

License

Notifications You must be signed in to change notification settings

burianvlastimil/root-shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Download the latest version         MIT License

Become superuser, but prevent nested root shells

Description: root-shell is a POSIX shell script to prevent nested root shells, which means it will not allow you to go for example sudo -i and again sudo -i, etc.

Usage: I recommend aliasing it for example as alias sup=/path/to/root-shell in Bash, or similarly in other shells.