Page 1 of 1

Permissions for FTPRootFolder in Ubuntu

Posted: Tue Mar 19, 2019 9:42 pm
by williamk
So I setup WingFTP Server enterprise edition on Ubuntu 18. Any folder I try and setup for a user shows as being owned by user root and group root, and nothing can touch it unless I am logged onto server locally and use "sudo" command. Tried changing the Server>>General Settings>>Miscellaneous setting "Enable FTP/SFTP command 'CHMOD' for Linux" but that does not seem to do anything. Do I just need to apply the CHMOD command manually and give the default permissions of 0644 for files and 0755 for directories to all users?

Re: Permissions for FTPRootFolder in Ubuntu

Posted: Thu Mar 21, 2019 12:50 am
by FTP
Yes, when you enable that option, it needs FTP client requests command "SITE CHMOD", otherwise it can't change the uploaded file's permissions.

Another method is using event manager, you may add a simple Lua script into the event "OnFileUploaded" or the event "OnDirCreated", like this:

Code: Select all

os.execute("chown User1:Group1 %PathName")

Re: Permissions for FTPRootFolder in Ubuntu

Posted: Fri Mar 22, 2019 1:58 am
by williamk
Thanks I will give that a try.