LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   vsftp permission (https://www.linuxquestions.org/questions/linux-newbie-8/vsftp-permission-768399/)

prayag_pjs 11-11-2009 07:00 AM

vsftp permission
 
hi

i have two dir:data and docs

i have two groups:admin and sysadmin

i have three users in admin:u1,u2,u3

i have three users in sysadmin:u4,u5,u6


i want to setup an ftp server such that:

data is rwx to u1 and r-- to u2 and u3;also data is r-- to sysadmin group users(i.e. u4,u5,u6)

docs is rwx to u4 and r-- to u5 and u6;also docs is r-- to admin grops users(i.e. u1,u2,u3)


is it possible to achieve this?

regards,

Prayag

deci007 11-11-2009 11:59 PM

chown and chmod
 
hey there

Code:

#chown u1:admin data/
#chown u4:sysadmin docs/

#chmod 744 data/
#chmod 744 docs/

Just little extra logic is required.
I am a newbie so i hope this is right.

MODs please confirm if this is right


All times are GMT -5. The time now is 11:49 PM.