PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > linux.debian.user > /sys/power/state question with sudoers!
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
linux.debian.user debian-user@lists.debian.org.

/sys/power/state question with sudoers!

Réponse
 
LinkBack Outils de la discussion
Vieux 18/08/2007, 16h50   #1
Gnu_Raiz
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut /sys/power/state question with sudoers!

I am writing a shell script that requires sudo so I can hibernate my
machine, as package hibernate has a bug that disallows its useage. When
I go to change the permissions using visido to allow no password, and
access to the /sys/power/state file I still get no permission errors. I
even have set /sys/power/* to allow the user that whole directory. This
will be in shell script, so I have the NOPASSWD option set on
the /etc/sudoers line. Anyone have an idea to get this working, or is
this a bug in the sudo package?

I want to use hibernate without having to type the root password
everytime.

Gnu_Raiz


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 18/08/2007, 17h20   #2
Andrei Popescu
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: /sys/power/state question with sudoers!

On Sat, Aug 18, 2007 at 09:22:00AM -0500, Gnu_Raiz wrote:
> I am writing a shell script that requires sudo so I can hibernate my
> machine, as package hibernate has a bug that disallows its useage. When
> I go to change the permissions using visido to allow no password, and
> access to the /sys/power/state file I still get no permission errors. I
> even have set /sys/power/* to allow the user that whole directory. This
> will be in shell script, so I have the NOPASSWD option set on
> the /etc/sudoers line. Anyone have an idea to get this working, or is
> this a bug in the sudo package?
>
> I want to use hibernate without having to type the root password
> everytime.


It would be nice to post your sudoers file

Regards,
Andrei
--
If you can't explain it simply, you don't understand it well enough.
(Albert Einstein)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGxwzNqJyztHCFm9kRAkUjAJ9CT53sBOqidF/4HpnnZ2iivnommQCeJRWF
fgTDLk0klgXbydx4f1l5Oo0=
=5NIq
-----END PGP SIGNATURE-----

  Réponse avec citation
Vieux 18/08/2007, 17h20   #3
Andrei Popescu
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: /sys/power/state question with sudoers!

On Sat, Aug 18, 2007 at 09:22:00AM -0500, Gnu_Raiz wrote:
> I am writing a shell script that requires sudo so I can hibernate my
> machine, as package hibernate has a bug that disallows its useage. When
> I go to change the permissions using visido to allow no password, and
> access to the /sys/power/state file I still get no permission errors. I
> even have set /sys/power/* to allow the user that whole directory. This
> will be in shell script, so I have the NOPASSWD option set on
> the /etc/sudoers line. Anyone have an idea to get this working, or is
> this a bug in the sudo package?
>
> I want to use hibernate without having to type the root password
> everytime.


It would be nice to post your sudoers file

Regards,
Andrei
--
If you can't explain it simply, you don't understand it well enough.
(Albert Einstein)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGxwzNqJyztHCFm9kRAkUjAJ9CT53sBOqidF/4HpnnZ2iivnommQCeJRWF
fgTDLk0klgXbydx4f1l5Oo0=
=5NIq
-----END PGP SIGNATURE-----

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 02h56.


Édité par : vBulletin®
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,08189 seconds with 11 queries