Aktionen
Configure sudo (sudoers-list)¶
Requirements¶
To install ssh you will need the following:- a installed and supported operating system (e.g. CentOS 6.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 /etc/sudoers.d/user
check the config by
visudo -c
Test¶
Troubleshooting¶
If the command is not allowed to be executed you may use following commands to check the configuration:
as root
visudo -c
as user
sudo -l
as user
sudo -i
whoami
pwd
printenv
Von Jeremias Keihsler vor fast 8 Jahren aktualisiert · 1 Revisionen