Avatar of alpires
alpires
Flag for Brazil asked on

Default permission to ftp users using vsftpd

Hi Experts, I need create default permission 775 when a made a upload of a file with my ftp client.
1 - I created a group caled ftpusers
2 - I created a folder in /var/www/my_user
2 - Add users to group and the directory /var/www/my_user
3 - Assign the permissions: chown my_user:ftpusers /var/www/my_user
chmod 775 /var/www/my_user

But when I upload a file the permission is set to 664, and I need 775
I am using Ubuntu 14.04

Some idea ? Thanks
LinuxLinux DistributionsLinux Networking

Avatar of undefined
Last Comment
Duncan Roe

8/22/2022 - Mon
SOLUTION
Joseph Gan

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Duncan Roe

You want ftp to set execute permissions? I really don't think you can do that.
SOLUTION
Sandy

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
ASKER CERTIFIED SOLUTION
Duncan Roe

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Duncan Roe

To definitively answer your original question: no unmodified ftp server is going to set execute permissions on received files, so the best you can do is as per my previous post http:#a40672802
You could, if you wish, modify the source of your ftp server of choice to set execute permissions (i.e. to get 0775 instead of 0664) - that's the beauty of open source software.
If you don't personally have the skill set for that job, you could hire someone who has.
Your help has saved me hundreds of hours of internet surfing.
fblack61