Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
xfce quit: spengere il pc da utente [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
=DvD=
Veteran
Veteran


Joined: 25 Mar 2004
Posts: 1353

PostPosted: Sun Mar 13, 2005 11:36 am    Post subject: xfce quit: spengere il pc da utente [risolto] Reply with quote

Fino a ieri se dal menù di xfce facevo quit, mi veniva chiesto se volevo terminare la sessione, oppure spengere o riavviare. Se sceglievo di spengere mi chiedeva la passw di root e poi prima chiudeva xfce e poi dava l'halt.
Ora se faccio la stessa cosa, dopo la passwd di root mi dice che non sono abilitato a fare l'operazione.
Con sudo posso fare l'halt da utente, ma mi chiude in malomodo xfce, io vorrei usare il quit suo in modo che xfce venga chiuso ammodino. Cosa ho fatto da ieri a oggi per cambiare la situazione non lo so, non mi ricordo!
Il mio utente è nel gruppo wheel.
Idee?


Last edited by =DvD= on Sun Mar 13, 2005 1:46 pm; edited 1 time in total
Back to top
View user's profile Send private message
earcar
Guru
Guru


Joined: 20 Sep 2004
Posts: 425
Location: Bologna, Italy

PostPosted: Sun Mar 13, 2005 11:44 am    Post subject: Reply with quote

Che intendi per chiuso "ammodino"?
_________________
Bip... bip... bip... -- Sputnik 1
Back to top
View user's profile Send private message
=DvD=
Veteran
Veteran


Joined: 25 Mar 2004
Posts: 1353

PostPosted: Sun Mar 13, 2005 12:00 pm    Post subject: Reply with quote

Se dai l'halt lo killa.
Se lo chiudi con quit fa tutte le cose per bene, tipo salvare la sessione...
Back to top
View user's profile Send private message
Dhaki
Guru
Guru


Joined: 16 Jun 2004
Posts: 325
Location: Ticino - CH

PostPosted: Sun Mar 13, 2005 12:13 pm    Post subject: Reply with quote

Io ho fatto aggiungendo:
Code:
Cmnd_Alias XFCEHALT = /usr/libexec/xfsm-shutdown-helper
EMO ALL = NOPASSWD: [..] XFCEHALT


Edit: con sudo, chiaramente
Back to top
View user's profile Send private message
earcar
Guru
Guru


Joined: 20 Sep 2004
Posts: 425
Location: Bologna, Italy

PostPosted: Sun Mar 13, 2005 12:14 pm    Post subject: Reply with quote

prova a mettere questo nel tuo visudo
Code:
wheel localhost=/usr/libexec/xfsm-shutdown-helper


**earcar :wink:
_________________
Bip... bip... bip... -- Sputnik 1
Back to top
View user's profile Send private message
=DvD=
Veteran
Veteran


Joined: 25 Mar 2004
Posts: 1353

PostPosted: Sun Mar 13, 2005 1:19 pm    Post subject: Reply with quote

earcar wrote:
prova a mettere questo nel tuo visudo
Code:
wheel localhost=/usr/libexec/xfsm-shutdown-helper


**earcar :wink:


Risolto, grazie a tutti!
Back to top
View user's profile Send private message
earcar
Guru
Guru


Joined: 20 Sep 2004
Posts: 425
Location: Bologna, Italy

PostPosted: Sun Mar 13, 2005 1:37 pm    Post subject: Reply with quote

Perfetto. Ora non dimenticare di aggiungere il tag [risolto] al titolo :wink:
_________________
Bip... bip... bip... -- Sputnik 1
Back to top
View user's profile Send private message
=DvD=
Veteran
Veteran


Joined: 25 Mar 2004
Posts: 1353

PostPosted: Sun Mar 13, 2005 1:47 pm    Post subject: Reply with quote

earcar wrote:
Perfetto. Ora non dimenticare di aggiungere il tag [risolto] al titolo :wink:

Sto proprio invecchiando...
Back to top
View user's profile Send private message
earcar
Guru
Guru


Joined: 20 Sep 2004
Posts: 425
Location: Bologna, Italy

PostPosted: Sun Mar 13, 2005 4:23 pm    Post subject: Reply with quote

:lol: Non ti preoccupare, può capitare a tutti! :wink:
_________________
Bip... bip... bip... -- Sputnik 1
Back to top
View user's profile Send private message
iDreamer
Guru
Guru


Joined: 23 Jan 2004
Posts: 317
Location: Corigliano Calabro(CS)

PostPosted: Mon Mar 28, 2005 6:34 pm    Post subject: Reply with quote

ciao.. be io non ho capito molto..
ho provato a modificare sudo
Code:
# sudoers file.
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the sudoers man page for the details on how to write a sudoers file.
#

# Host alias specification

# User alias specification

# Cmnd alias specification

# Defaults specification

# Reset environment by default
Defaults        env_reset
# Uncomment to allow people in group wheel to export variables
# Defaults:%wheel       !env_reset

# Allow people in group users to export specific variables
# Defaults:%users       env_keep=TZ

# Runas alias specification

# *** REMEMBER ***************************************************
# * GIVING SUDO ACCESS TO USERS ALLOWS THEM TO RUN THE SPECIFIED *
# * COMMANDS WITH ELEVATED PRIVILEGES.                           *
# *                                                              *
# * ONLY PERMIT SUDO ACCESS SPARINGLY, AND NEVER ALLOW ACCESS TO *
# * UNTRUSTED USERS.                                             *
# ****************************************************************

# User privilege specification
root    ALL=(ALL) ALL

# Uncomment to allow people in group wheel to run all commands
# %wheel        ALL=(ALL)       ALL

# Same thing without a password
# %wheel        ALL=(ALL)       NOPASSWD: ALL

# Samples
# %users  ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users  localhost=/sbin/shutdown -h now
User_Alias      UTENTI  = idreamer

Cmnd_Alias      XFCE = /usr/libexec/xfsm-shutdown-helper

UTENTI ALL = XFCE
va bene? penso di no..
e poi devo solo modificare sudo.. xfce lo devo lasciare stare?
grazie ciao
_________________
.::..::.iDreamer.::..::.
^__^ -> HH: Happy Hacking
Back to top
View user's profile Send private message
iDreamer
Guru
Guru


Joined: 23 Jan 2004
Posts: 317
Location: Corigliano Calabro(CS)

PostPosted: Mon Mar 28, 2005 6:53 pm    Post subject: Reply with quote

allora ho provato con nano.. e mi [code]fa modificare tranquillamente i file di root..
ma se do xfsm-shutdown****
mi da diciamo errore:
[code]bash-2.05b$ sudo /usr/libexec/xfsm-shutdown-helper
XFSM_SUDO_DONE
FAILED
[/code]

attualmente le parti intersessanti del mio sudo sono
[code] %wheel ALL=(ALL) ALL
%wheel ALL=(ALL) NOPASSWD: ALL
%users idreamer=/usr/libexec/xfsm-shutdown-helper
%users localhost=/usr/bin/nano


[/code]
_________________
.::..::.iDreamer.::..::.
^__^ -> HH: Happy Hacking
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