Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Sudo non funziona [Risolto]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
mordredP
Apprentice
Apprentice


Joined: 17 Oct 2005
Posts: 155
Location: bari.italy.€urope.earth

PostPosted: Wed Oct 26, 2005 8:22 am    Post subject: Sudo non funziona [Risolto] Reply with quote

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
View user's profile Send private message
CarloJekko
Veteran
Veteran


Joined: 31 Mar 2005
Posts: 1315
Location: Baia Domizia :-)

PostPosted: Wed Oct 26, 2005 8:33 am    Post subject: Reply with quote

io ho
Code:
%shutdown ALL=(ALL) NOPASSWD: /usr/libexec/xfsm-shutdown-helper

_________________
C.
Back to top
View user's profile Send private message
comio
Advocate
Advocate


Joined: 03 Jul 2003
Posts: 2191
Location: Taranto

PostPosted: Wed Oct 26, 2005 8:34 am    Post subject: Reply with quote

posta un
Code:
ls -al /etc/sudoers

_________________
RTFM!!!!

e

http://www.comio.it
:)
Back to top
View user's profile Send private message
mordredP
Apprentice
Apprentice


Joined: 17 Oct 2005
Posts: 155
Location: bari.italy.€urope.earth

PostPosted: Wed Oct 26, 2005 8:57 am    Post subject: Reply with quote

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
View user's profile Send private message
X-Drum
Advocate
Advocate


Joined: 24 Aug 2003
Posts: 2517
Location: ('Modica','Trieste','Ferrara') Italy

PostPosted: Wed Oct 26, 2005 1:03 pm    Post subject: Reply with quote

i permessi dovrebbero essere:
Code:
uid:gid root:root
umask 440

_________________
"...There are two sort of lies, lies and benchmarks..."
Back to top
View user's profile Send private message
mordredP
Apprentice
Apprentice


Joined: 17 Oct 2005
Posts: 155
Location: bari.italy.€urope.earth

PostPosted: Wed Oct 26, 2005 6:25 pm    Post subject: Reply with quote

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
Code:
chmod 0755 /

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
View user's profile Send private message
gutter
Bodhisattva
Bodhisattva


Joined: 13 Mar 2004
Posts: 7162
Location: Aarau, Aargau, Switzerland

PostPosted: Wed Oct 26, 2005 7:55 pm    Post subject: Reply with quote

Per favore metti il tag [Risolto].
_________________
Registered as User #281564 and Machines #163761
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum