home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / linux / 25574 < prev    next >
Encoding:
Internet Message Format  |  1993-01-27  |  2.4 KB

  1. Path: sparky!uunet!nwnexus!remote!UUCP
  2. From: Randy.Edwards@f60.n128.z1.fidonet.org (Randy Edwards)
  3. Newsgroups: comp.os.linux
  4. Subject: 2 Linux ques. (read faq:
  5. Message-ID: <728095509.AA36500@remote.halcyon.com>
  6. Date: Sun, 24 Jan 1993 19:39:00 -0800
  7. Sender: UUCP@remote.halcyon.com
  8. Lines: 51
  9.  
  10.    I'm a Linux newbie who has poured through a couple of books on Un*x 
  11. during the last couple of weeks, and is now making my way through 
  12. _Managing UUCP..._.  Anyway, a couple of odd things have been bothering
  13.  
  14. me about Linux (I'm using the most recent SLS version). 
  15.  
  16.    First, is the useradd command.  I've got my /etc/skel directory all 
  17. set up, and everything looks good.  I can run useradd successfully and 
  18. it'll create the new user's home directory, copy in the /etc/skel files
  19.  
  20. -- and everything looks great: except the password.  When I try to log 
  21. in as the new user I created, it's a no-go.  No password will work.  If,
  22.  
  23. as root, I change the user's password, and then try to log in as that 
  24. user, I still can't. 
  25.  
  26.    So, for the time being, I've made users "manually" by editting 
  27. /etc/passwd, and setting up their directory, permissions, etc., by hand
  28.  
  29. -- this works fine but is a lot of work.  Does anyone have any idea what
  30.  
  31. I might be doing wrong with the useradd command?  I'm about ready to 
  32. 'rm' it and work up some scripts to do it all semi-manually... 
  33.  
  34.    My second question is about file permissions and general file
  35. access.
  36.  
  37. As root, I made a dummy file named 'test.fil' with an owner and group 
  38. of 'root' and permissions of -rw-r--r--.  Then, I logged in as a normal
  39.  
  40. user and tried to rm the file.  I get a 'permission denied' response, 
  41. and the file remains intact.  Great.  Then, I immediately change 
  42. directories to /etc and do a 'rm passwd'.  To my surprise, I get a 
  43. response of 'rm: remove 'passwd', overriding mode 0600?'  So I type 'y'
  44.  
  45. and the system deletes my password file.  The password file was also 
  46. owned by and in group 'root' and had permissions of -rw-------.  What 
  47. boggles me is why does the system allow me to delete one file, but not 
  48. the other?  (Remember, I did this logged in as a user, not as root.). 
  49. To me, since I don't know what's going on, this gives me shudders and 
  50. fears of system security.  Can someone clue me in on what's happening 
  51. here (and how I might prevent it)? 
  52.  
  53. Thanks in advance, 
  54. Randy 
  55.  
  56. ... OFFLINE 1.50  "America works best when we say, 'Union YES!'" 
  57.  
  58.  * Origin: The Programmers Playhouse (1:128/60)
  59.  
  60.