<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://freebsdwiki.net/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://freebsdwiki.net/index.php?action=history&amp;feed=atom&amp;title=Invalid_shell</id>
		<title>Invalid shell - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://freebsdwiki.net/index.php?action=history&amp;feed=atom&amp;title=Invalid_shell"/>
		<link rel="alternate" type="text/html" href="http://freebsdwiki.net/index.php?title=Invalid_shell&amp;action=history"/>
		<updated>2026-04-30T17:53:47Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.18.0</generator>

	<entry>
		<id>http://freebsdwiki.net/index.php?title=Invalid_shell&amp;diff=6623&amp;oldid=prev</id>
		<title>Ninereasons at 16:19, 16 June 2006</title>
		<link rel="alternate" type="text/html" href="http://freebsdwiki.net/index.php?title=Invalid_shell&amp;diff=6623&amp;oldid=prev"/>
				<updated>2006-06-16T16:19:00Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 16:19, 16 June 2006&lt;/td&gt;
		&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;An '''invalid [[shell]]''' is a path in the account database's ''login shell path'' field to a file that does not exist, cannot be executed for login or, if executed does not provide a shell. [[ /sbin/nologin]] is an invalid shell, and [[ /bin/false]] is another, both of which are program paths that &amp;lt;code&amp;gt;root&amp;lt;/code&amp;gt; can use to ''intentionally'' disable shell access for the user to which they are assigned as the login shell.&amp;#160; It is a valid reason to be distressed if you somehow manage to ''unintentionally'' assign an invalid shell to &amp;lt;code&amp;gt;root&amp;lt;/code&amp;gt;, which can be done as easily as, for example, assigning &amp;lt;code&amp;gt;/usr/local/bin/bash&amp;lt;/code&amp;gt; as the root user's login shell, and then deleting that port.&amp;#160; Oops.&amp;#160; What if &amp;lt;code&amp;gt;bash&amp;lt;/code&amp;gt; is not located on your boot partition, and &amp;lt;code&amp;gt;/usr/local/bin&amp;lt;/code&amp;gt; fails to mount?&amp;#160; Oops again.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;An '''invalid [[shell]]''' is a path in the account database's ''login shell path'' field to a file that does not exist &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;or&lt;/ins&gt;, cannot be executed for login or, if executed does not provide a shell. [[ /sbin/nologin]] is an invalid shell, and [[ /bin/false]] is another, both of which are program paths that &amp;lt;code&amp;gt;root&amp;lt;/code&amp;gt; can use to ''intentionally'' disable shell access for the user to which they are assigned as the login shell.&amp;#160; It is a valid reason to be distressed if you somehow manage to ''unintentionally'' assign an invalid shell to &amp;lt;code&amp;gt;root&amp;lt;/code&amp;gt;, which can be done as easily as, for example, assigning &amp;lt;code&amp;gt;/usr/local/bin/bash&amp;lt;/code&amp;gt; as the root user's login shell, and then deleting that port.&amp;#160; Oops.&amp;#160; What if &amp;lt;code&amp;gt;bash&amp;lt;/code&amp;gt; is not located on your boot partition, and &amp;lt;code&amp;gt;/usr/local/bin&amp;lt;/code&amp;gt; fails to mount?&amp;#160; Oops again.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;This isn't quite the same thing as a ''non-standard shell'' - which can include any valid shell, the path of which is not listed in the ''shell database'' (/[[etc/shells]]). A non-root user cannot assign itself a shell that does not exist in the shell database; or, the message will return:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;This isn't quite the same thing as a ''non-standard shell'' - which can include any valid shell, the path of which is not listed in the ''shell database'' (/[[etc/shells]]). A non-root user cannot assign itself a shell that does not exist in the shell database; or, the message will return:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key bsdwiki:diff:version:1.11a:oldid:6582:newid:6623 --&gt;
&lt;/table&gt;</summary>
		<author><name>Ninereasons</name></author>	</entry>

	<entry>
		<id>http://freebsdwiki.net/index.php?title=Invalid_shell&amp;diff=6582&amp;oldid=prev</id>
		<title>Ninereasons: syntax</title>
		<link rel="alternate" type="text/html" href="http://freebsdwiki.net/index.php?title=Invalid_shell&amp;diff=6582&amp;oldid=prev"/>
				<updated>2006-06-07T21:41:32Z</updated>
		
		<summary type="html">&lt;p&gt;syntax&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 21:41, 7 June 2006&lt;/td&gt;
		&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;An '''invalid [[shell]]''' is a path &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;to a program &lt;/del&gt;in the account database's ''login shell path'' field that does not exist, cannot be executed for login&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;, &lt;/del&gt;or if executed does not provide a shell. [[ /sbin/nologin]] is an invalid shell, and [[ /bin/false]] is another, both of which are program paths that &amp;lt;code&amp;gt;root&amp;lt;/code&amp;gt; can use to ''intentionally'' disable shell access for the user to which they are assigned as the login shell.&amp;#160; It is a valid reason to be distressed if you somehow manage to ''unintentionally'' assign an invalid shell to &amp;lt;code&amp;gt;root&amp;lt;/code&amp;gt;, which can be done as easily as, for example, assigning &amp;lt;code&amp;gt;/usr/local/bin/bash&amp;lt;/code&amp;gt; as the root user's login shell, and then deleting that port.&amp;#160; Oops.&amp;#160; What if &amp;lt;code&amp;gt;bash&amp;lt;/code&amp;gt; is not located on your boot partition, and &amp;lt;code&amp;gt;/usr/local/bin&amp;lt;/code&amp;gt; fails to mount?&amp;#160; Oops again.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;An '''invalid [[shell]]''' is a path in the account database's ''login shell path'' field &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;to a file &lt;/ins&gt;that does not exist, cannot be executed for login or&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;, &lt;/ins&gt;if executed does not provide a shell. [[ /sbin/nologin]] is an invalid shell, and [[ /bin/false]] is another, both of which are program paths that &amp;lt;code&amp;gt;root&amp;lt;/code&amp;gt; can use to ''intentionally'' disable shell access for the user to which they are assigned as the login shell.&amp;#160; It is a valid reason to be distressed if you somehow manage to ''unintentionally'' assign an invalid shell to &amp;lt;code&amp;gt;root&amp;lt;/code&amp;gt;, which can be done as easily as, for example, assigning &amp;lt;code&amp;gt;/usr/local/bin/bash&amp;lt;/code&amp;gt; as the root user's login shell, and then deleting that port.&amp;#160; Oops.&amp;#160; What if &amp;lt;code&amp;gt;bash&amp;lt;/code&amp;gt; is not located on your boot partition, and &amp;lt;code&amp;gt;/usr/local/bin&amp;lt;/code&amp;gt; fails to mount?&amp;#160; Oops again.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;This isn't quite the same thing as a ''non-standard shell'' - which can include any valid shell, the path of which is not listed in the ''shell database'' (/[[etc/shells]]). A non-root user cannot assign itself a shell that does not exist in the shell database; or, the message will return:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;This isn't quite the same thing as a ''non-standard shell'' - which can include any valid shell, the path of which is not listed in the ''shell database'' (/[[etc/shells]]). A non-root user cannot assign itself a shell that does not exist in the shell database; or, the message will return:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key bsdwiki:diff:version:1.11a:oldid:6580:newid:6582 --&gt;
&lt;/table&gt;</summary>
		<author><name>Ninereasons</name></author>	</entry>

	<entry>
		<id>http://freebsdwiki.net/index.php?title=Invalid_shell&amp;diff=6580&amp;oldid=prev</id>
		<title>Ninereasons: another oops</title>
		<link rel="alternate" type="text/html" href="http://freebsdwiki.net/index.php?title=Invalid_shell&amp;diff=6580&amp;oldid=prev"/>
				<updated>2006-06-07T20:29:24Z</updated>
		
		<summary type="html">&lt;p&gt;another oops&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 20:29, 7 June 2006&lt;/td&gt;
		&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;An '''invalid [[shell]]''' is a path to a program in the account database's ''login shell path'' field that does not exist, cannot be executed for login, or if executed does not provide a shell. [[ /sbin/nologin]] is an invalid shell, and [[ /bin/false]] is another, both of which are program paths that &amp;lt;code&amp;gt;root&amp;lt;/code&amp;gt; can use to ''intentionally'' disable shell access for the user to which they are assigned as the login shell.&amp;#160; It is a valid reason to be distressed if you somehow manage to ''unintentionally'' assign an invalid shell to &amp;lt;code&amp;gt;root&amp;lt;/code&amp;gt;, which can be done as easily as, for example, assigning &amp;lt;code&amp;gt;/usr/local/bin/bash&amp;lt;/code&amp;gt; as the root user's login shell, and then deleting that port.&amp;#160; Oops.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;An '''invalid [[shell]]''' is a path to a program in the account database's ''login shell path'' field that does not exist, cannot be executed for login, or if executed does not provide a shell. [[ /sbin/nologin]] is an invalid shell, and [[ /bin/false]] is another, both of which are program paths that &amp;lt;code&amp;gt;root&amp;lt;/code&amp;gt; can use to ''intentionally'' disable shell access for the user to which they are assigned as the login shell.&amp;#160; It is a valid reason to be distressed if you somehow manage to ''unintentionally'' assign an invalid shell to &amp;lt;code&amp;gt;root&amp;lt;/code&amp;gt;, which can be done as easily as, for example, assigning &amp;lt;code&amp;gt;/usr/local/bin/bash&amp;lt;/code&amp;gt; as the root user's login shell, and then deleting that port.&amp;#160; Oops&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;.&amp;#160; What if &amp;lt;code&amp;gt;bash&amp;lt;/code&amp;gt; is not located on your boot partition, and &amp;lt;code&amp;gt;/usr/local/bin&amp;lt;/code&amp;gt; fails to mount?&amp;#160; Oops again&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;This isn't quite the same thing as a ''non-standard shell'' - which can include any valid shell, the path of which is not listed in the ''shell database'' (/[[etc/shells]]). A non-root user cannot assign itself a shell that does not exist in the shell database; or, the message will return:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;This isn't quite the same thing as a ''non-standard shell'' - which can include any valid shell, the path of which is not listed in the ''shell database'' (/[[etc/shells]]). A non-root user cannot assign itself a shell that does not exist in the shell database; or, the message will return:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key bsdwiki:diff:version:1.11a:oldid:6579:newid:6580 --&gt;
&lt;/table&gt;</summary>
		<author><name>Ninereasons</name></author>	</entry>

	<entry>
		<id>http://freebsdwiki.net/index.php?title=Invalid_shell&amp;diff=6579&amp;oldid=prev</id>
		<title>Ninereasons: paren</title>
		<link rel="alternate" type="text/html" href="http://freebsdwiki.net/index.php?title=Invalid_shell&amp;diff=6579&amp;oldid=prev"/>
				<updated>2006-06-07T20:26:32Z</updated>
		
		<summary type="html">&lt;p&gt;paren&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 20:26, 7 June 2006&lt;/td&gt;
		&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;An '''invalid [[shell]]''' is a path to a program in the account database's ''login shell path'' field that does not exist, cannot be executed for login, or if executed does not provide a shell. [[ /sbin/nologin]] is an invalid shell, and [[ /bin/false]] is another, both of which are program paths that &amp;lt;code&amp;gt;root&amp;lt;/code&amp;gt; can use to ''intentionally'' disable shell access for the user to which they are assigned as the login shell.&amp;#160; It is a valid reason to be distressed if you somehow manage to ''unintentionally'' assign an invalid shell to &amp;lt;code&amp;gt;root&amp;lt;/code&amp;gt;, which can be done as easily as, for example, assigning &amp;lt;code&amp;gt;/usr/local/bin/bash&amp;lt;/code&amp;gt; as the root user's login shell, and then deleting that port.&amp;#160; Oops.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;An '''invalid [[shell]]''' is a path to a program in the account database's ''login shell path'' field that does not exist, cannot be executed for login, or if executed does not provide a shell. [[ /sbin/nologin]] is an invalid shell, and [[ /bin/false]] is another, both of which are program paths that &amp;lt;code&amp;gt;root&amp;lt;/code&amp;gt; can use to ''intentionally'' disable shell access for the user to which they are assigned as the login shell.&amp;#160; It is a valid reason to be distressed if you somehow manage to ''unintentionally'' assign an invalid shell to &amp;lt;code&amp;gt;root&amp;lt;/code&amp;gt;, which can be done as easily as, for example, assigning &amp;lt;code&amp;gt;/usr/local/bin/bash&amp;lt;/code&amp;gt; as the root user's login shell, and then deleting that port.&amp;#160; Oops.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;This isn't quite the same thing as a ''non-standard shell'' - which can include any valid shell, the path of which is not listed in the ''shell database'' /[[etc/shells]]). A non-root user cannot assign itself a shell that does not exist in the shell database; or, the message will return:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;This isn't quite the same thing as a ''non-standard shell'' - which can include any valid shell, the path of which is not listed in the ''shell database'' &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;(&lt;/ins&gt;/[[etc/shells]]). A non-root user cannot assign itself a shell that does not exist in the shell database; or, the message will return:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; %chsh -s /sbin/nologin&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; %chsh -s /sbin/nologin&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key bsdwiki:diff:version:1.11a:oldid:6578:newid:6579 --&gt;
&lt;/table&gt;</summary>
		<author><name>Ninereasons</name></author>	</entry>

	<entry>
		<id>http://freebsdwiki.net/index.php?title=Invalid_shell&amp;diff=6578&amp;oldid=prev</id>
		<title>Ninereasons: invalid vs non-standard</title>
		<link rel="alternate" type="text/html" href="http://freebsdwiki.net/index.php?title=Invalid_shell&amp;diff=6578&amp;oldid=prev"/>
				<updated>2006-06-07T19:43:58Z</updated>
		
		<summary type="html">&lt;p&gt;invalid vs non-standard&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 19:43, 7 June 2006&lt;/td&gt;
		&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;A &lt;/del&gt;shell &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;that won&lt;/del&gt;'&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;t let you &lt;/del&gt;login, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;either intentionally &lt;/del&gt;or not. [[ /sbin/nologin]] is &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;one&lt;/del&gt;, [[ /bin/false]] is another.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;An '''invalid [[&lt;/ins&gt;shell&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;]]''' is a path to a program in the account database's '&lt;/ins&gt;'&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;login shell path'' field that does not exist, cannot be executed for &lt;/ins&gt;login, or &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;if executed does &lt;/ins&gt;not &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;provide a shell&lt;/ins&gt;. [[ /sbin/nologin]] is &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;an invalid shell&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;and &lt;/ins&gt;[[ /bin/false]] is another&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;, both of which are program paths that &amp;lt;code&amp;gt;root&amp;lt;/code&amp;gt; can use to ''intentionally'' disable shell access for the user to which they are assigned as the login shell.&amp;#160; It is a valid reason to be distressed if you somehow manage to ''unintentionally'' assign an invalid shell to &amp;lt;code&amp;gt;root&amp;lt;/code&amp;gt;, which can be done as easily as, for example, assigning &amp;lt;code&amp;gt;/usr/local/bin/bash&amp;lt;/code&amp;gt; as the root user's login shell, and then deleting that port.&amp;#160; Oops.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;This isn't quite the same thing as a ''non-standard shell'' - which can include any valid shell, the path of which is not listed in the ''shell database'' /[[etc/shells]]). A non-root user cannot assign itself a shell that does not exist in the shell database; or, the message will return:&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt; %chsh -s /sbin/nologin&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt; chsh: /sbin/nologin: non-standard shell&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Obviously, you don't want an invalid shell to be listed in the database of standard shells (&amp;lt;code&amp;gt;/etc/shells&amp;lt;/code&amp;gt;)&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category: Shells]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category: Shells]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key bsdwiki:diff:version:1.11a:oldid:4718:newid:6578 --&gt;
&lt;/table&gt;</summary>
		<author><name>Ninereasons</name></author>	</entry>

	<entry>
		<id>http://freebsdwiki.net/index.php?title=Invalid_shell&amp;diff=4718&amp;oldid=prev</id>
		<title>Dave at 07:18, 24 December 2004</title>
		<link rel="alternate" type="text/html" href="http://freebsdwiki.net/index.php?title=Invalid_shell&amp;diff=4718&amp;oldid=prev"/>
				<updated>2004-12-24T07:18:11Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 07:18, 24 December 2004&lt;/td&gt;
		&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;A shell that won't let you login, either intentionally or not. [[/sbin/nologin]] is one, [[/bin/false]] is another.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;A shell that won't let you login, either intentionally or not. [[ /sbin/nologin]] is one, [[ /bin/false]] is another.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category: Shells]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category: Shells]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key bsdwiki:diff:version:1.11a:oldid:815:newid:4718 --&gt;
&lt;/table&gt;</summary>
		<author><name>Dave</name></author>	</entry>

	<entry>
		<id>http://freebsdwiki.net/index.php?title=Invalid_shell&amp;diff=815&amp;oldid=prev</id>
		<title>Dave at 06:01, 3 October 2004</title>
		<link rel="alternate" type="text/html" href="http://freebsdwiki.net/index.php?title=Invalid_shell&amp;diff=815&amp;oldid=prev"/>
				<updated>2004-10-03T06:01:20Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;A shell that won't let you login, either intentionally or not. [[/sbin/nologin]] is one, [[/bin/false]] is another.&lt;br /&gt;
&lt;br /&gt;
[[Category: Shells]]&lt;/div&gt;</summary>
		<author><name>Dave</name></author>	</entry>

	</feed>