uTorrent as root...

rjwaldren
Posts: 71
Joined: Mon Jan 17, 2011 7:15 pm

uTorrent as root...

Postby rjwaldren » Mon Jun 27, 2011 6:53 pm

I'm running uTorrent installed through the one click + wiki guidance for 64-bit. There are a few things that I don't feel comfortable with.

1. utserver is running as root...Is that desired?
2. Downloaded files are root:root and 644

I'm betting that utserver creates files according to the user it's running as and have found some indication of it using a umask of the calling shell rather than something that can be configured independently. But I haven't found any good info on changing to a non-root user yet.
Amahi 6.1 x86_64 ExpressCD - Intel D510MO, 2GB, Promise TX300
1x 500GB 2.5" WD Black (OS and LZ). Pool: 1x 1.5TB Samsung F2, 1x 1.5TB Samsung F3, 1x 2TB Samsung F4EG
Apps: uShare, uTorrent, Amahi Energy Saver

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: uTorrent as root...

Postby bigfoot65 » Tue Jun 28, 2011 4:45 am

Will have to check that out. The app packager may be able to provide more info. The init script should have it running as apache, but I see it is not set up correctly to do that at the moment.

That may have something to do with the torrents being root user. Have you searched the forums to see if someone has encountered similar behavior?

Keep in mind this is a BETA app, so anticipate it might have some issues. Not to mention it was not designed to run on 64-bit OS, but does appear to work. I am sure running as root is not a major deal, but the torrents being owned by root could cause some problems.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

rjwaldren
Posts: 71
Joined: Mon Jan 17, 2011 7:15 pm

Re: uTorrent as root...

Postby rjwaldren » Tue Jun 28, 2011 2:01 pm

Most of my googling around utserver reveals that Unreal Tounement server apparently runs happily as non-root. :D Unfortunately I'm not finding much info about the uTorrent server. It seems like the apache user is applied to the Web GUI, but the server is owned by the starting shell, so root in our init case.

uTorrent doesn't seem to provide a command line mechanism to start as another user. So maybe the init script needs to change or possibly xinetd/inetd can handle it.
Amahi 6.1 x86_64 ExpressCD - Intel D510MO, 2GB, Promise TX300
1x 500GB 2.5" WD Black (OS and LZ). Pool: 1x 1.5TB Samsung F2, 1x 1.5TB Samsung F3, 1x 2TB Samsung F4EG
Apps: uShare, uTorrent, Amahi Energy Saver

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: uTorrent as root...

Postby bigfoot65 » Wed Jun 29, 2011 4:44 am

Agreed. I will leave that to the app packager to sort out for now. The init script has the capability, so it should not be too difficult.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

rjwaldren
Posts: 71
Joined: Mon Jan 17, 2011 7:15 pm

Re: uTorrent as root...

Postby rjwaldren » Wed Jun 29, 2011 10:17 am

Yeah, it looks like most people out there are creating thier own init scripts for it. The only distro specific one I found so far was for debian. But starting the server using fedoras daemon function allows designating the user:group.

It was good to look into fedoras init script structure, I'm used to debian, so wasn't sure what fedoraisms to even look for.

BTW, I suggest - torrent:users - for the defaults. That's what I'll be using til it's worked out at least.
Amahi 6.1 x86_64 ExpressCD - Intel D510MO, 2GB, Promise TX300
1x 500GB 2.5" WD Black (OS and LZ). Pool: 1x 1.5TB Samsung F2, 1x 1.5TB Samsung F3, 1x 2TB Samsung F4EG
Apps: uShare, uTorrent, Amahi Energy Saver

User avatar
DTgreat
Posts: 19
Joined: Thu Aug 20, 2009 7:29 am
Location: Brooklyn, NY
Contact:

Re: uTorrent as root...

Postby DTgreat » Wed Jun 29, 2011 8:09 pm

This is now on my radar, will look into it tomorrow morning. I think it was running as root for my quick and dirty initial installation, something was messing with my shares. Shouldn't be too hard to narrow down though! :mrgreen:
Dakka dakka dakka....boom.

Who is online

Users browsing this forum: No registered users and 46 guests