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