Computer Hope

Software => BSD, Linux, and Unix => Topic started by: Linuxfresher on March 18, 2014, 12:45:50 PM

Title: adding new user account
Post by: Linuxfresher on March 18, 2014, 12:45:50 PM
When I wrote down in terminal "useradd abcd -p pass" it showed me the message which read "useradd: cannot lock /etc/passwd; try again later".
So please suggest me any solution with a little bit of explanation if possible as I am quite new to linux.
Title: Re: adding new user account
Post by: DaveLembke on March 18, 2014, 03:58:38 PM
Tons of info on Google... here is a link I pulled out from search.

http://www.thegeekstuff.com/2009/06/useradd-adduser-newuser-how-to-create-linux-users/ (http://www.thegeekstuff.com/2009/06/useradd-adduser-newuser-how-to-create-linux-users/)
Title: Re: adding new user account
Post by: Geek-9pm on March 18, 2014, 08:34:00 PM
Would help if OP would say which version of Linux.
Also, is he using BASH at the terminal?
Is he adding a new user or change a   password?
Does he wan to change is password or somebody ease's?
Title: Re: adding new user account
Post by: jormeno on April 08, 2014, 01:04:15 PM
make sure you are logged in as root or a sudoer.

type the command adduser "name" (no quotes)

than type passwd "password" (no quotes)