$darkmode
Elektra 0.11.0
|
This plugin parses passwd
files, e.g. /etc/passwd
.
See installation. The package is called libelektra5-experimental
.
The non-POSIX function fgetpwent
(GNU_SOURCE) will be used to read the file supplied by the resolver. As a fallback we implemented our own version based on musls fgetpwent
.
For writing putpwent
(GNU_SOURCE) will be used. If it is not available the plugin will write straight to the config file.
For the plugin to be build at least POSIX_C_SOURCE >= 200809L
compatibility is required.
If the config key index
is set to name
passwd entries will be sorted by name, if not set or set to uid
passwd entries will be sorted by uid
gecos
contains the full name of the accountgid
contains the accounts primary group idhome
contains the path to the accounts home directoryshell
contains the accounts default shelluid
contains the accounts uidname
contains the account nameTo mount the passwd file you can run
To see which entries for the root user exist you can run
If you want to receive one specific value you can run for example
You can also export it as whole in any format you like, for example JSON
To unmount it, you can run