Home Explore Blog Models CI



nix

doc/manual/source/installation/single-user.md
f9c1b9f5fc0560ec7ebe744c0403226b9b01cb5b5b818b4300000003000001e4
# Single-User Mode

In single-user mode, all Nix operations that access the database in
`prefix/var/nix/db` or modify the Nix store in `prefix/store` must be
performed under the user ID that owns those directories. This is
typically root. (If you install from RPM packages, that’s in fact the
default ownership.) However, on single-user machines, it is often
convenient to `chown` those directories to your normal user account so
that you don’t have to `su` to root all the time.

Chunks
7099b85e (1st chunk of `doc/manual/source/installation/single-user.md`)
Title: Nix Single-User Mode Operations and Ownership
Summary
In Nix's single-user mode, all operations accessing the database (`prefix/var/nix/db`) or modifying the store (`prefix/store`) must be performed by the user ID that owns these directories, typically root. For convenience on single-user machines, it's a common practice to change the ownership of these directories to a normal user account to avoid constantly switching to root.