Link to home
Start Free TrialLog in
Avatar of alpires
alpiresFlag 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
SOLUTION
Avatar of Joseph Gan
Joseph Gan
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You want ftp to set execute permissions? I really don't think you can do that.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.