home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.questions
- Path: sparky!uunet!sangam!shakti!saathi.ncst.ernet.in!howard
- From: howard@saathi.ncst.ernet.in (Howard D'Souza)
- Subject: Re: How can I allow access to a subdirectory without risking other files?
- Message-ID: <BuLt7G.nr@shakti.ncst.ernet.in>
- Sender: news@shakti.ncst.ernet.in (News account)
- Organization: National Centre for Software Technology, Bombay, India.
- References: <92Aug26.165308.27634@acs.ucalgary.ca> <Btq39I.1on@chinet.chi.il.us> <5389@unixhub.SLAC.Stanford.EDU>
- Date: Tue, 15 Sep 1992 05:14:04 GMT
- Lines: 28
-
- In article <5389@unixhub.SLAC.Stanford.EDU> alhy@unixhub.slac.stanford.edu writes:
- >
- >Okay, how about this: create a user, "elvis". Make the directory in
- >question owned by elvis, and have the permission be rwx for elvis
- >ONLY. (Actually, you can probably make it rx for everyone else).
- >Then write a setuid script kinglives which contains the following lines:
- >
- >cd /graceland
- >exec /bin/csh
- >
- >or you could be fancier and try to figure out what the user's shell
- >actually is and exec that. This way, (I think) nobody can write into
- >graceland except elvis. When a use executes kinglives, (s)he becomes
- >elvis and can do anything to graceland.
- >
- > -Scott Berg
-
-
- Yoo hoo !!! What about other property owned by Elvis ? Forgotten about that
- or has Elvis become so altruistic as to give a setuid shell script to the
- whole world at large ?
- Howard
-
-
-
-
- Howard M. D'Souza
- National Centre For Software Technology, Graphics Division
-