Must run as "root"????

Questions and Answers : Unix/Linux : Must run as "root"????

To post messages, you must log in.

AuthorMessage
Profile MrMaxx
Avatar

Send message
Joined: 22 Apr 99
Posts: 135
Credit: 868,194
RAC: 516
United States
Message 876841 - Posted: 18 Mar 2009, 10:59:10 UTC

I'm not sure if this is a RedHat/Fedora problem or not, but I've been struggling ever since I upgraded to Fedora 10 to get BOINC running again. I finally had a brainstorm this morning and tried running it with "superuser" priveleges and it worked.
This does not make sense... why should BOINC have to run as "root" or a SuperUser? Should it not be able to run as a normal user?
In case anyone else has this problem, I got around it by "sudo chmod +s boinc" and all the other boinc-related binaries in /usr/bin.
Can someone please advise WHY it was necessary to have elevated privileges to run this?


ID: 876841 · Report as offensive
parkut
Volunteer tester

Send message
Joined: 9 Aug 99
Posts: 69
Credit: 9,779,243
RAC: 0
United States
Message 876873 - Posted: 18 Mar 2009, 14:43:50 UTC - in response to Message 876841.

Why not just run it in a users directory space

like /home/mrmaxx/boinc for example.

That way you can give execute permissions and not involve root


ID: 876873 · Report as offensive
Profile MrMaxx
Avatar

Send message
Joined: 22 Apr 99
Posts: 135
Credit: 868,194
RAC: 516
United States
Message 877154 - Posted: 19 Mar 2009, 10:37:31 UTC - in response to Message 876873.

Because I installed it using the RPM from Fedora. :-) It doesn't give you an option (that I saw) to run it in normal user space. I posted on a local linux user list and one of my buddies there pointed out that BOINC creates it's own user/group to run as and so I just added myself to the BOINC group and now it's all good. However, I think something like this ought to be a FAQ for people who are used to running BOINC from the tarball.

Suggestion would be: "For Fedora/RedHat Enterprise users -- BOINC runs as user 'boinc', group 'boinc.' To run Boinc manager, you must either log in as boinc or add your user to the 'boinc' group."


ID: 877154 · Report as offensive
Profile ML1
Volunteer tester

Send message
Joined: 25 Nov 01
Posts: 9202
Credit: 5,933,057
RAC: 1,878
United Kingdom
Message 877610 - Posted: 20 Mar 2009, 21:26:01 UTC - in response to Message 877154.

Because I installed it using the RPM from Fedora. :-) It doesn't give you an option (that I saw) to run it in normal user space....

Indeed so.

Boinc runs as a service.

You should go to the configure services section and check that Boinc has been started.

You should also have a Boinc manager application in your menus so that you can control the Boinc client.

You certainly should NOT be root for running the client!

Hope that helps,

Happy crunchin',
Martin

See new freedom: Mageia5
See & try out for yourself: Linux Voice
The Future is what We all make IT (GPLv3)

ID: 877610 · Report as offensive

Questions and Answers : Unix/Linux : Must run as "root"????


 
©2016 University of California
 
SETI@home and Astropulse are funded by grants from the National Science Foundation, NASA, and donations from SETI@home volunteers. AstroPulse is funded in part by the NSF through grant AST-0307956.