Permissions on downloaded files

53 views
Skip to first unread message

Orionn

unread,
Oct 12, 2012, 6:18:56 AM10/12/12
to rss...@googlegroups.com
I'm using rssdler to scan a torrent feed, and it's downloading the torrents fine, but it's creating them with permissions that doesn't allow any other user or group to read them (-rw------- 1 pi pi). I have tried setting the GID(?) bit on the folder by using chmod g+s, and it works fine for all files currently in the folder, but any new files get the "600" permissions again.

The other thing I tried was running chmod in crontab (I'm running rssdler from crontab), but since rssdler isn't instantaneous, in the time between the file is created and the chmod runs, transmission (my torrent client) tries to load the torrent, can't read it because of permissions, somehow remembers that file is bad and never tries that file again.

Any ideas on how I can make all files downloaded by rssdler to have 777 permissions from the start?

Graham Dunn

unread,
Oct 12, 2012, 9:53:21 AM10/12/12
to rss...@googlegroups.com
Look into setfacls(1), specifically

default:user::rwx
default:group::r-x
default:group:media:rw-
default:mask::rwx
default:other::rw-



--
You received this message because you are subscribed to the Google Groups "rssdler" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rssdler/-/tviYEbc0qfEJ.
To post to this group, send email to rss...@googlegroups.com.
To unsubscribe from this group, send email to rssdler+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rssdler?hl=en.

getthis...@gmail.com

unread,
Oct 12, 2012, 9:07:49 PM10/12/12
to rss...@googlegroups.com, g...@kurai.org
You're a champion. That worked. Here's the commands I entered:

chmod g+s /path/to/my/watchdir 
setfacl -d -m g::rwx /path/to/my/watchdir
setfacl -d -m o::rx /path/to/my/watchdir
Reply all
Reply to author
Forward
0 new messages