Jump to content

Cannot Create or Modify User's [MDK9]


Guest kev
 Share

Recommended Posts

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?

Link to comment
Share on other sites

Yes, buy a new LED  :twisted:  

 

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,

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

[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.

Link to comment
Share on other sites

..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?

Link to comment
Share on other sites

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..

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 4 weeks later...

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...