LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Deb Squeeze User user "not permitted" to view own files (https://www.linuxquestions.org/questions/linux-software-2/deb-squeeze-user-user-not-permitted-to-view-own-files-811243/)

gfarrell 05-31-2010 06:11 AM

Deb Squeeze User user "not permitted" to view own files
 
Hi all,

For the purpose of running a transmission daemon I have a user called torrent. I've chowned the download folder and all its contents to torrent:torrent and set permissions so that user/group can read/write. The transmission daemon is running as the user torrent but I get a "permission denied" error when trying to download. It also won't seed because it can't read the files.
I've tried su-ing as torrent and viewing the folder, I can't do that either but when I use "ls -al" as an administrative user I get "-rwxrwxr-x 1 torrent torrent" or "drwxrwxr-x 4 torrent torrent" (if it's a directory).

This happened after a big upgrade but I can't work out what's going on. I previously had a user called "transmission" doing the same but decided to try deleting that user and starting again to get it to work. As you can see, no such luck.

Any ideas?

gfarrell 06-01-2010 06:30 AM

Okay: I have worked out that the "torrent" user cannot access any external drives that are mounted on the FS. My user can access them, but it can't.
I tried adding it to all the groups that I am in (cdrom, floppy, audio, video, plugdev, dialout, users) but still no luck. For some reason this user just cannot access the drives at all...
Any ideas?

gfarrell 06-01-2010 09:14 AM

Okay well I fixed it. It was to do with the permissions on the mount location of the drive rather than any interior folders. Working now.


All times are GMT -5. The time now is 03:02 PM.