I don't want any users in my machine to use a command in my machine other than root user. The command is given below.
"sudo -E su"
For security reasons
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
You are asking no other user can do sudo to be a root user.
you just need to edit a line in sudoers file.
change the line from
%admin ALL=(ALL) ALL
your-username ALL:(ALL) ALL
after editing no other user except you can use sudo command. This is kicking all other users from sudoers file. except you.
Lshell is configured via an INI file. By default, it holds a whitelist of allowed commands, but it can be easily configured to prohibit user from using a specific command.