[Gllug] sudo and more interesting commands

Tom Taylor ttaylor at fotango.com
Fri Jul 2 11:33:01 UTC 2004


scenario is I want to run a command like ...

$ echo foo > bar

as a normal user where bar is a file writable only by root.  Using sudo
I would try ...

$ sudo echo foo > bar

but that wouldn't work as only echo is being run as root, nor can I use
a sub shell ... what can I do to sudo a command that is more complicated
that <command> [args]??

Thanks

-- 
Tom Taylor
Systems Administrator
Fotango Ltd.

ttaylor at fotango.com
http://www.fotango.com

-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list