I have come across a weird error with permissions with an external hard drive I attached to my server. I wanted to enable Transmission to download torrents to a folder on it, but discovered it was unable to create directories due to permission errors.
I tested it myself and verified that the daemon, running as user transmission, can't create directories in a folder it owns with 755 permissions.
I thought it might be some weird inode shenanigans, but an fsck came back clean and everything looks normal.
matoro@matoro-server ~ $ ls -i /run/media/matoro/drive-data total 40 43253761 drwxr-xr-x 5 matoro matoro 4096 Apr 11 2017 backup 11796481 drwxr-xr-x 3 matoro matoro 4096 Oct 28 22:40 iso 37568568 drwxr-xr-x 2 matoro matoro 4096 Apr 23 2017 pending 42336296 drwxr-xr-x 3 matoro matoro 4096 Oct 25 01:26 podcasts 38141969 drwxr-xr-x 39 matoro matoro 12288 Sep 18 22:05 reading 37519377 drwxr-xr-x 3 transmission transmission 4096 Oct 30 17:10 seeding 37490784 drwxr-xr-x 4 matoro matoro 4096 Oct 30 17:09 videos 42336292 drwxr-xr-x 3 matoro matoro 4096 Oct 25 01:23 youtube matoro@matoro-server ~ $ ls -ia /run/media/matoro/drive-data/seeding total 912160 37519377 drwxr-xr-x 3 transmission transmission 4096 Oct 30 17:10 . 2 drwxr-xr-x 11 matoro matoro 4096 Nov 3 14:56 .. 37584902 drwxr-xr-x 3 transmission transmission 4096 Aug 10 2016 'some directory' 37488367 -rw-r--r-- 1 transmission transmission 430297088 Aug 14 2016 some_file matoro@matoro-server ~ $ sudo -u transmission mkdir -v /run/media/matoro/drive-data/seeding/test mkdir: cannot create directory ‘/run/media/matoro/drive-data/seeding/test’: Permission denied Here are the relevant mount options:
/dev/sdc3 on /run/media/matoro/drive-data type ext4 (rw,nosuid,nodev,noexec,noatime,data=ordered,uhelper=udisks2) What could be causing this? Could it have something to do with ACLs?