Guest kev Posted November 7, 2002 Report Share Posted November 7, 2002 When in the Mandrake Control Center, and trying to modify the users System -> Users I get the message Cannot Lock User Lib, file /etc/ptmp or /stc/gtmp exist I've logged in as root and renamed the files as pmtp.old and gtmp.old yet the same error still persists Also when installing Clam Antivirus it wants to create a new user, following the instructions i can do a groupadd but when trying to add a user using the DOS like thing, i get [root@me clamav]# useradd -g clamav-s /bin/false -c "Clam Antivirus" clamav vipw lockfile (/etc/ptmp) is present! I also want to change my password as it's annoyingly all uppercase (the caps lock LED doesn't work so i don't know weather it's on or off - irritating) Can anyone help? Quote Link to comment Share on other sites More sharing options...
qeldroma Posted November 10, 2002 Report Share Posted November 10, 2002 Yes, buy a new LED hm.... is it configured at install to use local files for users, or perhaps NIS or LDAP?? Did you try "adduser" from console? What does he say? Did you try "linuxconf" for adding? What does he say? Quote Link to comment Share on other sites More sharing options...
Guest kev Posted November 10, 2002 Report Share Posted November 10, 2002 Yes, buy a new LED hm.... is it configured at install to use local files for users, or perhaps NIS or LDAP?? Did you try "adduser" from console? What does he say? Did you try "linuxconf" for adding? What does he say? i tried "useradd" and got the message above. I havn't tried(or even heard of) adduser of linuxconf so i'll try them on Monday. Whats NIS?? whats LDAP?? Security level is standard, and no networking was configured whatsoever - although the PCMCIA LAN card we have just plugged in and worked - well for the internet anyway not the Novell network - but i'm not bothered about that, Quote Link to comment Share on other sites More sharing options...
qeldroma Posted November 10, 2002 Report Share Posted November 10, 2002 NIS and LDAP are types of network wide "adressbooks" for logging in. DId you try the userdrake tool as root? Quote Link to comment Share on other sites More sharing options...
Guest kev Posted November 11, 2002 Report Share Posted November 11, 2002 linuxconf = "command not found" adduser = "command not found" DId you try the userdrake tool as root? Yes. Quote Link to comment Share on other sites More sharing options...
qeldroma Posted November 11, 2002 Report Share Posted November 11, 2002 Try linuxconf first, it is very verbose and recognizes wrong rights-settings. Do a "urpmi linuxconf" as root, then start it. Add a dummy user with this tool and then finish it. Normally, it finds some wrong settings and asks you, if he should change them. Say "do it". "adduser" is a very basical program in linux, perhaps you tried to start it as non-root? Quote Link to comment Share on other sites More sharing options...
Guest kev Posted November 12, 2002 Report Share Posted November 12, 2002 [root@me kev]# linuxconf bash: linuxconf: command not found [root@me kev]# urpmi linuxconf To satisfy dependencies, the following packages are going to be installed (10 MB): linuxconf-1.28r2-4mdk.i586 linuxconf-lib-1.28r2-4mdk.i586 Is this OK? (Y/n) y Please insert the medium named "Installation CD 1 (x86) (cdrom1)" on device [/dev/hdc] Press Enter when ready... installing /var/cache/urpmi/rpms/linuxconf-1.28r2-4mdk.i586.rpm /var/cache/urpmi/rpms/linuxconf-lib-1.28r2-4mdk.i586.rpm Preparing... ################################################## 1:linuxconf-lib ################################################## 2:linuxconf ################################################## Enabling module isapnpconf [root@me kev]# adduser vipw lockfile (/etc/ptmp) is present! [root@me kev]# useradd vipw lockfile (/etc/ptmp) is present! [root@me kev]# urpmi linuxconf everything already installed [root@me kev]# UserDrake from Control Center :: Cannot lock user lib, file /etc/ptmp or /etc/gtmp exist From Konsole: [root@me kev]# userdrake ** WARNING **: userdrake: the file password is busy (/etc/ptmp present) Oooops i did originally try "adduser" as a normal user, but as su (this is exactly the same as root, isn't it?) i got the same, now i get the error messages in the code above. Mandrake9/KDE3 Konsole. Quote Link to comment Share on other sites More sharing options...
qeldroma Posted November 12, 2002 Report Share Posted November 12, 2002 ..and after you started linuxconf from console, it couldn't add/remove users either? Quote Link to comment Share on other sites More sharing options...
Guest kev Posted November 12, 2002 Report Share Posted November 12, 2002 ..and after you started linuxconf from console, it couldn't add/remove users either? oops never thought of trying that, i though it configured the dialogs -d'oh! to add a user using Linuxconf would i type "linuxconf" and a window would open or something along the lines of linuxconf -adduser "Homer Simpson" homer donuts or what? Quote Link to comment Share on other sites More sharing options...
qeldroma Posted November 14, 2002 Report Share Posted November 14, 2002 "try and error" ;-) Yes, only "linuxconf", but try always a "xyzblabla --help" if you wnat to know something about a consoletool. More deep is then after that "man xyzblabla". Quote Link to comment Share on other sites More sharing options...
Cannonfodder Posted November 14, 2002 Report Share Posted November 14, 2002 All the error messages you have posted indicate that a file is busy. Usually another process has it. Might want to start looking at running processes with ps -x (for example) Also, try changing your run level and see if you can then adduser. Type in a console, init=3 Should kill X and go to a standard linux prompt. Really you are in a position where you have to be a detective and track down the problem. Real "eliminate the possibilities" work.. Quote Link to comment Share on other sites More sharing options...
Guest kev Posted November 15, 2002 Report Share Posted November 15, 2002 Ctrl+F1 = Proper Command Line logged in linuxconf = open's linux conf :), and now a new user can be added and my password has been corrected. Never thought of trying a proper command line thingy rather than a console window. Thanks for all your help cannonfodder and qeldroma. Quote Link to comment Share on other sites More sharing options...
growler Posted November 18, 2002 Report Share Posted November 18, 2002 kev, Did linuxconf fix the GUI problem. I 'm having the same prob and will try to fix when I get home. I notice another reply at the old board with the same. ??? Oh ,btw... finished lurking at last . Hi All. Quote Link to comment Share on other sites More sharing options...
Guest kev Posted November 18, 2002 Report Share Posted November 18, 2002 No it didn't fix the GUI problem, although i havn't logged in as proper root, but then again i've to give the root password when logging into Mandrake Control Center anyway so i wouldn't have thought that would be a problem. Quote Link to comment Share on other sites More sharing options...
growler Posted December 16, 2002 Report Share Posted December 16, 2002 I think I've got it. Delete the /etc/ptmp & /etc/gtmp files , Userdrake will now run. But , you must "save" before exit , even if no changes are made to any user. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.