Dies ist nun die Seite, die alles wichtige und interessante zusammenfaßt, wenn man beginnt, das wirklich wichtige und interessante aus den Augen zu verlieren!

Dokumentationen » System » sudoers

sudoers

#	beispieleintragungen

# sudoers file.
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the sudoers man page for the details on how to write a sudoers file.
#

# Host alias specification

# User alias specification
### user koennen zu gruppen zusammengefasst werden
### User_Alias [name]=[user1],[user2],...
### User_Alias testgruppe=user1,user2,user3

# Cmnd alias specification
### kommando benennen
### Cmnd_Alias [name]=[pfad zum programm]
### Cmnd_Alias test=/sbin/test

# Defaults specification

# User privilege specification
### jetzt den usern oder usergruppen die erlaubnis erteilen
### [gruppe] ALL=[name]
### [gruppe] ALL=NOPASSWD:[name] und sudo fragt nicht nach einem passwort
### [user] ALL=[name]
### testgruppe ALL=test
### user2 ALL=!test nimmt user1 die erlaubnis
root ALL=(ALL) ALL

# Uncomment to allow people in group wheel to run all commands
# %wheel ALL=(ALL) ALL

# Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL

# Samples
# %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users localhost=/sbin/shutdown -h now

 
Impressum