Hi,
I sometime have the need to allow third party access to our www files.
So in order to do that I have done the following
1. Lock each domain in separate jail
2. Create jails, I use sysutils/iocage
3. Install FTP server in separate jail (jail name is ftp.mydomain.com), for FTP server I use ftp/pure-ftpd
4. Create new user for FTP server and define directory where the user can save/store files
in my example I define user's directory under /home folder in ftp.mydomain.com server
5. Put mount point of www directory of each domains into the file /etc/fstab.ftp_mydomain
I can login to the ftp server and see all my files but I cannot edit any of them..
and this is where I am stuck.
So I tried to create another user with www privilege
When I try to connect with ftptest, I am constantly prompt for the password and connot login.
The log file from the ftp server give me
On the webserver, the file permision for httpdocs are:
Could anyone please assist me?
Thank you
I sometime have the need to allow third party access to our www files.
So in order to do that I have done the following
1. Lock each domain in separate jail
2. Create jails, I use sysutils/iocage
3. Install FTP server in separate jail (jail name is ftp.mydomain.com), for FTP server I use ftp/pure-ftpd
4. Create new user for FTP server and define directory where the user can save/store files
Code:
INSERT INTO users (User, status, Password, Uid, Gid, Dir, ULBandwidth, DLBandwidth, comment, ipaccess, QuotaSize, QuotaFiles) VALUES ('webadmin', '1', ENCRYPT('topsecret','ramdom'), '2001', '2001', '/home/www.mydomain.co.uk', '100', '100', '', '*', '50', '0');
5. Put mount point of www directory of each domains into the file /etc/fstab.ftp_mydomain
I can login to the ftp server and see all my files but I cannot edit any of them..
Code:
[ERROR] Can't open that file: Permission denied
So I tried to create another user with www privilege
Code:
INSERT INTO users (User, status, Password, Uid, Gid, Dir, ULBandwidth, DLBandwidth, comment, ipaccess, QuotaSize, QuotaFiles) VALUES ('ftptest', '1', ENCRYPT('topsecret','ramdom'), '80', '80', '/home/www.mydomain.co.uk', '100', '100', '', '*', '50', '0');
The log file from the ftp server give me
Code:
Can't login as [ftptest]: account disabled
On the webserver, the file permision for httpdocs are:
root@webserver:~ # ll /usr/local/www/production/
Code:
total 2496
drwxr-xr-x 7 www wheel 18 Mar 23 20:38 httpdocs/
drwxr-xr-x 2 www wheel 4 Mar 23 21:53 logs/
drwxr-xr-x 2 www wheel 2 Mar 23 20:18 ssl/
drwxr-xr-x 2 www wheel 2 Mar 23 20:18 tmp/
root@webserver:~ # ll /usr/local/www/production/httpdocs/
Code:
total 344
-rw-r--r-- 1 www wheel 960 Feb 21 11:24 404.shtml
-rw-r--r-- 1 www wheel 2928 Feb 22 11:28 about.shtml
-rw-r--r-- 1 www wheel 3289 Feb 23 17:08 contact.shtml
drwxr-xr-x 2 www wheel 14 Mar 23 20:38 css/
-rw-r--r-- 1 www wheel 1219 Feb 23 22:09 email.php
drwxr-xr-x 2 www wheel 7 Mar 23 20:38 font/
drwxr-xr-x 3 www wheel 11 Mar 23 20:38 images/
drwxr-xr-x 2 www wheel 5 Mar 23 20:38 includes/
-rw-r--r-- 1 www wheel 5885 Mar 17 22:12 index.shtml
drwxr-xr-x 3 www wheel 9 Mar 23 20:38 js/
-rw-r--r-- 1 www wheel 5390 Feb 21 11:24 privacy.shtml
-rw-r--r-- 1 www wheel 78 Feb 21 12:04 robots.txt
-rw-r--r-- 1 www wheel 4537 Feb 22 11:29 services.shtml
-rw-r--r-- 1 www wheel 797 Mar 17 22:31 sitemap.xml
-rw-r--r-- 1 www wheel 3821 Feb 21 11:24 terms.shtml
-rw-r--r-- 1 www wheel 4626 Mar 18 10:11 testimonials.shtml
Could anyone please assist me?
Thank you