[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: sudo and shell builtins



Osamu Aoki <debian@aokiconsulting.com> writes:

> So right thing is to make small shell program: /usr/local/bin/listit
> from root with root:root 700
>
> ---
> #!/bin/sh
> cd /root/hidden && ls

Why would you do that?  You can always do a sudo ls /root/hidden.  If
you want to do multiple commands somewhere without typing the path
over and over again, 

D=/root/hidden
sudo ls $D
sudo tail $D/file
etc....

-- 
Alan Shutko <ats@acm.org> - In a variety of flavors!
They politics like ours profess, the greater prey upon the less.



Reply to: