[nflug] ubuntu sudo script

anthonyriga torrodimerda at yahoo.com
Thu Jun 21 10:06:40 EDT 2007


How do you run script commands in bash shell using
sudo? 
I was trying to delete some wine files and I get this
error here is the command:

sudo for i in `find -name *wine*`; do rm -f $i; done
bash: syntax error near unexpected token `do

If I take out sudo I get permission denied. How do you
run scripts overiding sudo? I like the security aspect
of sudo but sometimes it gets to be a pain. Suggestions?



 
____________________________________________________________________________________
Need Mail bonding?
Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.
http://answers.yahoo.com/dir/?link=list&sid=396546091


More information about the nflug mailing list