I have an directory called Videos
, and its permission is 3775
, owned by triplez:writers
.
drwxr-xr-x root root /
drwxrwxrwx root root usbhdd
drwxrwsr-t triplez writers Videos
When the download program aria2
(startup by root) download files to this directory, the new directory’s permission changed to drwxr-sr-x root:writers
, which other users in writers
group can’t delete them.
I have tested root account to create file/directory, it appears the same behavior.
root@homelab-nas:/usbhdd/Videos# mkdir test
root@homelab-nas:/usbhdd/Videos# namei -l `pwd`/test
f: /usbhdd/Videos/test
drwxr-xr-x root root /
drwxrwxrwx root root usbhdd
drwxrwsr-t triplez writers Videos
drwxr-sr-x root writers test
root@homelab-nas:/usbhdd/Videos# touch filetest
root@homelab-nas:/usbhdd/Videos# namei -l `pwd`/filetest
f: /usbhdd/Videos/filetest
drwxr-xr-x root root /
drwxrwxrwx root root usbhdd
drwxrwsr-t triplez writers Videos
-rw-r--r-- root writers filetest
I wonder how to change /usbhdd/Videos
directory’s permission that make every new directory or file under this directory can be read & write from writers
user group?