LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 10-15-2002, 01:28 PM   #1
safrout
Member
 
Registered: Mar 2002
Location: egypt
Distribution: Gentoo
Posts: 457

Rep: Reputation: 30
Question adding the lfs user problem


oh

it seems that it won't be easy to go on with lfs 4


my first problem appeared while creating the user named lfs

here it is what i get when i type the adding command


[root@localhost /]# useradd -s /bin/bash -m lfs && passwd lfs
vipw lockfile (/etc/ptmp) is present!
[root@localhost /]#

the /etc/ptmp file :


root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/bin/sh
daemon:x:2:2:daemon:/sbin:/bin/sh
adm:x:3:4:adm:/var/adm:/bin/sh
lp:x:4:7:lp:/var/spool/lpd:/bin/sh
sync:x:5:0:sync:/sbin:/bin/sync
shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown
halt:x:7:0:halt:/sbin:/sbin/halt
mail:x:8:12:mail:/var/spool/mail:/bin/sh
news:x:9:13:news:/var/spool/news:/bin/sh
uucp:x:10:14:uucp:/var/spool/uucp:/bin/sh
operator:x:11:0perator:/var:/bin/sh
games:x:12:100:games:/usr/games:/bin/sh
nobody:x:65534:65534:Nobody:/:/bin/sh
rpm:x:13:104:system user for rpm:/var/lib/rpm:/bin/false
vcsa:x:69:69:virtual console memory owner:/dev:/sbin/nologin
xfs:x:70:70:system user for XFree86:/etc/X11/fs:/bin/false
rpc:x:71:71:system user for portmap:/:/bin/false
postfix:x:72:72:system user for postfix:/var/spool/postfix:/bin/false
mysql:x:73:73:MySQL server:/var/lib/mysql:/bin/bash
ups:x:74:74:system user for nut:/var/state/ups:/bin/false
safrout:x:501:0:ahmed:/home/safrout:/bin/bash


can anyone help me
 
Old 10-15-2002, 01:41 PM   #2
lfslinux
LFS Maintainer
 
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372

Rep: Reputation: 30
it tells you that the vipw lockfile /etc/ptmp file exists. Run "ps ax | vipw" and see if there is a process called vipw. If not, it's probably a leftover from a previous run of the vipw program. Remove the lockfile, then try again adding the user.
 
Old 10-15-2002, 01:46 PM   #3
safrout
Member
 
Registered: Mar 2002
Location: egypt
Distribution: Gentoo
Posts: 457

Original Poster
Rep: Reputation: 30
it says:

[root@localhost /]# ps ax | vipw
vipw: the password file is busy (/etc/ptmp present)
[root@localhost /]#
 
Old 10-15-2002, 02:00 PM   #4
lfslinux
LFS Maintainer
 
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372

Rep: Reputation: 30
oops my fault: I mean to say ps ax|grep vipw


If the "ps" program lists a vipw process then kill the process. Else just remove the file
 
Old 10-15-2002, 02:05 PM   #5
safrout
Member
 
Registered: Mar 2002
Location: egypt
Distribution: Gentoo
Posts: 457

Original Poster
Rep: Reputation: 30
it says:

[root@localhost /]# ps ax|grep vipw
1900 pts/1 S 0:00 grep vipw
[root@localhost /]#



how can i kill the procces
 
Old 10-15-2002, 02:24 PM   #6
lfslinux
LFS Maintainer
 
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372

Rep: Reputation: 30
that process you saw is the grep process from the "ps ax|grep vipw" command, you can ignore it, it's not what you're looking for.

Since there was nothing else in the output, can you savely remove the /etc/ptmp file and carry on.
 
Old 10-15-2002, 02:26 PM   #7
safrout
Member
 
Registered: Mar 2002
Location: egypt
Distribution: Gentoo
Posts: 457

Original Poster
Rep: Reputation: 30
u mean i can delete it

r u sure )
 
Old 10-15-2002, 02:27 PM   #8
safrout
Member
 
Registered: Mar 2002
Location: egypt
Distribution: Gentoo
Posts: 457

Original Poster
Rep: Reputation: 30
i delete it and it worked

thax alot for help
 
Old 10-15-2002, 03:39 PM   #9
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Are you sure, ba ha ha ha. You were just kidding right? That's Gerard, the creator/maintainer of LFS, just in case you didn't know.

Cool
 
Old 10-15-2002, 04:45 PM   #10
safrout
Member
 
Registered: Mar 2002
Location: egypt
Distribution: Gentoo
Posts: 457

Original Poster
Rep: Reputation: 30
ops
i didn't know i swear

hope he didn't get angry from my words

it is bad from to not to know the creator/maintainer of something i love very much
 
  


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
cannot login as user 'lfs' [su - lfs] mayasedai Linux From Scratch 2 07-26-2005 06:10 AM
cyrus imap, user adding problem? SquirrelMail okan.yuksel Linux - Newbie 0 07-17-2004 04:51 PM
Slackware 9.0 Lan Card problem and a problem adding a user! BmxFace Slackware 1 07-03-2003 07:05 PM
linuxconf problem adding user allancondino Linux - General 2 04-26-2002 03:43 AM
Adding the LFS user? jbhoo Linux From Scratch 2 04-23-2002 10:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 02:22 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