Aktionen
Configure sudo (sudoers-list)¶
Requirements¶
To install ssh you will need the following:- a installed and supported operating system (e.g. CentOS 8.x)
- root-access
Preliminary Note¶
sudo
allows any user to run commands or a shell as root. Use this with care. This is better than allow everyone access the root-shell directly as there is no easy way to trace who was root when.
- http://wiki.centos.org/TipsAndTricks/BecomingRoot
- http://centoshelp.org/security/sudo-an-advanced-howto
Install¶
sudo
is installed by default.
Config¶
To configure the sudoers-list CentOS supplies the tool visudo
. Don't use any other editor to manipulate the sudoers-list.
to edit the basic sudo.conf by
visudo
if you want to add user-specific rules you might
visudo -f /etc/sudoers.d/user
check the config by
visudo -c
Test¶
sudo -i
Troubleshooting¶
If the command is not allowed to be executed you may use following commands to check the configuration:
as root
visudo -c
Von Jeremias Keihsler vor etwa 4 Jahren aktualisiert · 1 Revisionen