View previous topic :: View next topic |
Author |
Message |
=DvD= Veteran
Joined: 25 Mar 2004 Posts: 1353
|
Posted: Sun Mar 13, 2005 11:36 am Post subject: xfce quit: spengere il pc da utente [risolto] |
|
|
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 |
|
|
earcar Guru
Joined: 20 Sep 2004 Posts: 425 Location: Bologna, Italy
|
Posted: Sun Mar 13, 2005 11:44 am Post subject: |
|
|
Che intendi per chiuso "ammodino"? _________________ Bip... bip... bip... -- Sputnik 1 |
|
Back to top |
|
|
=DvD= Veteran
Joined: 25 Mar 2004 Posts: 1353
|
Posted: Sun Mar 13, 2005 12:00 pm Post subject: |
|
|
Se dai l'halt lo killa.
Se lo chiudi con quit fa tutte le cose per bene, tipo salvare la sessione... |
|
Back to top |
|
|
Dhaki Guru
Joined: 16 Jun 2004 Posts: 325 Location: Ticino - CH
|
Posted: Sun Mar 13, 2005 12:13 pm Post subject: |
|
|
Io ho fatto aggiungendo:
Code: | Cmnd_Alias XFCEHALT = /usr/libexec/xfsm-shutdown-helper
EMO ALL = NOPASSWD: [..] XFCEHALT |
Edit: con sudo, chiaramente |
|
Back to top |
|
|
earcar Guru
Joined: 20 Sep 2004 Posts: 425 Location: Bologna, Italy
|
Posted: Sun Mar 13, 2005 12:14 pm Post subject: |
|
|
prova a mettere questo nel tuo visudo Code: | wheel localhost=/usr/libexec/xfsm-shutdown-helper |
**earcar _________________ Bip... bip... bip... -- Sputnik 1 |
|
Back to top |
|
|
=DvD= Veteran
Joined: 25 Mar 2004 Posts: 1353
|
Posted: Sun Mar 13, 2005 1:19 pm Post subject: |
|
|
earcar wrote: | prova a mettere questo nel tuo visudo Code: | wheel localhost=/usr/libexec/xfsm-shutdown-helper |
**earcar |
Risolto, grazie a tutti! |
|
Back to top |
|
|
earcar Guru
Joined: 20 Sep 2004 Posts: 425 Location: Bologna, Italy
|
Posted: Sun Mar 13, 2005 1:37 pm Post subject: |
|
|
Perfetto. Ora non dimenticare di aggiungere il tag [risolto] al titolo _________________ Bip... bip... bip... -- Sputnik 1 |
|
Back to top |
|
|
=DvD= Veteran
Joined: 25 Mar 2004 Posts: 1353
|
Posted: Sun Mar 13, 2005 1:47 pm Post subject: |
|
|
earcar wrote: | Perfetto. Ora non dimenticare di aggiungere il tag [risolto] al titolo |
Sto proprio invecchiando... |
|
Back to top |
|
|
earcar Guru
Joined: 20 Sep 2004 Posts: 425 Location: Bologna, Italy
|
Posted: Sun Mar 13, 2005 4:23 pm Post subject: |
|
|
Non ti preoccupare, può capitare a tutti! _________________ Bip... bip... bip... -- Sputnik 1 |
|
Back to top |
|
|
iDreamer Guru
Joined: 23 Jan 2004 Posts: 317 Location: Corigliano Calabro(CS)
|
Posted: Mon Mar 28, 2005 6:34 pm Post subject: |
|
|
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 |
|
|
iDreamer Guru
Joined: 23 Jan 2004 Posts: 317 Location: Corigliano Calabro(CS)
|
Posted: Mon Mar 28, 2005 6:53 pm Post subject: |
|
|
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 |
|
|
|