PDA

View Full Version : Cannot create a user



streamservice
09-08-2007, 05:21 AM
If this topic is in the wrong forum, please move it.

I get the following error when I try to create a user on a vps:


Error Creating User dennisvw

Details

Error creating user: /usr/sbin/useradd -m -g dennisvw -p '$fake_data' -s /bin/false dennisvw

Cannot find a home directory after the system user creation for dennisvw

The home directory for dennisvw was not created.

The vps is running debian 3.1, I have a license for debian 3.1.

nobaloney
09-08-2007, 08:21 PM
Your VPS may not have the useradd command properly implemented.
First:

# ls -ald dennisvw
If it exists, post the output of the command.
If it doesn't exist run the following from the command line:

# /usr/sbin/useradd -m -g dennisvw -p '$fake_data' -s /bin/false dennisvw
# ls -ald dennisvw
and print any output.

Note that the leading # is NOT to be typed; it's there to show you to run the commands as root.

Jeff

streamservice
09-10-2007, 08:46 AM
Jeff,

Both didn't work, but after a reboot off the master server (only the vps didn'twork) it works again. It seems like something did go wrong. For others using linux-vserver: try a reboot off the master and probably it works.