LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   Share access to single folder in user home dir? (https://www.linuxquestions.org/questions/linux-security-4/share-access-to-single-folder-in-user-home-dir-913371/)

duffme 11-13-2011 08:39 PM

Share access to single folder in user home dir?
 
I've searched for solutions and they seem to indicate I am doing this correctly. I'm using Fedora 13.

I use Dropbox. The target/sync directory is a directory in my home dir. This works fine.

I also have set up transmission-daemon. This uses a non-standard user, whose $HOME is /var/lib/transmission. This works fine too.

I am trying to have transmission watch a subdir of the dropbox dir in my home, but keep having permission issues.

Let's call my user Me, the transmission user transmission, and the dropbox/watch folder watch.

I created a group torrents, and added Me and transmission.
I chgrp watch to torrents, and chmod watch to 775.
I then ln -s /home/Me/dropbox/watch /var/lib/transmission.

If I look at the UGO for target and link they look correct:
775 Me torrents /home/Me/dropbox/watch
775 transmission transmission /var/lib/transmission/watch

When I try to ls or cd to /var/lib/transmission/watch as user transmission I get permission access denied.

Am I doing something wrong? Is there a special treatment of /home that blocks this? If for no other reason than understanding the basics I'm trying to use this method rather than setfacl.

duffme 11-13-2011 11:29 PM

Hmm. After doing this successfully with Ubuntu I went back and looked further. Fedora sets permissions 700 on /home/<user>. The above works if the 2nd user (transmission) can change dir into the home root to get to the subdir.


All times are GMT -5. The time now is 09:40 AM.