home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / linux / 10418 < prev    next >
Encoding:
Text File  |  1992-09-10  |  2.2 KB  |  50 lines

  1. Path: sparky!uunet!mcsun!sunic!corax.udac.uu.se!corax.udac.uu.se!sverkerw
  2. From: sverkerw@csd.uu.se (Sverker Wiberg)
  3. Newsgroups: comp.os.linux
  4. Subject: Re: Adding Users
  5. Date: 11 Sep 1992 00:06:14 GMT
  6. Organization: CS, University of Uppsala, Sweden
  7. Lines: 37
  8. Message-ID: <18ontmINNf9a@corax.udac.uu.se>
  9. References: <7374@ds5000.DAC.Northeastern.edu>
  10. NNTP-Posting-Host: minsk.docs.uu.se
  11. In-reply-to: mmannan@ds5000.DAC.Northeastern.edu's message of 10 Sep 92 08:17:01 GMT
  12.  
  13. In article <7374@ds5000.DAC.Northeastern.edu> mmannan@ds5000.DAC.Northeastern.edu (Mohammed Mannan) writes:
  14. >Well, I am having problem adding users. Currently, I can only login as
  15. >root. I have edited the /etc/passwd file and added this line at the end:
  16. >       mmannan:*:100:6:Mohammed A Mannan:/u/mmannan:/bin/sh
  17. >However, when I issue " passwd mmannan " at the shell prompt, I get
  18. >permission denied message.
  19.  
  20. Well, "The answer is clearly in the man-pages" as the Guru used to say
  21. :-), but then maybe you don't have any. (I don't have any man-pages on
  22. my Linux box.) So here's an excerpt from passwd(5) (as it is on this
  23. Sun I'm sitting at):
  24.  
  25. #The passwd file contains basic information about each user's
  26. #account.   This  file  contains  a  one-line  entry for each
  27. #authorized user, of the form:
  28. #
  29. #     username:password:uid:gid:gcos-field:home-dir:login-
  30. #     shell
  31.     [...]
  32. #password       is the user's encrypted password, or a string
  33. #               of the form: ##name if the encrypted password
  34. #               is in the  /etc/security/passwd.adjunct  file
  35. #               (see  passwd.adjunct(5)).   If  this field is
  36. #               empty, login(1) does not request  a  password
  37. #               before logging the user in.
  38.  
  39. So, for a no-password login you write "username::uid..." into
  40. /etc/passwd. Btw, it looks as if the password ":*:" is used for
  41. "locked" user accounts (like uucp, daemon...)
  42.  
  43.     Anyway, happy Linuxing!
  44.  
  45. --
  46. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  47. #include<stddisclaim.h>             Every interesting data structure is recursive.
  48. sverkerw@mizar.docs.uu.se (Sverker Wiberg)                          /Cons
  49. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  50.