this post was submitted on 30 Mar 2025
22 points (92.3% liked)

Linux

7659 readers
282 users here now

A community for everything relating to the GNU/Linux operating system

Also check out:

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

founded 2 years ago
MODERATORS
top 3 comments
sorted by: hot top controversial new old
[โ€“] Fizz@lemmy.nz 4 points 2 months ago (1 children)

What are the benefits of statelessness storing things in /usr and etc instead of /home? I would have thought using a home directory is preferable to root because the home directory can be easily modified, partitioned and backed up.

Also what are the advantages of setting up things to remove /etc/passwd and grub etc. It seems to be you're making it harder for the experienced user to manage their system and now they have to learn a new toolset.

[โ€“] malfisya@piefed.social 2 points 22 hours ago* (last edited 21 hours ago) (1 children)

This is an old comment but I am replying anyway.

The idea of statelessness is not limiting user configuration but giving user a sane default config. Many software doesn't work without a config file, the idea is that a software should ship a default (vendored) configuration that make the software can be used as is. The default config is stored at vendored directory. This default config file then should be able overriden by user own config.

For example: Alex needs program "A" for work but program "A" needs a config file to even launch. Ideally the program "A" should ship a default config file to vendored directory in /usr. If Alex needs to modify the configuration to fit his needs, now he can do that by copying the default configuration in /usr directory to either /etc (system wide) or /.local/config (per-user). Alex now can modify the config file as he pleases. Now, in case some modification Alex made make program "A" doesn't work, he can just nuke his own config file and program "A" will work again because of the default config is there as a fallback.

Good news is many program is already following this schema of configuration files but there are also many low-level program that does not (bash, pam, etc).

[โ€“] Fizz@lemmy.nz 2 points 16 hours ago

Thanks for the reply. That explanation makes sense to me.