home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / admin / 4617 < prev    next >
Encoding:
Internet Message Format  |  1992-08-20  |  1.7 KB

  1. Path: sparky!uunet!usc!rpi!think.com!barmar
  2. From: barmar@think.com (Barry Margolin)
  3. Newsgroups: comp.unix.admin
  4. Subject: Re: Prevent user from editing /etc/passwd
  5. Date: 20 Aug 1992 16:58:47 GMT
  6. Organization: Thinking Machines Corporation, Cambridge MA, USA
  7. Lines: 30
  8. Message-ID: <170j07INNoj3@early-bird.think.com>
  9. References: <1992Aug17.131329.22491@cpp.ob.open.de> <21390@rpp386.lonestar.org>
  10. NNTP-Posting-Host: telecaster.think.com
  11.  
  12. In article <21390@rpp386.lonestar.org> jfh@rpp386.cactus.org (John F. Haugh II) writes:
  13. >In article <1992Aug17.131329.22491@cpp.ob.open.de> schweik@cpp.ob.open.de (Martin Schweikert) writes:
  14. >>I have a user on my SVR3 machine who knows - and must know :-( - the
  15. >>root password.
  16. >
  17. >If you know who it is, turn off their account.  This will give you
  18. >the time to figure out how they are doing it later.
  19.  
  20. I interpreted the "and must know" to mean that this user is authorized to
  21. know the root password.  If the user is authorized to use the root
  22. password, that implies that he's supposed to have an account.  Disabling
  23. his account it probably not an option.
  24.  
  25. The question I have is why would someone who can't be trusted not to edit
  26. the passwd file be authorized to have the root password.  If he needs to be
  27. able to do a few things that require superuser access, maybe you need
  28. something like "sudo", which permits you to give him a specific set of
  29. commands that run with root privileges.
  30.  
  31. >>I tried to find a method to prevent him from editing /etc/passwd. It's
  32. >>quite difficult.
  33. >
  34. >chmod a-w /etc/passwd
  35.  
  36. That won't work.  Write access isn't checked when you're the superuser.
  37. -- 
  38. Barry Margolin
  39. System Manager, Thinking Machines Corp.
  40.  
  41. barmar@think.com          {uunet,harvard}!think!barmar
  42.