{"id":1510,"date":"2016-11-28T02:46:10","date_gmt":"2016-11-28T02:46:10","guid":{"rendered":"http:\/\/www.incredigeek.com\/home\/?p=1510"},"modified":"2016-11-28T02:50:57","modified_gmt":"2016-11-28T02:50:57","slug":"set-bash-as-users-default-shell","status":"publish","type":"post","link":"https:\/\/www.incredigeek.com\/home\/set-bash-as-users-default-shell\/","title":{"rendered":"Set Bash as users default shell"},"content":{"rendered":"<p>You can change the default shell for a Linux user with the following command.\u00a0 Change &#8220;\/bin\/bash&#8221; to whatever shell you want and replace USERNAME with the Linux user.<\/p>\n<pre>chsh \/bin\/bash USERNAME<\/pre>\n<p>Enter in the users password and then log out and back in and the users shell will be whatever shell you specified.\u00a0 In this case bash.<\/p>\n<p>You can also do this by manually editing the \/etc\/passwd file.\u00a0 Find the user by their username, and then replace the last part of the line with the new shell path.<\/p>\n<p>Some Linux distributions (like Kali Linux) use \/bin\/sh as the default shell for new users.\u00a0 Changing it to bash makes the shell a little more usable.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can change the default shell for a Linux user with the following command.\u00a0 Change &#8220;\/bin\/bash&#8221; to whatever shell you want and replace USERNAME with the Linux user. chsh \/bin\/bash USERNAME Enter in the users password and then log out &hellip; <a href=\"https:\/\/www.incredigeek.com\/home\/set-bash-as-users-default-shell\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3],"tags":[268,267,7,324],"class_list":["post-1510","post","type-post","status-publish","format-standard","hentry","category-command-line","category-linux","tag-kali","tag-kali-linux","tag-linux-2","tag-passwd"],"_links":{"self":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/1510","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/comments?post=1510"}],"version-history":[{"count":4,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/1510\/revisions"}],"predecessor-version":[{"id":1514,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/1510\/revisions\/1514"}],"wp:attachment":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/media?parent=1510"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/categories?post=1510"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/tags?post=1510"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}