Permissions for FTPRootFolder in Ubuntu
-
- Posts: 4
- Joined: Tue Mar 19, 2019 8:39 pm
Permissions for FTPRootFolder in Ubuntu
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?
-
- Site Admin
- Posts: 2084
- Joined: Tue Sep 29, 2009 6:09 am
Re: Permissions for FTPRootFolder in Ubuntu
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:
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")
-
- Posts: 4
- Joined: Tue Mar 19, 2019 8:39 pm
Re: Permissions for FTPRootFolder in Ubuntu
Thanks I will give that a try.