Category: system administration
-
Linux: how to edit certain system files in a secured way: vipw, vigr, visudo
https://manpages.debian.org/unstable/passwd/vipw.8.en.html https://manpages.debian.org/unstable/passwd/vigr.8.en.html https://manpages.debian.org/unstable/sudo/visudo.8.en.html vipw and vigr are actually the same utility. You still have to also apply sudo on your command in order to gain the necessary privileges: Under certain circumstances you have to tell the utility, which (visual) editor to use: CAVEAT: the following article tells you something incorrect regarding “-s” / “–shadow” (read…
-
Linux: how to grant “sudo” privileges to an account: “usermod”
https://manpages.debian.org/unstable/passwd/usermod.8.en.html CAVEAT: Do not edit any file for gaining the required effect, instead: use the following command line! Actually it adds (“–append”) ACCOUNT to a user group by the name of sudo. That works because of this entry in the file /etc/sudoers (what is the group sudo allowed to do?): In other Linux distributions the group…