Sudo ja sudoers

From ICO wiki
Revision as of 18:46, 26 April 2010 by Rruul (talk | contribs)
Jump to navigationJump to search

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

--

Kasutatud materjal

http://manpages.ubuntu.com/manpages/karmic/man8/sudo.8.html

https://help.ubuntu.com/community/Sudoers