Permissions for FTPRootFolder in Ubuntu

Please post here if you have problems in using Wing FTP Server.
Post Reply
williamk
Posts: 4
Joined: Tue Mar 19, 2019 8:39 pm

Permissions for FTPRootFolder in Ubuntu

Post 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?
FTP
Site Admin
Posts: 2072
Joined: Tue Sep 29, 2009 6:09 am

Re: Permissions for FTPRootFolder in Ubuntu

Post 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")
williamk
Posts: 4
Joined: Tue Mar 19, 2019 8:39 pm

Re: Permissions for FTPRootFolder in Ubuntu

Post by williamk »

Thanks I will give that a try.
Post Reply