Must run as "root"????


log in

Advanced search

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

Author Message
Profile MrMaxx
Avatar
Send message
Joined: 22 Apr 99
Posts: 135
Credit: 641,335
RAC: 305
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?
____________

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

____________

Profile MrMaxx
Avatar
Send message
Joined: 22 Apr 99
Posts: 135
Credit: 641,335
RAC: 305
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."
____________

Profile ML1
Volunteer tester
Send message
Joined: 25 Nov 01
Posts: 8595
Credit: 4,255,408
RAC: 1,363
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: Mageia4
Linux Voice See & try out your OS Freedom!
The Future is what We make IT (GPLv3)

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

Copyright © 2014 University of California