Disable root and let su do the work
Editiere:
visudo
=
nano /etc/sudoers
Rechte an eine Gruppe oder Nutzer übergeben
# User privilege specification
root ALL=(ALL:ALL) ALL
<USERNAME> ALL=(ALL) ALL
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
<USERGROUP> ALL=(ALL) ALL
# See sudoers(5) for more information on "#include" directives:
#includedir /etc/sudoers.
Notiz:
root ALL=(ALL:ALL) ALL
This permits the root user on ALL hosts using ALL users to execute ALL commands.
“%” in front of the user, and it will define a group.
Extra-Tweaks
**** when typing password
Die Zeile anpassen/erweitern
Defaults env_reset,pwfeedback
... oder am Ende der Datei hinzufügen
Defaults pwfeedback
... timeout in minutes
Defaults timestamp_timeout=10
sources:
- //linuxize.com/post/sudo-command-in-linux/
- //www.hostinger.com/tutorials/sudo-and-the-sudoers-file/
- //www.maketecheasier.com/edit-sudoers-file-linux/
- //www.computerhope.com/unix/visudo.htm
- //www.maketecheasier.com/disable-root-account-linux/