HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (
-   General (
-   -   Can not manually add new user (

TheFuzzy0ne 29th December 2008 15:38

Can not manually add new user
Hi. I'm trying to add a new user to my system. The new user is added, but for some reason, disappears! Here's what I've done.

Add the user:

thefuzzy0ne:/home# adduser daz
Adding user `daz' ...
Adding new group `daz' (1002) ...
Adding new user `daz' (1001) with group `daz' ...
Creating home directory `/home/daz' ...
Copying files from `/etc/skel' ...
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Changing the user information for daz
Enter the new value, or press ENTER for the default
Full Name []:
Room Number []:
Work Phone []:
Home Phone []:
Other []:
Is the information correct? [y/N] y

Add the new user to the group "shares":

thefuzzy0ne:/home# adduser daz shares

Check /etc/passwd to make sure the user has been added (as this problem keeps happening):

thefuzzy0ne:/home# tail -n3 /etc/passwd

Good, the user is there, so now I want to get on with the housekeeping I set out to do:

thefuzzy0ne:/home# cd /mnt/
thefuzzy0ne:/mnt# chown daz ./*
chown: `daz': invalid user

What the heck? This can't be right...

thefuzzy0ne:/home# tail -n3 /etc/passwd

The last added user has been deleted. What's going on? All that's running is a basic system with ISPConfig 3 and dependencies. Is it ISPConfig that's doing this? Is there any way to add a user manually without it being removed again?

Many thanks.

EDIT: I suspect the problem may have something to do with rkhunter. I'm not sure what it does or how it works, but there is a copy of the passwd file in /var/lib/rkhunter/tmp/passwd.

falko 30th December 2008 13:58

What's the output of

grep daz /etc/passwd

TheFuzzy0ne 30th December 2008 16:11

Thanks for your reply.

I'd pasted the last three lines of the /etc/passwd file. As you can see from that, the last line was added, and then somehow removed.

I've since reinstalled the server, and I added the user before installing ISPConfig 3. So far, I haven't had any problems. I will keep you posted.

All times are GMT +2. The time now is 01:28.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.