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 - 12:56:07 EDT


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'm wrong, but this defeats the purpose of
> > restricting sudo to a certain set of commands.
>
> The command here is 'sh', so this could be restricted as usual.

Of course you could, but if you're able to run sh what prevents you from using it to run anything else?

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 12:56:31 2007

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


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