I'm a novice with Linux/Unix. Basically I'm attempting to setup a Web server, and FTP server on a Linux box via SSH.
My plan is to have Apache's root folder inside the main user account like
and have an ftp-user account which should have
rw- access via FTP to
I'm still not able to have the
ftp-user being able to access the
public_html directory in the home folder of the other account.
When I connect via FTP using the
ftp-user, it defaults to its home directory.
These are the steps I have taken so far:
I have installed
/etc/vsftpd/vsftpd.configports and so on so that I'm able to connect with the
ftp-useraccount. I've also set the
I have restarted the
vsftpdservice after any config changes.
I have added a group named
I have made
developers, so that
uid=500(ftp-user) gid=502(developers) groups=502(developers)
I've changed the group of
chgrp developers /home/giuseppe/www/public_html/
However, every time I connect via FTP the
ftp-user account has rw- access to its own home folder only.
As I test I have added a symlink
ln -s /home/giuseppe/www/public_html /home/ftp-user/. While I can see the symlink in the
ftp-user home directory, I'm not able to navigate through the
public_html symlink. Here is Filezilla's status log when I double click the symlink:
Status: Retrieving directory listing... Command: CWD /home/ftp-user Response: 250 Directory successfully changed. Command: CWD public_html Response: 550 Failed to change directory. Error: Failed to retrieve directory listing Status: Starting download of /home/ftp-user/public_html Command: PASV Response: 227 Entering Passive Mode (XXX,XXX,XXX,XXX,4,14). Command: RETR public_html Response: 550 Failed to open file. Error: Critical error
Is my planned setup sensible or would you setup things differently?