1

This question already has an answer here:

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.

marked as duplicate by slhck Oct 21 '13 at 6:27

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 2
    If you only just added pi to debian-transmission, you need to log out and log back in again for the membership to take effect. I believe id -G (id --groups) displays only memberships that are already in effect. – Blacklight Shining Oct 21 '13 at 0:17
  • Oh wow, I can't believe it was that simple. Thanks! – 3cheesewheel Oct 21 '13 at 0:31
3

In this case, you just added pi to the debian-transmission group. You'll need to log out and log back in again for the group membership to take effect. If you don't want to actually log out, you can do something like exec bash (assuming you use bash as your shell) instead—it should have the same effect.

id will give you active user and group information. id -G (for --groups) lists the groups for which your membership has already taken effect. If you don't see the group you need in that list, you'll need to log in again.

Not the answer you're looking for? Browse other questions tagged or ask your own question.