Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
avvio script per suspend2 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
Tigerwalk
Guru
Guru


Joined: 15 May 2007
Posts: 475
Location: Napoli

PostPosted: Wed Mar 05, 2008 10:06 am    Post subject: avvio script per suspend2 da utente[RISOLTO] Reply with quote

Salve, chiedo scusa eventualmente ai Mod. se ritengono che il post vada in altra sezione del forum.
vedendo in giro, ho fatto uno script semplice semplice che manda il sistema in suspend2 ogni volta che lo avvio:
Code:
#!/bin/sh
echo -n mem > /sys/power/state

Ovviamente per avviarlo devo essere root! Mi piacerebbe poterlo avviare da utente, ho cercato di modificare /etc/sudoers guardando la man page ma non ci sono riuscito.
Qualcuno è così gentile da indicarmi cosa scrivere nel suddetto file affinchè possa avviare lo script da user?
Grazie!

EDIT: risolto aggiungendo
Code:
NOME_UTENTE NOME_HOST=(root) NOPASSWD: /dove/ho/messo/lo/script.sh

all' /etc/sudoers.
_________________
Linux user N°447789
Carpe diem (quam minimum credula postero) -Orazio (I,11)
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