Permissions for FTPRootFolder in Ubuntu

Please post here if you have problems in using Wing FTP Server.

Permissions for FTPRootFolder in Ubuntu

Postby williamk » Tue Mar 19, 2019 9:42 pm

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?
williamk
 
4
 
Tue Mar 19, 2019 8:39 pm

Re: Permissions for FTPRootFolder in Ubuntu

Postby FTP » Thu Mar 21, 2019 12:50 am

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")
FTP
Site Admin
 
1674
 
Tue Sep 29, 2009 6:09 am

Re: Permissions for FTPRootFolder in Ubuntu

Postby williamk » Fri Mar 22, 2019 1:58 am

Thanks I will give that a try.
williamk
 
4
 
Tue Mar 19, 2019 8:39 pm


Return to Support

Who is online

Users browsing this forum: No registered users and 2 guests

cron