Unable to create new user /home/ directory correctly

arazel

Verified User
Joined
May 24, 2006
Messages
5
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
 
Last edited:
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
 
help

i delete domain, how i can make another domain it . when i will make it? Unable to create directory
 
i delete domain, how i can make another domain it . when i will make it? Unable to create directory

Please be more specific and give details on what you are doing there. Where and how did you delete a domain? And what error dp you get when trying to add a new one?
 
What permission do you have there?

Code:
ls -ld /home/bestge/domains/best.ge/
?

Code:
ls -ld /home/bestge/domains/
?

Code:
ls -ld /home/bestge/
?

Code:
ls -ld /home/
?

You might need to delete /home/bestge/domains/best.ge/ (or even /home/bestge/domains/ if you have no other domains on the user account) in SSH in case it's not deleted and re-add the domain.
 
Back
Top