Settings permisions

Settings permisions

Posted by: adamuss
Posted on: 2009-02-11 08:39:00

In my home directory /home/my_user_name/ I have few dirs:
/home/my_user_name/backups
/home/my_user_name/domains

and in 'domains' I have subdirectories containings all of my sites:
/home/my_user_name/domains/domain1.com
/home/my_user_name/domains/domain2.com
...

How to create ftp user who can see and modify ONLY files and subdirectories in /home/my_user_name/domains/domain1.com and:
- can't see directory 'backups'
- can't see directory domain1.com

thank you,
Adam

Re: Settings permisions

Posted by: Atropos7
Posted on: 2009-02-11 13:09:00

In reply to:

How to create ftp user who can see and modify ONLY files and subdirectories in /home/my_user_name/domains/domain1.com and:
- can't see directory 'backups'
- can't see directory domain1.com


Sorry, but you can't.

Each user gets their own home directory. FTP users are restricted to their own home directory. Since you said "FTP" this is why you cannot have a second user use FTP to access another users home directory.

Each domain is hosted from a subdirectory of a particular user. You can set the second domain in the home directory of the second user, and if you need to share management, share the credentials of the second user.

SFTP/shell users are not restricted to their home directory. If you are comfortable with it, you can attempt to share management between separate users with UNIX permissions.

cool openvein.org -//- Edited by Atropos7 on 02/11/09 01:17 PM (server time).

Re: Settings permisions

Posted by: adamuss
Posted on: 2009-02-11 13:23:00

Thanks for your reply.

So... Maybe just copy that webfolder to home directory of the new created ftp user and of course modify domain settings to point new location?
Any other ideas? What is your favourite (tested) way to manage user's permissions to webfolders? Separated user and/or group for each domain/webfolder?

Thanks for helping,
Adam

Re: Settings permisions

Posted by: sXi
Posted on: 2009-02-11 13:27:00

Copying the folder over will probably be quickest.




How To Install PHP.INI / ionCube on DreamHost

Tags: home directory