Sudo ja sudoers: Difference between revisions

From ICO wiki
Jump to navigationJump to search
Rruul (talk | contribs)
Rruul (talk | contribs)
Line 1: Line 1:
== Autor ==
== Autor ==
Väga pooleli!!!
Riti Ruul
Riti Ruul
AK32
AK32



Revision as of 17:47, 26 April 2010

Autor

Väga pooleli!!!

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