home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!pipex!unipalm!uknet!comlab.ox.ac.uk!tbrann
- From: tbrann@black.ox.ac.uk (Tony Brannigan)
- Newsgroups: comp.unix.programmer
- Subject: Re: Revisited: How to isolate a user... setuid()..?
- Message-ID: <1992Dec16.214950.13617@black.ox.ac.uk>
- Date: 16 Dec 92 21:49:50 GMT
- References: <1992Dec9.235237.26097@mcs.anl.gov> <92121119736@rwsys.wimsey.bc.ca>
- Organization: Oxford University Engineering Dept.
- Lines: 19
- Originator: tbrann@black
-
- root@rwsys.wimsey.bc.ca (Superuser) writes:
- >Not all programs use the enviornment in order to determine the path of
- >the shell program. Often it is hardcoded into the application. In such
- >a case, if you do not wish to tinker with the source code for the application
- >( or cannot ), perhaps you can set the path enviornment for the BBS to
- >first try some off the wall directory that offers a setuid program
- >by the name of sh or csh or whatever. This program will call the
- >real sh after it re-sets the uid to something you would prefer.
-
- This won't work of course, against programs such as vi, rn and berkeley mail
- that allow you to set your own shells. These programs, and many more like
- them require you to alter the source to prevent changing the SHELL environment
- variable.
-
- Tony
- --
- "And soon all of us will sleep under the earth, | tbrann@ox.ac.uk
- we who never let each other sleep above it." | u90afb@ecs.ox.ac.uk
- Marina Tsvetayeva 1915 | oupafb@ox.ac.uk
-