OS: ClearOS 7.2
FTP Server 2.2.2-1
In /etc/proftpd.conf Umask is set to 022.
When in Webconfig>Webserver FTP Upload is set to enabled the configuration files flex-21.conf and flex-990.conf are build and placed in /etc/proftpd.d
When ClearOS Webconfig compiles these configuration files, something appears to go wrong with Umask as in both flex-xxx.conf files it reads: 'Umask 0113 0002'.
# DNR:Webconfig start - makkink.eu
<Directory /var/flexshare/shares/makkink.eu>
AllowOverwrite on
AllowRetrieveRestart on
AllowStoreRestart on
DisplayChdir .flexshare-group.txt TRUE
HideNoAccess on
HideFiles (.flexshare)
GroupOwner "lan"
Umask 0113 0002
<Limit CWD READ WRITE DIRS PORT QUIT PASV>
AllowGroup "lan"
IgnoreHidden on
</Limit>
<Limit ALL>
DenyAll
</Limit>
</Directory>
# DNR:Webconfig end - makkink.eu
When executing a FTP upload the files arrive at destination with permissions 664 (umask 002).
Only after editing the flex-xxx.conf files and setting Umask to 022 the FTP uploads arrive with the correct permissions.
These flex-xxx.conf files however are generated by Webconfig and should not be edited and changes will be erased every time Webserver FTP Upload is disabled/enabled.
FTP Server 2.2.2-1
In /etc/proftpd.conf Umask is set to 022.
When in Webconfig>Webserver FTP Upload is set to enabled the configuration files flex-21.conf and flex-990.conf are build and placed in /etc/proftpd.d
When ClearOS Webconfig compiles these configuration files, something appears to go wrong with Umask as in both flex-xxx.conf files it reads: 'Umask 0113 0002'.
# DNR:Webconfig start - makkink.eu
<Directory /var/flexshare/shares/makkink.eu>
AllowOverwrite on
AllowRetrieveRestart on
AllowStoreRestart on
DisplayChdir .flexshare-group.txt TRUE
HideNoAccess on
HideFiles (.flexshare)
GroupOwner "lan"
Umask 0113 0002
<Limit CWD READ WRITE DIRS PORT QUIT PASV>
AllowGroup "lan"
IgnoreHidden on
</Limit>
<Limit ALL>
DenyAll
</Limit>
</Directory>
# DNR:Webconfig end - makkink.eu
When executing a FTP upload the files arrive at destination with permissions 664 (umask 002).
Only after editing the flex-xxx.conf files and setting Umask to 022 the FTP uploads arrive with the correct permissions.
These flex-xxx.conf files however are generated by Webconfig and should not be edited and changes will be erased every time Webserver FTP Upload is disabled/enabled.
In FTP Server
Share this post:
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »