PDA

View Full Version : Home Folder issues



Peter Verrill
04-30-2005, 04:49 AM
Hey,

I've just tried to move accounts from one server to another using the following method:
1) Copy everything below and including the admin user from these files:
/etc/shadow
/etc/passwd
/etc/group
Full contents of:
/etc/proftpd.passwd
/etc/virtual
/var/spool
/etc/named.conf
/var/named
etc

2) Tar up /usr/local/directadmin/data copy to server and extract using --same-owner completely overwriting the new config

3) Tar up /home/user folders one by one, uploading, extracting with --same-owner to /home

While the accounts work, directadmin can no longer read/write to home folders. For example, when creating a new account I get this:


User testtest created

Details


Unix User created successfully
User's data directory created successfully
Domains directory created successfully
Error Creating ~/domains
Parent directory does not allow write, or one of the directories didn't allow search (execution) permission



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

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

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

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

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

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

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



Error Creating Domain


User's System Quotas set

From within accounts the filemanager shows:

Unable to open /. Permission denied.
To copy/move files with the clipboard, add the source files to the clipboard with "Add to Clipboard", go to the directory where you wish to copy/move the files, then click "Copy Clipboard Files here" or "Move Clipboard Files here"

Anything that requires directadmin to access a /home/folder doesn't work...

Here are the permissions of:
/home/fr0id

drwx--x--x 7 fr0id fr0id 4096 Apr 13 22:31 fr0id

/home/fr0id/


drwx--x--x 7 fr0id fr0id 4096 Apr 13 22:31 .
drwx--x--x 8 root root 4096 Apr 30 10:22 ..
drwx------ 2 fr0id fr0id 4096 Jan 8 17:31 backups
-rw-r--r-- 1 fr0id fr0id 24 Sep 15 2004 .bash_logout
-rw-r--r-- 1 fr0id fr0id 191 Sep 15 2004 .bash_profile
-rw-r--r-- 1 fr0id fr0id 124 Sep 15 2004 .bashrc
-rw------- 1 fr0id fr0id 0 Apr 13 22:31 .clipboard.txt
drwx--x--x 3 fr0id fr0id 4096 Dec 2 08:33 domains
-rw-r--r-- 1 fr0id fr0id 847 Sep 15 2004 .emacs
-rw-r--r-- 1 fr0id fr0id 120 Sep 15 2004 .gtkrc
drwx------ 3 fr0id fr0id 4096 Sep 24 2004 imap
drwxr-xr-x 3 fr0id fr0id 4096 Sep 15 2004 .kde
drwx------ 2 fr0id fr0id 4096 Dec 2 08:33 mail
-rw-r--r-- 1 fr0id fr0id 18 Sep 22 2004 .mailboxlist
lrwxrwxrwx 1 fr0id fr0id 31 Apr 30 09:09 public_html -> ./domains/fr0id.com/public_html
-rw-r----- 1 fr0id mail 13 Sep 15 2004 .shadow

How can this be fixed?

Peter Verrill
04-30-2005, 02:17 PM
Oh, just to point out I moved from Redhat9 to CentOS 3.4.

Peter Verrill
05-01-2005, 02:25 AM
Hello,

Check the permissions on /etc/passwd. Try setting it to chmod 644.

Thank you,

John

Thanks, this fixed it :)

Peter Verrill