Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

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

From: Andrei Popescu <andreimpopescu(at)gmail.com>
Date: Sun Aug 19 2007 - 06:58:10 EDT


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.
>
> $ 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'm wrong, but this defeats the purpose of restricting sudo to a certain set of commands.

Regards,
Andrei

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

-- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Received on Sun Aug 19 06:58:46 2007

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


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