I have a headless torrent client (Transmission) which downloads files into /home/username/downloads with the username debian-transmission, in the group debian-transmission.
I've added the account username to the group debian-transmission (it's also in the group username), and chmodded the /home/username/downloads folder recursively to 770, but I still can't delete anything when logged in with the username account. The umask set on downloaded files by Transmission is 18, so I don't know if that has something to do with it. Regardless, I chmodded the files manually post-download.
ls -lad /home/username/downloads gives
drwxrwx--- 38 username debian-transmission 4096 2012-04-19 11:39 /home/username/downloads
and
ls -la /home/username/downloads/<a file in this folder that won't delete> gives
ls: cannot open directory /home/username/downloads/<a file in this folder that won't delete>/: Permission denied
I had a look at Why can't I delete a file where I have group write permissions on? but the answer wasn't particularly helpful.
I thought I had got my head round *nix permissions, but obviously not!
ls -lad /home/username/downloadsandls -la /home/username/downloads/<a file in this folder that won't delete>– Paul Apr 19 '12 at 11:54groupsbefore trying to delete the file, isdebian-transmissionlisted? If not, trynewgrp debian-transmissionand then once again try to delete the file. If this fixes it, you simply haven't logged in to the new group yet. The group login happens on your next login shell, and if you run a GUI, the easiest way might be to restart it (or the computer, which will imply the first). – Daniel Andersson Apr 19 '12 at 12:04ls -lad /home/username/downloadsgivesdrwxrwx--- 38 username debian-transmission 4096 2012-04-19 11:39 /home/username/downloads, andls -la /home/username/downloads/<a file in this folder that won't delete>givesls: cannot open directory /home/username/downloads/<a file in this folder that won't delete>/: Permission denied(directory name changed, of course) Filesystem is ext4. – melat0nin Apr 19 '12 at 12:04