Results 1 to 6 of 6
Thread: can't add new users :(
-
10-02-2003, 04:42 PM #1Disabled
- Join Date
- May 2003
- Posts
- 121
can't add new users :(
Hi,
Does anyone know what would cause this to happen? Everytime i try to add a user to the system through the adduser command?
boxen:/home# adduser dasani
adduser: unable to lock password file
boxen:/home#
boxen:/home# useradd dasani
useradd: unable to lock password file
boxen:/home#
boxen:/home# ls -al -h --color /etc/pass*
-rw-r--r-- 1 root root 20k Sep 30 15:38 /etc/passwd
-rw------- 1 root root 20k Sep 30 00:17 /etc/passwd-
-rw-r--r-- 1 root root 865 Apr 12 2002 /etc/passwd.OLD
boxen:/home# ls -al -h --color /etc/shad*
-r-------- 1 root root 17k Sep 30 15:38 /etc/shadow
-rw------- 1 root root 16k Sep 30 00:17 /etc/shadow-
boxen:/home# ls -al -h --color /etc/group*
-rw-r--r-- 1 root root 4.6k Sep 30 15:38 /etc/group
-rw------- 1 root root 4.6k Sep 24 00:34 /etc/group-
boxen:/home#
Does anyone have any ideas? i need to be able to add some new users pretty soon.
-
10-02-2003, 04:50 PM #2Retired Moderator
- Join Date
- Jan 2003
- Posts
- 9,049
Login as root.
••• Like us on Facebook to qualify for discounts! •••
••• http://www.sprintserve.net •••
••• Offering: | Internap FCP Bandwidth! | Rebootless Kernel Updates! | Magento Optimized Hosting | Wordpress Hosting | •••
••• Services: | Managed Multiple Cores 64bit Servers | Server Management | •••
-
10-02-2003, 04:54 PM #3Web Hosting Master
- Join Date
- Dec 2001
- Location
- NYC, NY
- Posts
- 799
*sigh* he is root hence the #
its a lock file /etc/.pwd.lck
Never vi the passwd or shadow file
-
10-02-2003, 04:55 PM #4Disabled
- Join Date
- May 2003
- Posts
- 121
yep, thanks a lot.
-
10-03-2003, 05:18 PM #5Junior Guru Wannabe
- Join Date
- Sep 2003
- Posts
- 79
Use "vipw" to edit by hand...
-
10-03-2003, 08:24 PM #6Junior Guru Wannabe
- Join Date
- Aug 2002
- Posts
- 35
Eh? Use pico.. it's a program a lot like Windows Notepad... without the screwy interface..... AND the resource-killing tendencies (Massive CPU drain.) from when the process hangs.