PDA

View Full Version : Unable to create new user /home/ directory correctly


arazel
08-05-2006, 08:18 PM
Hello everyone.

I recently had my box exploited.

After a reinstall of the server, and several problems, I decided to just re-create the reseller.

i deleted the user and when attempting to re-create got the following errors.. I thought it to just be permissions but can't imagine where to start.

---------------------------------

User arazel created

Details


Unix User created successfully

User's System Quotas set
User's data directory created successfully
Domains directory created successfully
Error Creating /home/arazel/domains
Unknown error



Unable to create directory /home/arazel/domains/arazel.com,
A directory component in /home/arazel/domains/arazel.com does not exist or is a dangling symbolic link

Error creating /home/arazel/domains/arazel.com/public_html
A directory component in /home/arazel/domains/arazel.com/public_html does not exist or is a dangling symbolic link

Error creating /home/arazel/domains/arazel.com/public_html/cgi-bin
A directory component in /home/arazel/domains/arazel.com/public_html/cgi-bin does not exist or is a dangling symbolic link

Error creating /home/arazel/domains/arazel.com/public_html/cgi-bin/.htaccess
Unable to open /home/arazel/domains/arazel.com/public_html/cgi-bin/.htaccess for writing

Error creating /home/arazel/domains/arazel.com/private_html
A directory component in /home/arazel/domains/arazel.com/private_html does not exist or is a dangling symbolic link

Unable to create directory /home/arazel/domains/arazel.com/public_ftp,
A directory component in /home/arazel/domains/arazel.com/public_ftp does not exist or is a dangling symbolic link

Unable to create directory /home/arazel/domains/arazel.com/public_ftp/incoming,
A directory component in /home/arazel/domains/arazel.com/public_ftp/incoming does not exist or is a dangling symbolic link



Error Creating Domain


Reseller's package directory created successfully

Error creating reseller's suspended directory
Error creating reseller's sharedip directory
Error copying %s to %s : %s/usr/local/directadmin/data/templates/default/home/arazel/domains/defaultA directory component in /home/arazel/domains/default does not exist or is a dangling symbolic link
Unable to create the directory /home/arazel/domains/default

Reseller created

arazel
08-07-2006, 04:25 AM
I got a reply from Technical Support.

You guys rocks!

Number 2 fixed it for me.
Thanks John at DirectAdmin!!

That's caused by 1 of 2 things.
1) The system's "useradd" program isn't setting the correct ownership of /home/username after the user is created (DA assumes it will be set). Test it by manually creating a user with that program, eg:

useradd username

then check /home/username to see if it's owned by the user, or by root. (root ownershipis not what you want)

or

2) There are already files with that same UID putting the user over quitas before anything was actually added to the account.
Use this guide: http://help.directadmin.com/item.php?id=39