-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can I get rtorrent to write as a non root user. #39
Comments
This is a hot topic for me too. This is probably not a docktorrent image issue but something could be done. Docker doesn't know what users do you have in your host machine. To solve it you should see what user id you have in your host and create one user in the docker image with the same id. Then rtorrent should be run with this user. This should be done at image creation time. I personally decided to hack a bit the rtorrent capabilities. For this I modified the /root/.rtorrent.rc For this I created a new variable with the final file name once copied to the finished folder
Then, once the download finished event is thrown I added an execution step for the copied file to change the user
Notice that I used the user id 1000 which is usually the standard user in most of the linux distros. You can see your user id with All the changes look like
|
@guillemsola hot tip for a hot topic, thank you! However, for my rtorrent/rutorrent setup, I'm using the default downloads directory without any post-finished moving after a completed download:
(notice it's commented out) The only thing I am doing is this:
I am assuming that I'll need to add some chown'ing to (1) I'll update this issue once I've done some digging. |
I noticed that the directories created are www-data. But the files written by rtorrent are all root.
What would be the best method to get these files written as a specific linux user? I'm guessing i'd have to run rtorrent here as the user i choose using su or something?
The text was updated successfully, but these errors were encountered: