3 ms·
Having sudo itself makes an OS less secure since malware can use it to easily get root. Sure a rust version may be more secure, but even better would be deletin
by charcircuit 3y ago
Having sudo itself makes an OS less secure since malware can use it to easily get root. Sure a rust version may be more secure, but even better would be deleting it entirely.
- AnonC 3y agoHow else would you do things as root or superuser without exposing everything? If your sudo configuration is ALL = ALL (or is a variant of this), then sudo opens everything up for use/abuse. But if you carefully construct the configuration to allow only certain commands, it’s much better than just giving out the root password to users.
- charcircuit 3y ago>How else would you do things as root Nothing a user is supposed to do should require elevating to root to do. >it’s much better than just giving out the root password to users. This is even worse. Access control should be set up properly instead of having users assume the identity of other accounts.
- gitaarik 3y agoAnd so how do you then configure a server? Like modifying the files in /etc/
- charcircuit 3y agoThere are several different options 1. Don't. Just include the correct configuration as part of the OS. 2. For a configuration file use a group for passing out write access to users on the system. 3. Have a daemon which handles updating configuration files based off some central source of truth which pushes changes to a fleet of servers. Programs could directly communicate with this daemon to get their configuration.
- thebitstick 3y agoOn a server, absolutely. On a desktop, the user is usually the administrator anyways. UAC exists on Windows land and the Administrator account is disabled for a reason.
- charcircuit 3y agoI disagree. Desktop users run a lot of untrusted software. Allowing software to gain Administrator privileges with a single click from the user is a mistake. It doesn't follow the principle of least privilege where the user should only give apps permission for what they need to do and not more.