In the home folder of the pi
user on my Raspbmc distribution, I have the following directories:
$ sudo tree . -L 2
.
`-- downloads
|-- complete
`-- incomplete
They're owned by the debian-transmission
user and group, which runs transmission-daemon
:
pi@raspbmc$ ls -al
total 44
...
drwxrwx--- 4 debian-transmission debian-transmission 4096 Oct 20 18:48 downloads
So are the complete
and incomplete
directories within:
pi@raspbmc:~$ sudo ls -al downloads/
total 16
...
drwxrwx--- 3 debian-transmission debian-transmission 4096 Oct 20 19:35 complete
drwxrwx--- 2 debian-transmission debian-transmission 4096 Oct 20 19:35 incomplete
However, the current user, pi
, is a member of the debian-transmission
group:
pi@raspbmc:~$ groups pi
pi : pi adm disk lp dialout cdrom audio video debian-transmission
So why is it that I cannot cd
into downloads/
?
pi@raspbmc:~$ cd downloads/
-bash: cd: downloads/: Permission denied
I don't know much about Unix permission but it would be great if someone could help me out, since I'd like to be able to move the files from inside one of these directories to another location. I was under the impression that since all these directories have the permissions 770, any member belong to the debian-transmission
should be able to go into it. Obviously I could just enter superuser mode and move the files that way, but an explanation would be great.
pi
todebian-transmission
, you need to log out and log back in again for the membership to take effect. I believeid -G
(id --groups
) displays only memberships that are already in effect. – Blacklight Shining Oct 21 '13 at 0:17