Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: /sys/power/state question with sudoers!

From: Gnu_Raiz <gnu.raiz(at)gmail.com>
Date: Sat Aug 18 2007 - 16:35:05 EDT


 cat sudo_file
# /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
#Defaults env_reset

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification

root ALL=(ALL) ALL

xxxx xxxx=NOPASSWD: /bin/echo, /sbin/*, /sys/power/state

note xxxx is used to protect the user.


Do you need help?X

Here is the script I am trying to setup.
#!/bin/bash

#This is a shell script for hibernation.

sudo echo disk >/sys/power/state

Gnu_Raiz

-- 
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Received on Sat Aug 18 16:57:10 2007

This archive was generated by hypermail 2.1.8 : Sun Oct 07 2007 - 02:23:58 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library