LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-20-2002, 03:58 AM   #1
scatcat
LQ Newbie
 
Registered: Oct 2001
Location: London-ish England
Distribution: Mandrake 8.0
Posts: 19

Rep: Reputation: 0
Angry useradd problem


Hi,

I'm running mandrake 8.2 and been playing around trying to learn a few things.

I had one user on my machine, ME, and all was fine. I added Me to a the apache group so I could write some php into /var/www/html. All was going well.

Then I tried to add another user, using- useradd bob
but I get back:

vipw lockfile (/etc/ptmp) is present!

and that's it.

If I try using userDrake I also get a similar message. Before I added Me to the apache group I could use this with no problems.

What's gone wrong and how can I fix it?

I've done some searching but can't find the answer to this, but I have noticed people talking about adding users and having to copy files to the new users home directory, etc/skel, and other such things. I thought 'useradd bob' did everything for you, or have I got hold of the wrong end of the stick?..........

All answers, thoughts or suggestions gratefully received.
 
Old 06-20-2002, 04:34 AM   #2
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
Well from the message it looks like the file /etc/ptmp is a temporary lockfile probably to prevent screw ups when two people try to add users at the same time.
Maybe you would want to look at the contents of the file just in case. But I think you can safely remove it and then it should continue. Maybe you will just want to rename it in case it needs to be kept.

But the useradd command should copy all the files from /etc/skel unless you delibrately specify that it shouldn't do that.
 
Old 06-20-2002, 05:02 AM   #3
scatcat
LQ Newbie
 
Registered: Oct 2001
Location: London-ish England
Distribution: Mandrake 8.0
Posts: 19

Original Poster
Rep: Reputation: 0
Ok I'll give that a try tonight when I finish work.

I'll let you know what happens.

Thanks
 
Old 06-21-2002, 03:33 AM   #4
scatcat
LQ Newbie
 
Registered: Oct 2001
Location: London-ish England
Distribution: Mandrake 8.0
Posts: 19

Original Poster
Rep: Reputation: 0
That worked, thanks.

My quest for knowledge can now continue!
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
useradd problem ruben0076 Linux - Newbie 4 01-11-2005 11:28 AM
useradd problem efanning Linux - Newbie 1 07-29-2004 07:24 PM
useradd problem giovannym Linux - Newbie 4 06-23-2004 07:59 PM
useradd Problem deepakjena_2003 Linux - Newbie 2 01-19-2004 08:21 AM
useradd -p problem gizbon Linux - General 4 11-11-2002 03:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:13 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration