{"id":405,"date":"2023-01-20T03:16:51","date_gmt":"2023-01-20T03:16:51","guid":{"rendered":"https:\/\/ale.newby.work\/?p=405"},"modified":"2023-01-20T03:16:57","modified_gmt":"2023-01-20T03:16:57","slug":"oxe-shadow-file","status":"publish","type":"post","link":"https:\/\/ale.newby.work\/?p=405","title":{"rendered":"OXE Passwords &#038; the \/etc\/shadow file"},"content":{"rendered":"\n<p>Information contained in the shadow file<\/p>\n\n\n\n<p>If anyone is interested this is how I worked out what the password was.<\/p>\n\n\n\n<p>I did a backup from the cmd line and transferred the cho-dat file to my laptop, I then used 7-Zip to open the archive and went to CHO-DAT\\CHO-DAT~\\\\etc\\ and opened the shadow file using notepad ++.<\/p>\n\n\n\n<p>The format of the file is as follows with each element separated by a :<\/p>\n\n\n\n<p>root:$1$jrTtj3TY$.rhLPcNiiLy8IyKWLwKXm0:16403:0:99999:7:::<\/p>\n\n\n\n<p>Which equates to<\/p>\n\n\n\n<ol class=\"wp-block-list\" type=\"1\" start=\"1\">\n<li>Username, up to 8 characters. Case-sensitive, usually all lowercase. A direct match to the username in the \/etc\/passwd file.<\/li>\n\n\n\n<li>Password, 13 character encrypted. A blank entry (eg. ::) indicates a password is not required to log in (usually a bad idea), and a &#8220;*&#8221; entry (eg. :*:) indicates the account has been disabled, the first three characters here indicate the type of algorithm used (which in this case is MD5<\/li>\n\n\n\n<li>The number of days (since January 1, 1970) since the password was last changed.<\/li>\n\n\n\n<li>The number of days before password may be changed (0 indicates it may be changed at any time)<\/li>\n\n\n\n<li>The number of days after which password <em>must<\/em> be changed (99999 indicates user can keep his or her password unchanged for many, many years)<\/li>\n\n\n\n<li>The number of days to warn user of an expiring password (7 for a full week)<\/li>\n\n\n\n<li>The number of days after password expires that account is disabled<\/li>\n\n\n\n<li>The number of days since January 1, 1970 that an account has been disabled<\/li>\n\n\n\n<li>A reserved field for possible future use<\/li>\n<\/ol>\n\n\n\n<p>Now at this point I was wondering if it would be possible to edit the file line for root with a known password (it maybe as I didn\u2019t have to go that far) but instead when I read 3 above I realized that the password had not been changed since Saturday, November 29, 2014 which is probably the date that I finished installing it originally, there are a number of web pages that do this for you if your keen the one I used is <a href=\"https:\/\/www.epochconverter.com\/seconds-days-since-y0\">https:\/\/www.epochconverter.com\/seconds-days-since-y0<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Information contained in the shadow file If anyone is interested this is how I worked&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/ale.newby.work\/?p=405\">Read the post<span class=\"screen-reader-text\">OXE Passwords &#038; the \/etc\/shadow file<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-405","post","type-post","status-publish","format-standard","hentry","category-alcatel","excerpt","zoom","full-without-featured","even","excerpt-0"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>OXE Passwords &amp; the \/etc\/shadow file - ALE @ Newby.Work<\/title>\n<meta name=\"description\" content=\"Contents of the \/etc\/shadow file\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ale.newby.work\/?p=397\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"OXE Passwords &amp; the \/etc\/shadow file - ALE @ Newby.Work\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ale.newby.work\/?p=397\" \/>\n<meta property=\"og:site_name\" content=\"ALE @ Newby.Work\" \/>\n<meta property=\"article:published_time\" content=\"2023-01-20T03:16:51+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-01-20T03:16:57+00:00\" \/>\n<meta name=\"author\" content=\"chris.newby\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"chris.newby\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/ale.newby.work\\\/?p=397#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ale.newby.work\\\/?p=397\"},\"author\":{\"name\":\"chris.newby\",\"@id\":\"https:\\\/\\\/ale.newby.work\\\/#\\\/schema\\\/person\\\/e42e06d6eac4394cf94b9d610c81b027\"},\"headline\":\"OXE Passwords &#038; the \\\/etc\\\/shadow file\",\"datePublished\":\"2023-01-20T03:16:51+00:00\",\"dateModified\":\"2023-01-20T03:16:57+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/ale.newby.work\\\/?p=397\"},\"wordCount\":336,\"articleSection\":[\"Alcatel\"],\"inLanguage\":\"en-AU\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/ale.newby.work\\\/?p=397\",\"url\":\"https:\\\/\\\/ale.newby.work\\\/?p=397\",\"name\":\"OXE Passwords & the \\\/etc\\\/shadow file - ALE @ Newby.Work\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ale.newby.work\\\/#website\"},\"datePublished\":\"2023-01-20T03:16:51+00:00\",\"dateModified\":\"2023-01-20T03:16:57+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/ale.newby.work\\\/#\\\/schema\\\/person\\\/e42e06d6eac4394cf94b9d610c81b027\"},\"description\":\"Contents of the \\\/etc\\\/shadow file\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/ale.newby.work\\\/?p=397#breadcrumb\"},\"inLanguage\":\"en-AU\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/ale.newby.work\\\/?p=397\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/ale.newby.work\\\/?p=397#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/ale.newby.work\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"OXE Passwords &#038; the \\\/etc\\\/shadow file\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/ale.newby.work\\\/#website\",\"url\":\"https:\\\/\\\/ale.newby.work\\\/\",\"name\":\"ALE @ Newby.Work\",\"description\":\"Phone system things\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/ale.newby.work\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-AU\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/ale.newby.work\\\/#\\\/schema\\\/person\\\/e42e06d6eac4394cf94b9d610c81b027\",\"name\":\"chris.newby\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-AU\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4fdb11a55edd13be2a46ccc78c7b6af81e5dcebb84f925d4b8e748a862ab1fb9?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4fdb11a55edd13be2a46ccc78c7b6af81e5dcebb84f925d4b8e748a862ab1fb9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4fdb11a55edd13be2a46ccc78c7b6af81e5dcebb84f925d4b8e748a862ab1fb9?s=96&d=mm&r=g\",\"caption\":\"chris.newby\"},\"sameAs\":[\"https:\\\/\\\/ale.newby.work\"],\"url\":\"https:\\\/\\\/ale.newby.work\\\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"OXE Passwords & the \/etc\/shadow file - ALE @ Newby.Work","description":"Contents of the \/etc\/shadow file","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/ale.newby.work\/?p=397","og_locale":"en_US","og_type":"article","og_title":"OXE Passwords & the \/etc\/shadow file - ALE @ Newby.Work","og_url":"https:\/\/ale.newby.work\/?p=397","og_site_name":"ALE @ Newby.Work","article_published_time":"2023-01-20T03:16:51+00:00","article_modified_time":"2023-01-20T03:16:57+00:00","author":"chris.newby","twitter_card":"summary_large_image","twitter_misc":{"Written by":"chris.newby","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/ale.newby.work\/?p=397#article","isPartOf":{"@id":"https:\/\/ale.newby.work\/?p=397"},"author":{"name":"chris.newby","@id":"https:\/\/ale.newby.work\/#\/schema\/person\/e42e06d6eac4394cf94b9d610c81b027"},"headline":"OXE Passwords &#038; the \/etc\/shadow file","datePublished":"2023-01-20T03:16:51+00:00","dateModified":"2023-01-20T03:16:57+00:00","mainEntityOfPage":{"@id":"https:\/\/ale.newby.work\/?p=397"},"wordCount":336,"articleSection":["Alcatel"],"inLanguage":"en-AU"},{"@type":"WebPage","@id":"https:\/\/ale.newby.work\/?p=397","url":"https:\/\/ale.newby.work\/?p=397","name":"OXE Passwords & the \/etc\/shadow file - ALE @ Newby.Work","isPartOf":{"@id":"https:\/\/ale.newby.work\/#website"},"datePublished":"2023-01-20T03:16:51+00:00","dateModified":"2023-01-20T03:16:57+00:00","author":{"@id":"https:\/\/ale.newby.work\/#\/schema\/person\/e42e06d6eac4394cf94b9d610c81b027"},"description":"Contents of the \/etc\/shadow file","breadcrumb":{"@id":"https:\/\/ale.newby.work\/?p=397#breadcrumb"},"inLanguage":"en-AU","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ale.newby.work\/?p=397"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/ale.newby.work\/?p=397#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ale.newby.work\/"},{"@type":"ListItem","position":2,"name":"OXE Passwords &#038; the \/etc\/shadow file"}]},{"@type":"WebSite","@id":"https:\/\/ale.newby.work\/#website","url":"https:\/\/ale.newby.work\/","name":"ALE @ Newby.Work","description":"Phone system things","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ale.newby.work\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-AU"},{"@type":"Person","@id":"https:\/\/ale.newby.work\/#\/schema\/person\/e42e06d6eac4394cf94b9d610c81b027","name":"chris.newby","image":{"@type":"ImageObject","inLanguage":"en-AU","@id":"https:\/\/secure.gravatar.com\/avatar\/4fdb11a55edd13be2a46ccc78c7b6af81e5dcebb84f925d4b8e748a862ab1fb9?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4fdb11a55edd13be2a46ccc78c7b6af81e5dcebb84f925d4b8e748a862ab1fb9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4fdb11a55edd13be2a46ccc78c7b6af81e5dcebb84f925d4b8e748a862ab1fb9?s=96&d=mm&r=g","caption":"chris.newby"},"sameAs":["https:\/\/ale.newby.work"],"url":"https:\/\/ale.newby.work\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/ale.newby.work\/index.php?rest_route=\/wp\/v2\/posts\/405","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ale.newby.work\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ale.newby.work\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ale.newby.work\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ale.newby.work\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=405"}],"version-history":[{"count":2,"href":"https:\/\/ale.newby.work\/index.php?rest_route=\/wp\/v2\/posts\/405\/revisions"}],"predecessor-version":[{"id":456,"href":"https:\/\/ale.newby.work\/index.php?rest_route=\/wp\/v2\/posts\/405\/revisions\/456"}],"wp:attachment":[{"href":"https:\/\/ale.newby.work\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=405"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ale.newby.work\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=405"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ale.newby.work\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=405"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}