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

2007-08-19 Thread Andrei Popescu
On Sun, Aug 19, 2007 at 09:53:20AM -0800, Ken Irving wrote: > On Sun, Aug 19, 2007 at 07:56:07PM +0300, Andrei Popescu wrote: > > On Sun, Aug 19, 2007 at 07:09:29AM -0800, Ken Irving wrote: > > > > > > > $ sudo sh -c "cd /home ; du -s * ??? sort -rn > USAGE" > > > > > > > > > > So, you can do it

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

2007-08-19 Thread Ken Irving
On Sun, Aug 19, 2007 at 07:56:07PM +0300, Andrei Popescu wrote: > On Sun, Aug 19, 2007 at 07:09:29AM -0800, Ken Irving wrote: > > > > > $ sudo sh -c "cd /home ; du -s * ??? sort -rn > USAGE" > > > > > > > > So, you can do it in on command, sudo is lauching a shell, which is > > > > responsible

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

2007-08-19 Thread Andrei Popescu
On Sun, Aug 19, 2007 at 07:09:29AM -0800, Ken Irving wrote: > > > $ sudo sh -c "cd /home ; du -s * ??? sort -rn > USAGE" > > > > > > So, you can do it in on command, sudo is lauching a shell, which is > > > responsible of redirections, pipes, chaining commands... > > > > Please correct me if I

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

2007-08-19 Thread Gnu_Raiz
>"Douglas A. Tutty" <[EMAIL PROTECTED]> >Today 08:59:23 >On Sun, Aug 19, 2007 at 01:58:10PM +0300, Andrei Popescu wrote: > On Sun, Aug 19, 2007 at 11:36:03AM +0200, Gilles Mocellin wrote: > > > I've just read the manpage of sudo, and here's what it says : > > > > To make a usage listing of

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

2007-08-19 Thread Ken Irving
On Sun, Aug 19, 2007 at 01:58:10PM +0300, Andrei Popescu wrote: > On Sun, Aug 19, 2007 at 11:36:03AM +0200, Gilles Mocellin wrote: > > > I've just read the manpage of sudo, and here's what it says : > > > > To make a usage listing of the directories in the /home partition. Note > > that > > t

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

2007-08-19 Thread Douglas A. Tutty
On Sun, Aug 19, 2007 at 01:58:10PM +0300, Andrei Popescu wrote: > On Sun, Aug 19, 2007 at 11:36:03AM +0200, Gilles Mocellin wrote: > > > I've just read the manpage of sudo, and here's what it says : > > > > To make a usage listing of the directories in the /home partition. Note > > that > > t

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

2007-08-19 Thread Andrei Popescu
On Sun, Aug 19, 2007 at 11:36:03AM +0200, Gilles Mocellin wrote: > I've just read the manpage of sudo, and here's what it says : > > To make a usage listing of the directories in the /home partition. Note that > this runs the commands in a sub-shell to make the cd and file redirection > work.

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

2007-08-19 Thread Gilles Mocellin
Le Sunday 19 August 2007 11:08:42 Gilles Mocellin, vous avez écrit : > Le Sunday 19 August 2007 01:00:16 Andrei Popescu, vous avez écrit : > > On Sat, Aug 18, 2007 at 03:35:05PM -0500, Gnu_Raiz wrote: > > > cat sudo_file > > > # /etc/sudoers > > > # > > > # This file MUST be edited with the 'visud

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

2007-08-19 Thread Gilles Mocellin
Le Sunday 19 August 2007 01:00:16 Andrei Popescu, vous avez écrit : > On Sat, Aug 18, 2007 at 03:35:05PM -0500, Gnu_Raiz wrote: > > 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 su

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

2007-08-18 Thread Andrei Popescu
On Sat, Aug 18, 2007 at 03:35:05PM -0500, Gnu_Raiz wrote: > 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. > #Defaultsenv_reset > > # Host alias specification > > # Us

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

2007-08-18 Thread Gnu_Raiz
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. #Defaultsenv_reset # Host alias specification # User alias specification # Cmnd alias specification # User privilege specificati

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

2007-08-18 Thread Andrei Popescu
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

/sys/power/state question with sudoers!

2007-08-18 Thread Gnu_Raiz
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 s