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:0:operator:/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 |
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.
|
it says:
[root@localhost /]# ps ax | vipw vipw: the password file is busy (/etc/ptmp present) [root@localhost /]# |
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 |
it says:
[root@localhost /]# ps ax|grep vipw 1900 pts/1 S 0:00 grep vipw [root@localhost /]# how can i kill the procces |
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. |
u mean i can delete it
r u sure :o) |
i delete it and it worked
thax alot for help |
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 |
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 |
All times are GMT -5. The time now is 12:49 AM. |