View previous topic :: View next topic |
Author |
Message |
mordredP Apprentice
Joined: 17 Oct 2005 Posts: 155 Location: bari.italy.€urope.earth
|
Posted: Wed Oct 26, 2005 8:22 am Post subject: Sudo non funziona [Risolto] |
|
|
Salve a tutti.
posto perche' ho cercato di capire la causa del problema che vi illustero' ma non ci sono riuscito e vorrei quindi un aiuto.
Sul mio sistema utilizzo xfce come WM ed il mio obiettivo era far si che xfsm-shutdown-helper fosse eseguito con privilegi di root anche dal mio utente non-super (mordred).
Questo perche' in tal modo mordred potrebbe spegnere il PC da interfaccia grafica. Il problema e' che, pur avendo seguito le istruzioni di http://gentoo-wiki.com/HOWTO_xfce4 l'opzione di spegnimento e' sempre non disponibile e l'unica attiva e' "quit".
Il mio sudoers contiene questa riga:
Code: | %shutdown ALL=(root) NOPASSWD: /usr/libexec/xfsm-shutdown-helper |
e naturalmente mordred e' bel gruppo shutdown.
Inoltre vagando per il filesystem ho trovato un file nella home di root che riporta degli errori che potrebbero essere utili per capire la fonte del problema:
Code: | avalon : Oct 25 21:54:13 : mordred : can't open /etc/sudoers: Permission denied ; TTY=unknown ; PWD=/home/mordred ; USER=root ; COMMAND=/usr/libexec/xfsm-shutdown-helper |
Gli errori sono molteplici ed apparentemente corrispondono a tutte le volte che ho avviato xfsm-shutdown-helper..
Suggerimenti? _________________ People fall into 10 groups: those who know binary and those who don't
dosmary.netsons.org
01010110
Last edited by mordredP on Thu Oct 27, 2005 9:48 am; edited 1 time in total |
|
Back to top |
|
|
CarloJekko Veteran
Joined: 31 Mar 2005 Posts: 1315 Location: Baia Domizia :-)
|
Posted: Wed Oct 26, 2005 8:33 am Post subject: |
|
|
io ho Code: | %shutdown ALL=(ALL) NOPASSWD: /usr/libexec/xfsm-shutdown-helper |
_________________ C. |
|
Back to top |
|
|
comio Advocate
Joined: 03 Jul 2003 Posts: 2191 Location: Taranto
|
Posted: Wed Oct 26, 2005 8:34 am Post subject: |
|
|
posta un
Code: | ls -al /etc/sudoers
|
_________________ RTFM!!!!
e
http://www.comio.it
|
|
Back to top |
|
|
mordredP Apprentice
Joined: 17 Oct 2005 Posts: 155 Location: bari.italy.€urope.earth
|
Posted: Wed Oct 26, 2005 8:57 am Post subject: |
|
|
Code: | avalon mordred # ls -al /etc/sudoers
-r--r----- 1 root root 1711 Oct 21 20:08 /etc/sudoers |
credo sia giusto cosi' no? _________________ People fall into 10 groups: those who know binary and those who don't
dosmary.netsons.org
01010110 |
|
Back to top |
|
|
X-Drum Advocate
Joined: 24 Aug 2003 Posts: 2517 Location: ('Modica','Trieste','Ferrara') Italy
|
Posted: Wed Oct 26, 2005 1:03 pm Post subject: |
|
|
i permessi dovrebbero essere: Code: | uid:gid root:root
umask 440 |
_________________ "...There are two sort of lies, lies and benchmarks..." |
|
Back to top |
|
|
mordredP Apprentice
Joined: 17 Oct 2005 Posts: 155 Location: bari.italy.€urope.earth
|
Posted: Wed Oct 26, 2005 6:25 pm Post subject: |
|
|
Risolto!
dopo lunghe ricerche ho scoperto che il problema era causato da un bug dell'installazione da stage 3 che a suo tempo avevo effettuato. La soluzione e' stato un semplice
da root. Ed ora mi spiego anche perche' non mi funzionava la bash completion da utente..
Per chi avesse riscontrato il mio stesso problema consiglio di dare un'occhiata qua:
https://bugs.gentoo.org/show_bug.cgi?id=101962
(bug di gentoo 2005.1 per installazione da stage3) _________________ People fall into 10 groups: those who know binary and those who don't
dosmary.netsons.org
01010110 |
|
Back to top |
|
|
gutter Bodhisattva
Joined: 13 Mar 2004 Posts: 7162 Location: Aarau, Aargau, Switzerland
|
Posted: Wed Oct 26, 2005 7:55 pm Post subject: |
|
|
Per favore metti il tag [Risolto]. _________________ Registered as User #281564 and Machines #163761 |
|
Back to top |
|
|
|