{"id":603,"date":"2022-02-02T09:54:39","date_gmt":"2022-02-02T09:54:39","guid":{"rendered":"http:\/\/ictbank.ir\/blog\/?p=603"},"modified":"2023-05-01T16:07:43","modified_gmt":"2023-05-01T16:07:43","slug":"sudo-without-password","status":"publish","type":"post","link":"https:\/\/ictbank.ir\/blog\/sudo-without-password\/","title":{"rendered":"sudo without password"},"content":{"rendered":"\n<p>Typing password for sudo commands is an awful experience. So here&#8217;s what we should do to stop linux asking for password:<\/p>\n\n\n\n<p>1. Backup the sudoers file:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\ncp \/etc\/sudoers \/etc\/sudoers.old\n<\/pre><\/div>\n\n\n<p>2. Open the sudoers file for edit:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nvisudo\n<\/pre><\/div>\n\n\n<p>3. Edit sudoers file:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nusername ALL=(ALL) NOPASSWD: ALL\n<\/pre><\/div>\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Typing password for sudo commands is an awful experience. So here&#8217;s what we should do to stop linux asking for password: 1. Backup the sudoers file: 2. Open the sudoers file for edit: 3. Edit sudoers file:<\/p>\n","protected":false},"author":2,"featured_media":696,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[53,55,1,51,54,50,52],"tags":[],"class_list":["post-603","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos","category-fedora","category-installation","category-linxu","category-oraclelinux","category-os","category-redhat"],"_links":{"self":[{"href":"https:\/\/ictbank.ir\/blog\/wp-json\/wp\/v2\/posts\/603","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ictbank.ir\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ictbank.ir\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ictbank.ir\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ictbank.ir\/blog\/wp-json\/wp\/v2\/comments?post=603"}],"version-history":[{"count":1,"href":"https:\/\/ictbank.ir\/blog\/wp-json\/wp\/v2\/posts\/603\/revisions"}],"predecessor-version":[{"id":604,"href":"https:\/\/ictbank.ir\/blog\/wp-json\/wp\/v2\/posts\/603\/revisions\/604"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ictbank.ir\/blog\/wp-json\/wp\/v2\/media\/696"}],"wp:attachment":[{"href":"https:\/\/ictbank.ir\/blog\/wp-json\/wp\/v2\/media?parent=603"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ictbank.ir\/blog\/wp-json\/wp\/v2\/categories?post=603"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ictbank.ir\/blog\/wp-json\/wp\/v2\/tags?post=603"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}