{"id":10204,"date":"2018-12-17T11:54:02","date_gmt":"2018-12-17T10:54:02","guid":{"rendered":"http:\/\/www.b.shuttle.de\/hayek\/hayek\/jochen\/wp\/blog-en\/?p=10204"},"modified":"2018-12-17T11:54:02","modified_gmt":"2018-12-17T10:54:02","slug":"vipw-vigr-visudo","status":"publish","type":"post","link":"https:\/\/wp.jochen.hayek.name\/blog-en\/2018\/12\/17\/vipw-vigr-visudo\/","title":{"rendered":"Linux: how to edit certain system files in a secured way: vipw, vigr, visudo"},"content":{"rendered":"\n\t\t\t\t\n\t\t\t\t\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/manpages.debian.org\/unstable\/passwd\/vipw.8.en.html\">https:\/\/manpages.debian.org\/unstable\/passwd\/vipw.8.en.html<\/a><\/li><li><a href=\"https:\/\/manpages.debian.org\/unstable\/passwd\/vigr.8.en.html\">https:\/\/manpages.debian.org\/unstable\/passwd\/vigr.8.en.html<\/a><\/li><li><a href=\"https:\/\/manpages.debian.org\/unstable\/sudo\/visudo.8.en.html\">https:\/\/manpages.debian.org\/unstable\/sudo\/visudo.8.en.html<\/a><\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><em>vipw<\/em> and <em>vigr<\/em> are actually the same utility.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You still have to also apply <em>sudo<\/em> on your command in order to gain the necessary privileges:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo vipw<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Under certain circumstances you have to tell the utility, which (visual) editor to use:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo VISUAL=vim vipw<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">CAVEAT: the following article tells you something incorrect regarding &#8220;-s&#8221; \/ &#8220;&#8211;shadow&#8221; (read it up on the manual page referred to above and also on the article&#8217;s own <em>comments<\/em> section!):<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/www.cyberciti.biz\/tips\/what-is-the-best-way-to-edit-etcpasswd-shadow-and-group-files.html\">https:\/\/www.cyberciti.biz\/tips\/what-is-the-best-way-to-edit-etcpasswd-shadow-and-group-files.html<\/a><\/li><\/ul>\n\t\t\t\t","protected":false},"excerpt":{"rendered":"<p>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 &#8220;-s&#8221; \/ &#8220;&#8211;shadow&#8221; (read [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false,"_share_on_mastodon":"0"},"categories":[769,306,845,671],"tags":[],"class_list":["post-10204","post","type-post","status-publish","format-standard","hentry","category-debian","category-linux","category-system-administration","category-unix"],"share_on_mastodon":{"url":"","error":""},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paO0kP-2EA","jetpack_likes_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/10204","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/comments?post=10204"}],"version-history":[{"count":0,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/10204\/revisions"}],"wp:attachment":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/media?parent=10204"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/categories?post=10204"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/tags?post=10204"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}