Article View: ahn.tech.linux
Article #2036Re: Changing a account password
From: Sorgeloos
Date: Mon, 27 Mar 2000 00:00
Date: Mon, 27 Mar 2000 00:00
48 lines
2318 bytes
2318 bytes
adduser name ;adds a user with that name. passwd name ;sets the password for thath user. chfn naam ;changes information on that user. NOTE: you have to run passwd otherwise you can't use the user!!!!!!!! MoJo <mojo@speakeasy.org> schreef in berichtnieuws OmEy4.1747$QF6.78372@news5.giganews.com... > Hi all, > I have just recently started using linux ( Red hat 6.2) . I tried to > create a new account for a friend of mine. I got this to work without much > of a problem. My problem is I cannot set the password on this account. To > create this account I added the line > > jeff:x:502:502:Jeff :/home/jeff > > To the passwd file and > > jeff::11000:0:99999:7:-1:-1:134550548 > > to the shadow file and > > jeff:x:502: > > to the group file. I also created a /home/jeff directory and changed it > owner and group to jeff > > This all works fine. Jeff could log in, It didn't ask for a password which > was not a issue because I thought one I logged in I could create one using > "passwd" this did not turn out to be the case. > When I type in "passwd" and typed in the new password twice, there was a > brief pause and I got the message " passwd: Permission denied". I have tried > this several different ways. Logged in as someone else and became the "su" > and used "passwd jeff", the same thing happened. I copyed an existing > password in the shadow file into jeffs password. This worked , the password > changed but it is a duplicate of my password and I still cannot change it. > > Does any one know what I am doing wrong > > Thanks > Mogue > >
Technical Details
Message-ID:
<8bo8g2$cpi$1@news.planetinternet.be>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<OmEy4.1747$QF6.78372@news5.giganews.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11033e,a791c7374ee7818d X-Google-Attributes: gid11033e,public From: "Sorgeloos" <m.sorgeloos@pi.be> Subject: Re: Changing a account password Date: 2000/03/27 Message-ID: <8bo8g2$cpi$1@news.planetinternet.be> X-Deja-AN: 603058684 References: <OmEy4.1747$QF6.78372@news5.giganews.com> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 X-Complaints-To: abuse@planetinternet.be X-Trace: news.planetinternet.be 954180930 13106 212.239.133.198 (27 Mar 2000 18:15:30 GMT) Organization: Planet Internet NV X-MSMail-Priority: Normal NNTP-Posting-Date: 27 Mar 2000 18:15:30 GMT Newsgroups: ahn.tech.linux