Re:Why the Windows Registry sucks technically (2010)
by 5e92cb50239222b on Friday July 29, 2022 @11:20AM
(#32278078)
> If you absolutely could not write to /etc, then you would never be able to change your password.
Since we're talking about Linux, I would refrain from using absolute clauses like "never".
systemd-homed allows you to create "portable" user profiles which contain everything pertaining to a particular user, including his password. So user profiles (including your files, etc) can be moved between computers simply by rsync'ing that directory, or putting it on a network share.
`homectl passwd` (which changes a portable user's password) does not require writable /etc.
I think I've seen a few other solutions like that.
Re:Why the Windows Registry sucks technically (2010)
by RedShift1 on Friday July 29, 2022 @02:56PM
(#32280527)
Users can not write to /etc, those programs like passwd can because they have the suid bit on and run as root regardless of which user initiated the process.
Re:Why the Windows Registry sucks technically (2010)
by Blikkentrekker on Friday July 29, 2022 @12:30PM
(#32278999)
It's more so that users can ask the administrator to write to `/etc/` for them.
The administrator in this case has an automated tool that handles this requæst but the actual user the writing occurs under is the root user.
Re:Why the Windows Registry sucks technically (2010)
by mecsred on Friday July 29, 2022 @11:29AM
(#32278220)
That's like saying you've broken RSA because you can cause controlled reads. All you have to do is send the encrypted message to the intended recipient and wait for them to decrypt it.
Re:Why the Windows Registry sucks technically (2010)
by deelowe on Friday July 29, 2022 @10:56AM
(#32277770)
That's being a bit pedantic innit?
Re:Why the Windows Registry sucks technically (2010)
by lelanthran on Monday August 01, 2022 @04:42AM
(#32303479)
Maybe in OPs opinion, using `passwd` to write to `/etc/passwd` is not the same thing as using the registry API to write to the registry?
Personally, I feel it is the same thing.
If you absolutely could not write to /etc, then you would never be able to change your password.
The passwd, chsh, chfn, and other utilities allow a non-privileged user to make controlled changes to privileged files via the setuid/gid system calls.
A user can trigger controlled writes to files in /etc.