Sudo Shell?
Chris Covington
ccoving at uhc.com
Wed Jun 28 17:21:38 EDT 2000
Thanks for the workaround, but it still causes usability problems with
my users. I'm wondering if the following is possible or if there is
another utility I should look into to do it (basically an "su" that logs
each command):
$ id
joeuser 99
$ sudoshell
-- you are now root with idle timeout in 5 minutes
-- and commands logged like you had issued sudo before each command
# cd /restricted/dir1/dir2/dir3
# pwd
/restricted/dir1/dir2/dir3
# id
root 0
Thanks,
Chris
Paul Lussier wrote:
>
> In a message dated: Wed, 28 Jun 2000 15:56:36 CDT
> Chris Covington said:
>
> >Unfortunately, the files are several directories deep, so it gets
> >tedious to type them each time (and then hard to get the users to agree
> >to use sudo). Thanks anyway though.
>
> Hmmmm, how about:
>
> > sudo "ls -lR forbidden_dir | less"
>
> --
> Seeya,
> Paul
> ----
--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
Chris Covington, Unix Services and Consulting
UnitedHealthGroup, ccoving at uhc.com
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
More information about the sudo-users
mailing list