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

Re: sudo and shell builtins



On Fri, Aug 02, 2002 at 03:41:05PM -0700, Thanasis Kinias wrote:
> scripsit martin f krafft:
> > also sprach Thanasis Kinias <tkinias@optimalco.com> [2002.08.03.0023
> > +0200]:
> > > In short, is there a way to execute a shell builtin as root using
> > > something like sudo, or must I always open a root shell to use 'cd'
> > > or similar?
> > 
> > When sudo finished, permissions will be dropped. what good is a shell
> > that might have `pwd` set to a non-permitted resource, but not be able
> > to do anything with it since it's administratively prohibited?
> 
> I can do 'sudo ls', 'sudo tail _file_', etc.

How about sudo sh -c 'cd /root/hidden'

provided you have sh allowed in sudo... but this beat security and
should not be used

> -- 
> Thanasis Kinias
> Web Developer, Information Technology
> Graduate Student, Department of History
> Arizona State University
> Tempe, Arizona, U.S.A.
> 
> Ash nazg durbatul???k, ash nazg gimbatul,
> Ash nazg thrakatul???k agh burzum-ishi krimpatul
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> 
> 

-- 
~\^o^/~~~ ~\^.^/~~~ ~\^*^/~~~ ~\^_^/~~~ ~\^+^/~~~ ~\^:^/~~~ ~\^v^/~~~ +++++
 Osamu Aoki @ Cupertino CA USA
 See "User's Guide":     http://www.debian.org/doc/manuals/users-guide/
 See "Debian reference": http://www.debian.org/doc/manuals/debian-reference/
 "Debian reference" Project at: http://qref.sf.net

 I welcome your constructive criticisms and corrections.



Reply to: