Benutzer-Werkzeuge

Webseiten-Werkzeuge


alias-lsctroot

Root-Crontab als User anzeigen.

alias lsctroot='sudo crontab -u root -l

Per visudo muss dazu in der sudoers folgendes eingerichtet werden.

# User alias specification
User_Alias PRIVUSERS = michael

Cmnd_Alias SYS = /usr/bin/crontab -u root -l

# User privilege specification
root  ALL=(ALL:ALL) ALL
PRIVUSERS ALL=(ALL) NOPASSWD: SYS

# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
%sys ALL=(ALL) NOPASSWD: SYS
alias-lsctroot.txt · Zuletzt geändert: 2020/07/07 13:52 von dwadmin