Add a directory to user account

polo

Verified User
Joined
Apr 2, 2005
Messages
120
Is there a way I can add a directory from an additional hard drive that I have added to a users account so that it shows up in their public_html/new_folder also so it works with an ftp client for them.
 
ln -s /path/to/folder /home/<username>/domains/<domain.com>/public_html/foldername
 
I did that, but i cannot access the folder via ftp and i doubt it will work when i goto backup the user right? Any other suggestions would be appreciated!
 
I dont know if proftpd can follow symlinks or not.

There really is no other way to do it if you want want the drive in another location.

Either you mount the partition under the users home directory so he has access or you symlink it.

There might also be a way to create a virtual ftp user with the path to that folder as the home directory.
 
in domains there is a public_html link that works fine, it goes to the default domain selected public_html folder. Is that the same type of link ?
 
I tried chown (username) dirname. The ftp client says no such file/directory when I try to open it. it sees it but cant open it.
 
Last edited:
I dont know what your new partition looks like. Im sure its parent chmod permissions.

I would have to test something like that to say how to get it to work.

If you have like:

/drive2/users/<username>

and then you only chown and chmod the username directory the parent directories wont have the right permissions. You will have to make sure the parent folders have access for the user as well.

You either will have to chmod 777 the parent directories or put all the users in the same group and then make sure the parent directories have group access.
 
Why not just move that user to the new hard drive entirely.
 
I have been looking do not see moving users or hard drive under search results i read all of the questions in the directadmin none apply.
 
I read that article, great for adding a new home2 but it doesnt show me how to actually move an existing customer to the new drive... what files do i need change?
 
Back
Top