Author

Topic: bfgminer without sudo? (usage of --setuid) (Read 669 times)

-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
newbie
Activity: 7
Merit: 0
November 15, 2016, 07:28:13 PM
#1
Hey miners,

running bitcoin-core-0.13.0 + bfgminer 4.2.0 on Debian8.6 (ARM) I didn't figure out how to start bfgminer with an unprivileged user. I tried:

Code:
sudo useradd -s /bin/false bfgminerUser
sudo adduser bfgminerUser dialout
sudo bfgminer -o http://localhost:8332 -u MyRPCuser -p MyRPCpassword --coinbase-addr MyPayoutAddressForSoloMining --coinbase-sig "rig1: BlockErupterOrange" --setuid MybfgminerUser

Unfortunately bfgminer can not find any devices this way...

Code:
sudo bfgminer -o http://localhost:8332 -u MyRPCuser -p MyRPCpassword --coinbase-addr MyPayoutAddressForSoloMining --coinbase-sig "rig1: BlockErupterOrange"
...works fine (sowithout --setuid MybfgminerUser).

Any ideas?
sj7
Jump to: