LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   How can i give ftp permission to 2 or any more folders? (http://www.linuxquestions.org/questions/linux-general-1/how-can-i-give-ftp-permission-to-2-or-any-more-folders-777884/)

epamuk 12-24-2009 09:43 AM

How can i give ftp permission to 2 or any more folders?
 
Hi,

We have a ftp server. Red Hat Linux release 9 (Shrike) working on the this server.

Ftp server running very good. But I want to give 2 folder permission an user. Is this possible?

Example,
We have a user that name is aslan. I want to connect this user to www/html/company/adek folder with ftp connection. Then I am changing this user home folder in the /etc/passwd as aslan:x:511:511::www/html/company/adek:/bin/bash.

This user doing succesfuly ftp connection to this folder with a ftp program as Filezilla.

Now, I want to also give a different folder connection this user as www/html/company/meleka.

Is This user can be connect this 2 folder with ftp connection? Is this possible? Can i give 2 or any more folder connection at the one user account? How can i give this permissions?

Thanks.

1jnike 12-24-2009 10:31 AM

Hi epamuk,

How about setting up a group with permission to the relevant folders, than placing users with correct rights into that group.

OR

How about creating a link from the folder to the users home directory, than when the user is using ftp the folders will so be available, as long as you've chroot to the users home directory.

For more help on chroot:

run

$man chroot


I hope this is of help

Jnike

epamuk 12-28-2009 04:22 PM

Thank you 1 jnike.

Are anyone have different solution?

Thanks.


All times are GMT -5. The time now is 06:21 PM.