LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   ProFTPD Help (https://www.linuxquestions.org/questions/linux-networking-3/proftpd-help-150388/)

Gattancha 02-25-2004 12:29 PM

ProFTPD Help
 
Anyone able to help me in configuring ProFTPd for write access to specific directories?

I want ftproot/pub/ to be the only writeable directory at the moment, but cant suss out how to do it :(

Any and all help appreciated

Gatt.

Inexactitude 02-25-2004 09:56 PM

Set the default root for the group your using to ftproot/pub. Then it's a matter of the permissions for pub. Do ls -l ftproot and see what it outputs. It'll output something like this:

Code:

ls -l ftproot
drwxr--r--  2 rei rei 4096 Feb 25 22:45 private/
drwxr-xr-x  2 rei rei 4096 Feb 25 22:44 pub/

Here, r means readable, w means writeable, and x means executable. Discount the d. Here, the pub directory is writeable by the owner (this is shown by the first set of three letters), readable and executable by the group (second set of letters), and readable and executable by anyone else (third set). For a pub directory (not anonymous I'm assuming), you'd probably want it to be writable by the group. To do this, execute chmod 775 pub. Now when you ls -l, you should get:

Code:

ls -l ftproot
total 8
drwxr--r--  2 rei rei 4096 Feb 25 22:45 private/
drwxrwxr-x  2 rei rei 4096 Feb 25 22:44 pub/

Now, the pub directory should be writable to all users in the group.


All times are GMT -5. The time now is 08:26 PM.