{"id":296,"date":"2019-10-21T19:35:26","date_gmt":"2019-10-21T17:35:26","guid":{"rendered":"http:\/\/linuxboxen2.dk\/?p=296"},"modified":"2019-10-21T19:35:26","modified_gmt":"2019-10-21T17:35:26","slug":"chsh","status":"publish","type":"post","link":"https:\/\/www.linuxboxen.dk\/?p=296","title":{"rendered":"CHSH"},"content":{"rendered":"<p>CHSH(1)\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 User Commands\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 CHSH(1)<\/p>\n<p>NAME<\/p>\n<p>chsh &#8211; change your login shell<\/p>\n<p>SYNOPSIS<\/p>\n<p>chsh [-s shell] [-l] [-u] [-v] [username]<\/p>\n<p>DESCRIPTION<\/p>\n<p>chsh is used to change your login shell.\u00a0 If a shell is not given on<br \/>\nthe command line, chsh prompts for one.<\/p>\n<p>chsh supports non-local entries (kerberos, LDAP, etc.) if linked with<br \/>\nlibuser, otherwise use ypchsh, lchsh or any other implementation for<br \/>\nnon-local entries.<\/p>\n<p>OPTIONS<\/p>\n<p>-s, &#8211;shell shell<br \/>\nSpecify your login shell.<\/p>\n<p>-l, &#8211;list-shells<br \/>\nPrint the list of shells listed in \/etc\/shells and exit.<\/p>\n<p>-u, &#8211;help<br \/>\nDisplay help text and exit.<\/p>\n<p>-v, &#8211;version<br \/>\nDisplay version information and exit.<\/p>\n<p>VALID SHELLS<\/p>\n<p>chsh will accept the full pathname of any executable file on the<br \/>\nsystem.\u00a0 However, it will issue a warning if the shell is not listed<br \/>\nin the \/etc\/shells file.\u00a0 On the other hand, it can also be<br \/>\nconfigured such that it will only accept shells listed in this file,<br \/>\nunless you are root.<\/p>\n<p>EXIT STATUS<\/p>\n<p>Returns 0 if operation was successful, 1 if operation failed or<br \/>\ncommand syntax was not valid.<\/p>\n<p>SEE ALSO<\/p>\n<p>login(1), passwd(5), shells(5)<\/p>\n<p>AUTHOR<\/p>\n<p>Salvatore Valente &lt;svalente@mit.edu&gt;<\/p>\n<p>AVAILABILITY<\/p>\n<p>The chsh command is part of the util-linux package and is available<br \/>\nfrom ftp:\/\/ftp.kernel.org\/pub\/linux\/utils\/util-linux\/.<\/p>\n<p>COLOPHON<\/p>\n<p>This page is part of the util-linux (a random collection of Linux<br \/>\nutilities) project.\u00a0 Information about the project can be found at<br \/>\n\u27e8https:\/\/www.kernel.org\/pub\/linux\/utils\/util-linux\/\u27e9.\u00a0 If you have a<br \/>\nbug report for this manual page, send it to<br \/>\nutil-linux@vger.kernel.org.\u00a0 This page was obtained from the<br \/>\nproject&#8217;s upstream Git repository<br \/>\n(git:\/\/git.kernel.org\/pub\/scm\/utils\/util-linux\/util-linux.git) on<br \/>\n2014-12-30.\u00a0 If you discover any rendering problems in this HTML ver\u2010<br \/>\nsion of the page, or you believe there is a better or more up-to-date<br \/>\nsource for the page, or you have corrections or improvements to the<br \/>\ninformation in this COLOPHON (which is not part of the original man\u2010<br \/>\nual page), send a mail to\u00a0man-pages@man7.org<\/p>\n<p>util-linux\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 July 2014\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 CHSH(1)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CHSH(1)\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 User Commands\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 CHSH(1) NAME chsh &#8211; change your login shell SYNOPSIS chsh [-s shell] [-l] [-u] [-v] [username] DESCRIPTION chsh is used to change your login shell.\u00a0 If a shell is not given on the command line, chsh prompts for one. chsh supports non-local entries (kerberos, LDAP, etc.) if linked with libuser, otherwise use [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_sitemap_exclude":false,"_sitemap_priority":"","_sitemap_frequency":"","footnotes":""},"categories":[8],"tags":[],"class_list":["post-296","post","type-post","status-publish","format-standard","hentry","category-shell"],"_links":{"self":[{"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/posts\/296","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=296"}],"version-history":[{"count":0,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/posts\/296\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=296"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=296"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=296"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}