{"id":3,"date":"2005-01-24T11:52:38","date_gmt":"2005-01-24T11:52:38","guid":{"rendered":"http:\/\/bingo.bananasplit.info\/wordpress\/?p=3"},"modified":"2005-01-25T00:01:53","modified_gmt":"2005-01-25T00:01:53","slug":"bash-profile","status":"publish","type":"post","link":"https:\/\/blog.stmellion.org\/?p=3","title":{"rendered":"Bash Profile"},"content":{"rendered":"<p>Bash profile consists of two files:<br \/>\n\/etc\/skel\/.bash_profile<br \/>\n\/etc\/skel\/.bashrc<br \/>\nFor some reason, all the entries in .bash_profile are commented out by default; not sure why.<\/p>\n<p>When doing a useradd, a -m needs to be used in order to get these files copied to the users homedir.   This switch will also create the homedir if it doesn&#8217;t exist.  Seems like a good reason to add the following to root&#8217;s .bashrc:<br \/>\nalias useradd=&#8217;useradd -m&#8217;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Bash profile consists of two files: \/etc\/skel\/.bash_profile \/etc\/skel\/.bashrc For some reason, all the entries in .bash_profile are commented out by default; not sure why. When doing a useradd, a -m needs to be used in order to get these files copied to the users homedir. This switch will also create the homedir if it doesn&#8217;t&hellip; <a class=\"more-link\" href=\"https:\/\/blog.stmellion.org\/?p=3\">Continue reading <span class=\"screen-reader-text\">Bash Profile<\/span><\/a><\/p>\n","protected":false},"author":24,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-3","post","type-post","status-publish","format-standard","hentry","category-debian","entry"],"_links":{"self":[{"href":"https:\/\/blog.stmellion.org\/index.php?rest_route=\/wp\/v2\/posts\/3","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.stmellion.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.stmellion.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.stmellion.org\/index.php?rest_route=\/wp\/v2\/users\/24"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.stmellion.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3"}],"version-history":[{"count":0,"href":"https:\/\/blog.stmellion.org\/index.php?rest_route=\/wp\/v2\/posts\/3\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.stmellion.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.stmellion.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.stmellion.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}