LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   FTP user permissions (https://www.linuxquestions.org/questions/linux-software-2/ftp-user-permissions-750384/)

MATRIX_q 08-26-2009 08:24 AM

FTP user permissions
 
Hi!
I'm using Ubunut 9.04 and i have installed proftpd. Also using webmin.
I need to create 2 ftp users.
The first one can see the content of directory - have all ftp basic command access.
The second one cane only upload files, but cannot list directory content.
I don't understand how to do this. I need to do this from ftp side or Linux user permission side? Please help me!!!!!
Sorry for my English :)

kdelover 08-26-2009 09:47 AM

Try setting up acls on the directories using the setfacl command.

setfacl -m user:ftpuser1:rx <directoryname>

setfacl -m user:ftpuser2:wx <directoryname>

w on a directory means to write files into it
r on a directory means to be able to do ls
x on a dreictory means to be able to cd into it.

MATRIX_q 08-26-2009 11:08 PM

kdelover Thank's :) Problem solved :)


All times are GMT -5. The time now is 04:55 PM.