Exactly the same issue here.
I couldn’t find anything in the documentation mentioning these changes to file permissions or drag-and-drop behavior.
There are some references about file permissions and umask.
I think the outcome we experience is a result of this in the documentation (Release version changelog):
Version: 1.679
https://docs.directadmin.com/change...l#faster-and-more-secure-file-manager-actions
Key improvements:
- The archive extract action will not use tar or unzip CLI tools. All archive processing logic is built-in.
and:
https://docs.directadmin.com/change...use-umask-for-default-filemanager-permissions:
"Default permissions for newly uploaded files and created directories using filemanager now rely on umask set for
[email protected].
This deprecates
fm_file_permissions and
fm_dir_permissons fields in directadmin.conf"
the above is documentation about this.
let me explain with an example:
the first part is not the real issue, but this is why Alex G. asked me about the CLI unzip (probably to see if there are differences between the 'filemanager newly inbuild ZIP / decompress functionality, and the 'old' style using default Unix 'unzip').
the second part, 'using umask' for default permissions, is where it starts with our issues.
as a result of the newly filemanager the 'fm_xxxx' style is deprecated and removed. (see changelog)
but.... zip files DO have permissions, not Unix style, but comparable with 666 and 777, on a lot of OS's. On Windows starting from at least Windows 7 (didt want to make the effort to find an WIndows XP or old windows 2000 server)
what happened in the past, Directadmin 1.678 and before, with a Windows created ZIP:
1. extract files and dirs in filemanager: permissions are set according to 'FM_xxxx' settings (regardless 'admin' or 'user').
2. extract files and dirs in CLI session: permissions are set according to rights in ZIP, getting 666 and 777 as these permissions are IN that ZIP.
what happens now in Directadmin since 1.679:
1. extract files and dirs in filemanager: permissions are set according to the zip, so 666 and 777, same as CLI.
2. extract files and dirs in CLI session: permissions are set according to rights in ZIP, getting 666 and 777 as this is IN that ZIP.
unfortunally, the sentance from the changelog "Default permissions for newly uploaded files and created directories using filemanager now rely on umask" will never occur on standard or default created ZIP archives as these ZIP's really DO have permissions inside which are used, and the 'umask' is not used.
the 'umask' most probably will not be a solution, because as an 'admin' using a 'user' acount, the 'umask' will be of 'admin or reseller' or maybe even 'root', and not the 'umask' of the 'user'. so, even with a usable umask, i still cant 'act' as user and will get permissions i dont want.
At this moment, as an admin or reseller, you better not use the filemanager 'extract' for ZIP for your users, or at least be very, very carefull.
we need the 'fm_xxxx' or similar solution to explicit set permissions from (ZIP) archives.
im not familiar with your 'drag & drop' issue, but hopefully it will be solved soon!
kind regards,
Arjan