LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 11-10-2007, 07:40 AM   #1
greenland666
LQ Newbie
 
Registered: Nov 2007
Posts: 1

Rep: Reputation: 0
Unhappy the problem of "unable to lock the passwd file"


Dear friends,

When I used command "useradd" to add a new user, a write as following, "useradd -u 2014 -d /usr/CHM5710/s0572073 s0572073",
and then there is a error message "unable to lock password file", I search this error through google, and I delete the "/etc/.pwd.lock" file, this problem still there, what should I do the solve this problem?
 
Old 11-10-2007, 08:44 AM   #2
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Lubuntu
Posts: 19,176
Blog Entries: 4

Rep: Reputation: 430Reputation: 430Reputation: 430Reputation: 430Reputation: 430
Moved: This thread is more suitable in Linux-General and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 11-10-2007, 08:46 AM   #3
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Lubuntu
Posts: 19,176
Blog Entries: 4

Rep: Reputation: 430Reputation: 430Reputation: 430Reputation: 430Reputation: 430
-d is the assign home directory command. You should use /home/<username> for that. You also need to add the user name you wish to give that user. Read man useradd to see how you should apply the switches.
 
Old 11-10-2007, 09:21 AM   #4
lakris
Member
 
Registered: Sep 2004
Location: Stockholm, Sweden
Distribution: Ubuntu, RedHat, SuSe, Debian, Slax
Posts: 102

Rep: Reputation: 15
Quote:
Originally Posted by greenland666 View Post
Dear friends,

When I used command "useradd" to add a new user, a write as following, "useradd -u 2014 -d /usr/CHM5710/s0572073 s0572073",
and then there is a error message "unable to lock password file", I search this error through google, and I delete the "/etc/.pwd.lock" file, this problem still there, what should I do the solve this problem?
Are You running the command as a non root user? That is the reply You get when trying to run it as a normal user.

/Lakris
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
autoMounting problems i get a "stale lock file" alek66 Linux - Hardware 0 05-30-2007 08:21 AM
KDE "Logout" and "Lock Session" menu restoration powah Linux - Software 3 03-29-2005 08:02 PM
how do I get around the "submit passwd" prompt in ubuntu even if I use "sudo"? t3gah Linux - Distributions 1 02-22-2005 04:42 PM
KDE "Lock Session" and "Logout" menu restoration tcma Linux - Software 0 01-29-2005 11:12 AM
"useradd: unable to lock password file" need help monzter Programming 1 08-16-2004 12:59 AM


All times are GMT -5. The time now is 04:34 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration