Author Topic: FTP and web Server  (Read 2708 times)

Hodr

  • Guest
FTP and web Server
« on: March 28, 2011, 03:31:59 pm »
I created a new Virtual domain, How do I make it so I can access the Domain's directories via FTP?

So my remote users can modify their sites which I will be putting online shortly.

Hodr

  • Guest
Re: FTP and web Server
« Reply #1 on: March 29, 2011, 01:37:09 pm »
I found a part that solves part of my problem

http://forum.zentyal.org/index.php?topic=5940.0

I can direct FTP users to /srv/www/

Now, inside of that folder are all of my domains, how can I have it so only UserX can only access DomainX (UserA access DomainA etc)?

Josep

  • Zen Samurai
  • ****
  • Posts: 255
  • Karma: +6/-0
    • View Profile
Re: FTP and web Server
« Reply #2 on: March 30, 2011, 10:45:04 am »
I hope someone corrects me on this but AFAIK it is very difficult to work with vsftpd (the standard ftp server in Zentyal), as it chroots users to their home folders.
I found that using Samba shares works much better, as Zentyal provides a finer grade of control for specific folders and users and groups.
To have remote access, I opted for a VPN, as it will provide me with an encrypted connection and this way I don't have to leave Samba ports open on the router for everyone to see.

Rafael Muylaert

  • Zen Apprentice
  • *
  • Posts: 49
  • Karma: +1/-0
    • View Profile
Re: FTP and web Server
« Reply #3 on: March 30, 2011, 06:19:35 pm »
Here's my configuration, you should change the local_root variable to /srv/www/$USER and you should be all set.

listen=YES
listen_port=201
anonymous_enable=NO
local_enable=YES
virtual_use_local_privs=YES
write_enable=YES
file_open_mode=0666
local_umask=000
chown_upload_mode=0666
connect_from_port_20=YES
secure_chroot_dir=/var/run/vsftpd
pam_service_name=vsftpd
guest_enable=YES
user_sub_token=$USER
local_root=/home/ftp/$USER
chroot_local_user=YES
hide_ids=YES