Sudo

From MEPIS Documentation Wiki

Jump to: navigation, search

MEPIS doesn't come with "sudo" enabled, however if you prefer to use it instead of using "su" to switch to root, you can follow these simple steps:

  1. Edit as root /etc/sudoers file
  2. Add a line like this: your_username ALL=(ALL) ALL

That means that your user will be able to execute all programs with sudo, alternatively you can set it up for only a list of programs, see man sudoers for more details.


  • Don't forget to remove your user from "sudo" group (either with kcron or by editing /etc/group file and removing your username from "sudo" line). This is necessary because otherwise you'll be able to run any command as root without entering any password, just by typing "sudo" in front of the command -- which is a poor security practice.
Personal tools