{"id":411,"date":"2013-07-24T14:17:33","date_gmt":"2013-07-24T21:17:33","guid":{"rendered":"http:\/\/blog.ls-al.com\/?p=411"},"modified":"2013-07-24T14:20:39","modified_gmt":"2013-07-24T21:20:39","slug":"auto-login-and-sudo-security-cheat","status":"publish","type":"post","link":"https:\/\/blog.ls-al.com\/auto-login-and-sudo-security-cheat\/","title":{"rendered":"Auto Login and Sudo Security Cheat"},"content":{"rendered":"
Sometimes you have a VM that you just don't care about security. \u00a0I do the following to cheat a little on login and sudo.<\/p>\n
Update shadow password file will enable tools like gksudo to work. \u00a0gksudo is what is used for prompts you get when using System Administration etc... \u00a0You don't have to type your password just hit enter.<\/p>\n
It has to be this specific string \"U6aMy0wojraho<\/span>\"\u00a0you set.<\/p>\n Give yourself some sudo privileges. \u00a0For instance sudo -s won't need a password. Use visudo tool to update sudo policies.<\/p>\n Enable Auto Login:\u00a0System Settings -> User Accounts -> Unlock -> Authenticate (No need for password now) -> Click Automatic Login<\/p>\n I also disable my screensaver and password lock on the VM since my host has that enabled through an Active Directory policy already.<\/p>\n","protected":false},"excerpt":{"rendered":" Sometimes you have a VM that you just don’t care about security. \u00a0I do the following to cheat a little<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[33,31],"tags":[59],"class_list":["post-411","post","type-post","status-publish","format-standard","hentry","category-gnome","category-ubuntu","tag-gnome"],"_links":{"self":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts\/411","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/comments?post=411"}],"version-history":[{"count":0,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts\/411\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/media?parent=411"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/categories?post=411"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/tags?post=411"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}\r\n\r\n# grep rrossouw \/etc\/shadow\r\nrrossouw:U6aMy0wojraho:15910:0:99999:7:::\r\n\r\n<\/pre>\n
\r\n\r\n# grep rrossouw \/etc\/sudoers\r\nrrossouw ALL=(ALL) NOPASSWD:ALL\r\n\r\n<\/pre>\n