Linux: how to edit certain system files in a secured way: vipw, vigr, visudo

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:

$ sudo vipw

Under certain circumstances you have to tell the utility, which (visual) editor to use:

$ sudo VISUAL=vim vipw

CAVEAT: the following article tells you something incorrect regarding “-s” / “–shadow” (read it up on the manual page referred to above and also on the article’s own comments section!):


Comments

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.