ftps

All posts tagged ftps

The only issue I had was turning off the verify certificate and setting that to no.

$ lftp -p 990 bigbeav@ftps.servnername.com
Password:
lftp bigbeav@ftps.servername.com:~> ls
ls: Fatal error: Certificate verification: Not trusted
lftp bigbeav@ftps.servername.com:~> set ssl:verify-certificate no
lftp bigbeav@ftps.servname.com:~> ls
drwxr-xr-x 2 ftp ftp 48 Jan 21 21:24 bin
lftp bigbeav@ftps.servername.com:/>

So you have multiple users that need to read and write to certain files on the filesystem? This can be done with vsftpd quite easily. Let’s say you have users called ann, bill and carl and they need to manage files in /insp/localftp/testproject. Here’s the steps:

For vsftpd, change the umask for files created by FTP users. Open the vsftpd.conf file and edit the following.  Restart Vsftp daemon, please check ps before doing this as customers maybe using the host.  Wait for there stuff to finish, then restart.

This makes sure that new files are chmodded as 775 (full read/write for users/group, but only read for everyone else).

Next, create a new group. We will call ours “sharedweb”:

Now, put the users into that group by adding them in /etc/group:

Modify the users so that their primary group is sharedweb. If you forget this step, when they make new FTP files, they will be owned by each user’s primary group (sometimes named the same as the user on some systems) and the permissions will be completeld hosed.

Users should be able upload, delete, and edit each other’s files.

Change them into pem format..

Update the /etc/vsftpd/conf/vsftpd.conf (You’re vsftpd.conf may be located elsewhere…)If you can’t find it, perform the following:

Add the following lines, then restart vsftpd (/etc/init.d/vsftp restart)