home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cis.ohio-state.edu!ucbvax!GENIUS.TAU.AC.IL!shani
- From: shani@GENIUS.TAU.AC.IL (Oren Shani)
- Newsgroups: comp.unix.admin
- Subject: Re: Prevent user from editing /etc/passwd
- Message-ID: <1992Aug23.103534.5049@aristo.tau.ac.il>
- Date: 23 Aug 92 10:35:34 GMT
- References: <1992Aug17.131329.22491@cpp.ob.open.de>
- Sender: usenet@ucbvax.BERKELEY.EDU
- Organization: Tel Aviv University School of Math and CS, ISRAEL
- Lines: 27
-
- In article <1992Aug17.131329.22491@cpp.ob.open.de> schweik@cpp.ob.open.de (Martin Schweikert) writes:
- >Hi!
- >
- >I have a user on my SVR3 machine who knows - and must know :-( - the
- >root password.
- >
- >I tried to find a method to prevent him from editing /etc/passwd. It's
- >quite difficult.
- >
- >Martin
-
- There is no way, as far as I know, to prevent a root from editing a file. You
- could write a program that will run vi, after it checked the user's real uid,
- but that user could still, either login as root (If you don't prevent it, and
- I think in SVR3 you can't), or simply run vi in the other name you gave it
- (which the wrapper program call it by).
-
- There are so many more reasons why a user shouldn't have root password, except
- being able to edit /etc/password, that I think the best way is to try and manage
- without letting him know it. If you tell us why he should know that password,
- maybe people can come up with suggestions about how to avoid it.
-
- --
- __ __ Oren Shani (shani@genius.tau.ac.il)
- / / / Faculty of Engineering, Tel Aviv university
- / / -- Israel
- /__/ . __/ . "Hold your temper" -- The caterpillar to Alice
-