home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / sun / admin / 9363 < prev    next >
Encoding:
Text File  |  1992-12-12  |  1.9 KB  |  47 lines

  1. Newsgroups: comp.sys.sun.admin
  2. Path: sparky!uunet!cs.utexas.edu!zaphod.mps.ohio-state.edu!news.acns.nwu.edu!nucsrl!pex.eecs.nwu.edu!phil
  3. From: phil@pex.eecs.nwu.edu (William LeFebvre)
  4. Subject: Re: /bin/passwd modifications
  5. Message-ID: <1992Dec11.211903.3741@eecs.nwu.edu>
  6. Sender: usenet@eecs.nwu.edu (Mr. Usenet)
  7. Organization: EECS Department, Northwestern University
  8. References: <9234012.6911@mulga.cs.mu.OZ.AU> <GERD.92Dec6181312@kim.intellektik.informatik.th-darmstadt.de>
  9. Date: Fri, 11 Dec 1992 21:19:03 GMT
  10. Lines: 35
  11.  
  12. In article <GERD.92Dec6181312@kim.intellektik.informatik.th-darmstadt.de> gerd@intellektik.informatik.th-darmstadt.de (Gerd Neugebauer) writes:
  13. >
  14. >In article <9234012.6911@mulga.cs.mu.OZ.AU> carl@montebello.ecom.unimelb.EDU.AU (Carl Brewer) writes:
  15. >
  16. >[...]
  17. >
  18. >CB> I want to disable the -s option on passwd (to stop users 
  19. >CB> altering their login shells).  I'm not sure if this is
  20. >CB> the best way to do it, but ...
  21. >
  22. >[Ideas about hacking around deleted]
  23. >
  24. >CB> or is there a better way?
  25. >
  26. >Yes there is!
  27. >
  28. >Just modify the file /etc/shells to contain approved shells. If it
  29. >contains only one shell nobody (except root) is able to change the
  30. >shell. See also  passwd(1)
  31.  
  32. Be aware: any user who does not have a shell listed in /etc/shells
  33. will not be able to do an FTP login.  That is, they will not be
  34. able to connect to the machine's FTP server and use it with their
  35. username and password.  This will not be a problem if everyone is
  36. forced to use the shell that is the only one listed in /etc/shells.
  37.  
  38. By the way, I personally see nothing wrong with letting users change
  39. their login shells, as long as it is one of the shells listed in
  40. /etc/shells.  My /etc/shells contains sh, csh, tcsh, and bash....
  41.  
  42.         William LeFebvre
  43.         Computing Facilities Manager and Analyst
  44.         Department of Electrical Engineering and Computer Science
  45.         Northwestern University
  46.         <phil@eecs.nwu.edu>
  47.