Using neo4j-community without sudo

When installing neo4j-community on my linux system it will create the folowing file structure.

/usr/bin/
    neo4j
    neo4j-admin

/etc/neo4j/
    neo4j-admin.conf
    neo4j.conf

/var/lib/neo4j/
    data

The database is in

/var/lib/neo4j/data

so neo4j needs sudo to manipulate it.
Is it possible to configure neo4j to use another directory for the database. For example by moving the /var/lib/neo4j to my home and tell neo4j the new location anyhow.
In the neo4j-admin.conf and neo4j.conf I did not found settings to do that.

How to make neo4j not needing sudo?

Many thanks!

@leo.laessig

it appears you may have installed the Neo4j Debian package given the file locations you reference.

If however you install as the Neo4j tar package you have complete control over location.
See https://neo4j.com/download-center/ for download of a Linux / Mac Executable and then follow Linux executable (.tar) - Operations Manual

1 Like