Bitcoin Forum
May 28, 2024, 12:00:56 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How to set datadir mode 750 and files 640 without sysperms  (Read 215 times)
Crypto Carabao Group (OP)
Member
**
Offline Offline

Activity: 93
Merit: 28

"Don't steal! Your governments hate competition!"


View Profile WWW
July 02, 2019, 03:43:03 PM
Last edit: July 03, 2019, 03:50:06 AM by Crypto Carabao Group
Merited by LoyceV (1), ABCbits (1)
 #1

If we don't use sysperms=1, bitcoind sets datadir mode to 700 (rwx------) and files to 600 (rw-------) including auth cookie.

Does anyone have good bitcoind configuration to set datadir 750 (rwxr-x---) and files 640 (rw-r-----), with sysperms=0 (default) ?

We are trying to figure out this: https://github.com/JoinMarket-Org/joinmarket-clientserver/issues/361

jackg
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
July 02, 2019, 05:07:01 PM
 #2

You've not given us enough information.

Presumably you're trying to do something with file permissions on the file system?

What operating system are you running and why are the files made with a file permission that the daemon can't access? 700 i know as rwx------, why is it doing this - surely if it can make something with that permission then it already has enough permissions to edit and read the data?
Crypto Carabao Group (OP)
Member
**
Offline Offline

Activity: 93
Merit: 28

"Don't steal! Your governments hate competition!"


View Profile WWW
July 03, 2019, 03:34:12 AM
 #3

I never see any documentation mention sysperms, so i only could suggest you run Bitcoin Core from user where chmod is disabled or not allowed & set chmod for file/directory manually.

I think his project needs group permission (where as bitcoind only give permission to user)
Thank you. That's right about group permissions need, as in the OP link.

The mention of sysperms is right in Running Bitcoin wiki

Disabling chmod is a good idea, but with sysperms=0 (default) bitcoind will create all new files mode 600, including the auth cookie and new blockchain data.
Possible to mitigate with scripts, but messy and error prone, and could still cause problems for other apps that need real-time new blocks data, such as Armory for example.

Crypto Carabao Group (OP)
Member
**
Offline Offline

Activity: 93
Merit: 28

"Don't steal! Your governments hate competition!"


View Profile WWW
July 03, 2019, 04:14:52 AM
 #4

I never see any documentation mention sysperms, so i only could suggest you run Bitcoin Core from user where chmod is disabled or not allowed & set chmod for file/directory manually.
Thank you. That's right about group permissions need, as in the OP link.

Disabling chmod is a good idea, but with sysperms=0 (default) bitcoind will create all new files mode 600, including the auth cookie and new blockchain data.
Possible to mitigate with scripts, but messy and error prone, and could still cause problems for other apps that need real-time new blocks data, such as Armory for example.
Actually, disabling chmod for bitcoin user looks complicated to do, unless one makes root the datadir owner, and bitcoind then runs as root, which would not solve the group permissions problem and make security implications worse.  Huh

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!