Sudo ja sudoers: Difference between revisions

From ICO wiki
Jump to navigationJump to search
Rruul (talk | contribs)
Rruul (talk | contribs)
Line 43: Line 43:


-A
-A
-a type
-a type
-b
-b
-C fd
-C fd
-c class
-c class
-E
-E
-e
-e
-g group
-g group
-H
-H
-h
-h
-i [command]
-i [command]
-K
-K
-k
-k
-L
-L
-l[l] [command]
-l[l] [command]
-n
-n
-P
-P
-p prompt
-p prompt
-r role
-r role
-S
-S
-s [command]
-s [command]
-t type
-t type
-U user
-U user
-u user
-u user
-V
-V
-v
-v
--
--



Revision as of 17:45, 26 April 2010

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