Merge pull request #602 from jerzybrzoska/patch-5

node_operations.asciidoc: -m is needed for 'useradd' to work
pull/604/head
Andreas M. Antonopoulos 3 years ago committed by GitHub
commit 4fb21e5a8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -277,10 +277,10 @@ In addition, if you have connected an external drive, you will need to tell the
On most Linux systems you can create a new user with the +useradd+ command, like this:
----
$ sudo useradd -d /external_drive/bitcoin -s /dev/null bitcoin
$ sudo useradd -m -d /external_drive/bitcoin -s /dev/null bitcoin
----
The +d+ flag assigns the user's home directory. In this case, we put it on the external drive. The +s+ flag assigns the user's interactive shell. In this case we set it to +/dev/null+ to disable interactive shell use. The last argument is the new user's username +bitcoin+.
The +m+ and +d+ flags create the user's home directory as specified by /external_drive/bitcoin in this case. The +s+ flag assigns the user's interactive shell. In this case we set it to +/dev/null+ to disable interactive shell use. The last argument is the new user's username +bitcoin+.
==== Node startup

Loading…
Cancel
Save