Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 29th December 2008, 14:38
TheFuzzy0ne TheFuzzy0ne is offline
Member
 
Join Date: Aug 2008
Posts: 32
Thanks: 3
Thanked 0 Times in 0 Posts
Default 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:
Code:

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":
Code:

thefuzzy0ne:/home# adduser daz shares


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

thefuzzy0ne:/home# tail -n3 /etc/passwd
web6:x:5003:5005::/var/clients/client4/web6:/bin/false
web7:x:5004:5006::/var/clients/client3/web7:/bin/false
daz:x:1001:1002:,,,:/home/daz:/bin/bash


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

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


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

thefuzzy0ne:/home# tail -n3 /etc/passwd
getmail:x:5001:5001::/etc/getmail:/bin/sh
web6:x:5003:5005::/var/clients/client4/web6:/bin/false
web7:x:5004:5006::/var/clients/client3/web7:/bin/false


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.

Last edited by TheFuzzy0ne; 29th December 2008 at 14:43.
Reply With Quote
Sponsored Links
  #2  
Old 30th December 2008, 12:58
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

What's the output of
Code:
grep daz /etc/passwd
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 30th December 2008, 15:11
TheFuzzy0ne TheFuzzy0ne is offline
Member
 
Join Date: Aug 2008
Posts: 32
Thanks: 3
Thanked 0 Times in 0 Posts
 
Default

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.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Statistic not working mzo Installation/Configuration 49 20th April 2011 12:19
ftplicity problems Ovidiu Server Operation 25 3rd December 2008 05:42
ISPCONFIG Anti-Spam filter not causing problems for user account vestport Server Operation 16 12th August 2008 23:22
How To Add user 'apache' into new group asyadiqin Installation/Configuration 4 16th November 2007 16:59
Add user e-mail accounts mlucool Server Operation 5 12th August 2006 18:26


All times are GMT +2. The time now is 13:23.


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