home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / linux / 17639 < prev    next >
Encoding:
Internet Message Format  |  1992-11-23  |  1.9 KB

  1. Path: sparky!uunet!mcsun!uknet!cam-orl!iwj
  2. From: iwj@cam-orl.co.uk (Ian Jackson)
  3. Newsgroups: comp.os.linux
  4. Subject: Re: Packaging Linux
  5. Summary: shutdown/sync login can compromise security
  6. Message-ID: <1992Nov23.130900.28685@cam-orl.co.uk>
  7. Date: 23 Nov 92 13:09:00 GMT
  8. References: <1992Nov20.190335.24454@beaver.cs.washington.edu> <By59LB.Mqy@watserv1.uwaterloo.ca>
  9. Organization: Olivetti Research Ltd
  10. Lines: 28
  11.  
  12. In article <By59LB.Mqy@watserv1.uwaterloo.ca> jjlawren@garfield.uwaterloo.ca writes:
  13. >I personally think that it is very simple to have a login for shutdown (I
  14. >do...why not for std release?) and then tell people...."when you are done
  15. >using the system for the day logout all users and login as shutdown...wait
  16. >10 seconds (for the message that its ok) and then turn off the machine."
  17.  
  18. I agree. Unfortunately the version of xdm I have (and probably every
  19. other) seems to ignore inappropriateness of a user's login shell when
  20. deciding what to do when they log in.
  21.  
  22. If, for example, you have a user "shutdown" with a uid of 0 and no
  23. password, xdm simply starts up an xterm with their shell (shutdown, or
  24. whatever) in it, together with a twm.  The default twm then allows
  25. anyone to get up root shells (bash, etc.) if the shell in the xterm
  26. doesn't complete and die immediately. I'm looking into a way of fixing
  27. this problem and will post when I have figured it out.
  28.  
  29. I think there are various other programs that may read and
  30. misinterpret the password file as well (ftpd?) - perhaps someone else
  31. could comment.
  32.  
  33. In general a program shouldn't assume that a user may do arbitrary
  34. things like transfer files, have shells, etc., unless their login
  35. shell is in /etc/shells.
  36. -- 
  37. Ian Jackson  iwj@cam-orl.co.uk ..!uknet!cam-orl!iwj  These opinions are my own.
  38. Olivetti Research Ltd, Old Addenbrookes Site, Trumpington St, Cambridge, UK;
  39. Home: 35 Molewood Close, Cambridge, CB4 3SR; +44 223 327029.     +44 223 343398
  40.