Sudo ja sudoers
From ICO wiki
Autor
Riti Ruul AK32
Kirjeldus
Sudo
Käsk sudo võimaldab kasutajal siseneda süsteemi administraatorina.
Sudoers
Kasutajad ja nende tegevused, mida super user 'ina teha saavad on kirjas failis /etc/sudoers. Fail koosneb põhilistest muutujatest ja kasutajate kirjeldustest, mis kontrollib kes mida teeb.
Vaikimisi sudoer fail
# /etc/sudoers # # This file MUST be edited with the 'visudo' command as root. # # See the man page for details on how to write a sudoers file. # Defaults env_reset # Uncomment to allow members of group sudo to not need a password # %sudo ALL=NOPASSWD: ALL # Host alias specification # User alias specification # Cmnd alias specification # User privilege specification root ALL=(ALL) ALL # Members of the admin group may gain root privileges %admin ALL=(ALL) ALL
Omadused
sudo accepts the following command line options:
-A
-a type
-b
-C fd
-c class
-E
-e
-g group
-H
-h
-i [command]
-K
-k
-L
-l[l] [command]
-n
-P
-p prompt
-r role
-S
-s [command]
-t type
-U user
-u user
-V
-v
--