sudoers

Fórumok

Gutsy.

Felvettem magam a sudo csoportba. Ez van az /etc/sudoers filében:


# /etc/sudoers
Defaults	!lecture,tty_tickets,!fqdn

# Uncomment to allow members of group sudo to not need a password
#EZ HATÁSTALAN:
%sudo ALL=NOPASSWD: ALL

# User privilege specification
root	ALL=(ALL) ALL

# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL

A sudo mégis kéri a jelszavamat. A korábbi Ubuntukon ez működött.

Hozzászólások

Attól még nem kéne magadat betenni ebbe a részbe:

# User privilege specification

Mert csak a sudo csoportnak ad így nopw jogot, és ha nem vagy az, akkor nem megy.

A groups parancsot kiadva látod magad a sudo csopotban?

--
The Net is indeed vast and infinite...
http://gablog.eu

Sziasztok!

Nem tudom beállítani a sudoers fájlt, hogy ne kérjen jelszót a firestarter indítása.
Mit kell és hogyan beállítani, hogy egy programra pl.:/usr/sbin/firestarter ne kérjen jelszót a sudo?

Ezeket próbáltam:

1)
--- sudo visudo (utolsó sor);
levus ALL=(levus) NOPASSWD: /usr/sbin/firestarter
--- Eredmény:
:~$ sudo -l
User levus may run the following commands on this host:
(ALL) ALL
(levus) NOPASSWD: /usr/sbin/firestarter
:~$ sudo /usr/sbin/firestarter
--- Kéri a jelszót tehát ez nem jó.

2)
--- sudo visudo (utolsó sor);
levus ALL= NOPASSWD: /usr/sbin/firestarter
--- Eredmény:
:~$ sudo -l
User levus may run the following commands on this host:
(ALL) ALL
(root) NOPASSWD: /usr/sbin/firestarter
:~$ sudo /usr/sbin/firestarter
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
(firestarter:8207): Gtk-WARNING **: cannot open display:
--- Jelszót sem kér csak elszáll, tehát ez sem jó.

3)
--- sudo visudo (utolsó sor);
levus ALL=(ALL) NOPASSWD: /usr/sbin/firestarter
--- Eredmény:
:~$ sudo -l
User levus may run the following commands on this host:
(ALL) ALL
(ALL) NOPASSWD: /usr/sbin/firestarter
:~$ sudo /usr/sbin/firestarter
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
(firestarter:8213): Gtk-WARNING **: cannot open display:
--- Jelszót sem kér csak elszáll, tehát ez sem jó.