Skip to content

permission denied when using --datadir #20584

@7--

Description

@7--
$ geth --datadir /home/phil/media/hd/eth-node
INFO [01-20|20:21:09.759] Bumping default cache on mainnet         provided=1024 updated=4096
INFO [01-20|20:21:09.763] Maximum peer count                       ETH=50 LES=0 total=50
INFO [01-20|20:21:09.763] Smartcard socket not found, disabling    err="stat /run/pcscd/pcscd.comm: no such file or directory"
Fatal: Failed to create the protocol stack: mkdir /home/phil/media/hd/eth-node/keystore: permission denied

The folder has full permission.

$ ll  /home/phil/media/hd/ 
drwxrwxrwx 2 phil phil  4096 Jan 20 18:27 eth-node/
$ geth version
Geth
Version: 1.9.6-unstable
Architecture: amd64
Protocol Versions: [63]
Network Id: 1
Go Version: go1.11.13
Operating System: linux
GOPATH=
GOROOT=/home/travis/.gimme/versions/go1.11.13.linux.amd64

I'm reinstalled geth with snap and have the same issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions