<?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=Talk%3AShell</id>
		<title>Talk:Shell - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://freebsdwiki.net/index.php?action=history&amp;feed=atom&amp;title=Talk%3AShell"/>
		<link rel="alternate" type="text/html" href="http://freebsdwiki.net/index.php?title=Talk:Shell&amp;action=history"/>
		<updated>2026-04-06T03:54:44Z</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=Talk:Shell&amp;diff=6594&amp;oldid=prev</id>
		<title>Ninereasons: /* What is a login shell? */  edit</title>
		<link rel="alternate" type="text/html" href="http://freebsdwiki.net/index.php?title=Talk:Shell&amp;diff=6594&amp;oldid=prev"/>
				<updated>2006-06-09T19:24:47Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;What is a login shell?: &lt;/span&gt;  edit&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:24, 9 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;==What is a login shell?==&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;==What is a login shell?==&lt;/div&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;I was a Slackware user for some time, before finding FreeBSD.&amp;#160; &amp;lt;s&amp;gt;One of the things that surprised me was that FreeBSD seems to be fuzzier about what a login shell is.&amp;lt;/s&amp;gt;&amp;#160; Slackware, and I suppose any linux, has a shell database (&amp;lt;code&amp;gt;/etc/shells&amp;lt;/code&amp;gt;).&amp;#160; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;s&amp;gt;&lt;/del&gt;If you attempt to &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;assign a shell to a &lt;/del&gt;user, to provide &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;their &lt;/del&gt;login shell, it must exist in the shell database.&amp;#160; As far as I can tell, there is no such restriction in FreeBSD even though it also has a shell database.&amp;lt;/s&amp;gt;&amp;#160; In fact, (as &amp;lt;code&amp;gt;root&amp;lt;/code&amp;gt;) any program at all can be substituted for a shell in the Shell field of the user's login profile (&amp;lt;code&amp;gt;/etc/passwd&amp;lt;/code&amp;gt;), as long as it exists in the global PATH (only root can specify non-standard shells - such as &amp;lt;code&amp;gt;/usr/sbin/nologin&amp;lt;/code&amp;gt;).&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;I was a Slackware user for some time, before finding FreeBSD.&amp;#160; &amp;lt;s&amp;gt;One of the things that surprised me was that FreeBSD seems to be fuzzier about what a login shell is.&amp;lt;/s&amp;gt;&amp;#160; Slackware, and I suppose any linux, has a shell database (&amp;lt;code&amp;gt;/etc/shells&amp;lt;/code&amp;gt;).&amp;#160; If you attempt to &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;change shells as an ordinary &lt;/ins&gt;user, to provide &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;a different &lt;/ins&gt;login shell, it must exist in the shell database.&amp;#160; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;s&amp;gt;&lt;/ins&gt;As far as I can tell, there is no such restriction in FreeBSD even though it also has a shell database.&amp;lt;/s&amp;gt;&amp;#160; In fact, (as &amp;lt;code&amp;gt;root&amp;lt;/code&amp;gt;) any program at all can be substituted for a shell in the Shell field of the user's login profile (&amp;lt;code&amp;gt;/etc/passwd&amp;lt;/code&amp;gt;), as long as it exists in the global PATH (only root can specify non-standard shells - such as &amp;lt;code&amp;gt;/usr/sbin/nologin&amp;lt;/code&amp;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;&amp;#160; %grep python /etc/passwd&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; %grep python /etc/passwd&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key bsdwiki:diff:version:1.11a:oldid:6593:newid:6594 --&gt;
&lt;/table&gt;</summary>
		<author><name>Ninereasons</name></author>	</entry>

	<entry>
		<id>http://freebsdwiki.net/index.php?title=Talk:Shell&amp;diff=6593&amp;oldid=prev</id>
		<title>Ninereasons: strikeout</title>
		<link rel="alternate" type="text/html" href="http://freebsdwiki.net/index.php?title=Talk:Shell&amp;diff=6593&amp;oldid=prev"/>
				<updated>2006-06-09T19:23:35Z</updated>
		
		<summary type="html">&lt;p&gt;strikeout&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:23, 9 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;==What is a login shell?==&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;==What is a login shell?==&lt;/div&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;I was a Slackware user for some time, before finding FreeBSD.&amp;#160; One of the things that surprised me was that &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;s&amp;gt;&lt;/del&gt;FreeBSD seems to be fuzzier about what a login shell is.&amp;lt;/s&amp;gt;&amp;#160; Slackware, and I suppose any linux, has a shell database (&amp;lt;code&amp;gt;/etc/shells&amp;lt;/code&amp;gt;).&amp;#160; &amp;lt;s&amp;gt;If you attempt to assign a shell to a user, to provide their login shell, it must exist in the shell database.&amp;#160; As far as I can tell, there is no such restriction in FreeBSD even though it also has a shell database.&amp;lt;/s&amp;gt;&amp;#160; In fact, (as &amp;lt;code&amp;gt;root&amp;lt;/code&amp;gt;) any program at all can be substituted for a shell in the Shell field of the user's login profile (&amp;lt;code&amp;gt;/etc/passwd&amp;lt;/code&amp;gt;), as long as it exists in the global PATH (only root can specify non-standard shells - such as &amp;lt;code&amp;gt;/usr/sbin/nologin&amp;lt;/code&amp;gt;).&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;I was a Slackware user for some time, before finding FreeBSD.&amp;#160; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;s&amp;gt;&lt;/ins&gt;One of the things that surprised me was that FreeBSD seems to be fuzzier about what a login shell is.&amp;lt;/s&amp;gt;&amp;#160; Slackware, and I suppose any linux, has a shell database (&amp;lt;code&amp;gt;/etc/shells&amp;lt;/code&amp;gt;).&amp;#160; &amp;lt;s&amp;gt;If you attempt to assign a shell to a user, to provide their login shell, it must exist in the shell database.&amp;#160; As far as I can tell, there is no such restriction in FreeBSD even though it also has a shell database.&amp;lt;/s&amp;gt;&amp;#160; In fact, (as &amp;lt;code&amp;gt;root&amp;lt;/code&amp;gt;) any program at all can be substituted for a shell in the Shell field of the user's login profile (&amp;lt;code&amp;gt;/etc/passwd&amp;lt;/code&amp;gt;), as long as it exists in the global PATH (only root can specify non-standard shells - such as &amp;lt;code&amp;gt;/usr/sbin/nologin&amp;lt;/code&amp;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;&amp;#160; %grep python /etc/passwd&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; %grep python /etc/passwd&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key bsdwiki:diff:version:1.11a:oldid:6591:newid:6593 --&gt;
&lt;/table&gt;</summary>
		<author><name>Ninereasons</name></author>	</entry>

	<entry>
		<id>http://freebsdwiki.net/index.php?title=Talk:Shell&amp;diff=6591&amp;oldid=prev</id>
		<title>Ninereasons: /* What is a login shell? */</title>
		<link rel="alternate" type="text/html" href="http://freebsdwiki.net/index.php?title=Talk:Shell&amp;diff=6591&amp;oldid=prev"/>
				<updated>2006-06-09T06:53:08Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;What is a login shell?&lt;/span&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 06:53, 9 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;==What is a login shell?==&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;==What is a login shell?==&lt;/div&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;I was a Slackware user for some time, before finding FreeBSD.&amp;#160; One of the things that surprised me was that FreeBSD seems to be fuzzier about what a login shell is.&amp;#160; Slackware, and I suppose any linux, has a shell database (&amp;lt;code&amp;gt;/etc/shells&amp;lt;/code&amp;gt;).&amp;#160; If you attempt to assign a shell to a user, to provide their login shell, it must exist in the shell database.&amp;#160; As far as I can tell, there is no such restriction in FreeBSD even though it also has a shell database.&amp;#160; In fact, (as &amp;lt;code&amp;gt;root&amp;lt;/code&amp;gt;) any program at all can be substituted for a shell in the Shell field of the user's login profile (&amp;lt;code&amp;gt;/etc/passwd&amp;lt;/code&amp;gt;), as long as it exists in the global PATH (only root can specify non-standard shells - such as &amp;lt;code&amp;gt;/usr/sbin/nologin&amp;lt;/code&amp;gt;).&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;I was a Slackware user for some time, before finding FreeBSD.&amp;#160; One of the things that surprised me was that &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;s&amp;gt;&lt;/ins&gt;FreeBSD seems to be fuzzier about what a login shell is.&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;/s&amp;gt; &lt;/ins&gt; Slackware, and I suppose any linux, has a shell database (&amp;lt;code&amp;gt;/etc/shells&amp;lt;/code&amp;gt;).&amp;#160; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;s&amp;gt;&lt;/ins&gt;If you attempt to assign a shell to a user, to provide their login shell, it must exist in the shell database.&amp;#160; As far as I can tell, there is no such restriction in FreeBSD even though it also has a shell database.&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;/s&amp;gt; &lt;/ins&gt; In fact, (as &amp;lt;code&amp;gt;root&amp;lt;/code&amp;gt;) any program at all can be substituted for a shell in the Shell field of the user's login profile (&amp;lt;code&amp;gt;/etc/passwd&amp;lt;/code&amp;gt;), as long as it exists in the global PATH (only root can specify non-standard shells - such as &amp;lt;code&amp;gt;/usr/sbin/nologin&amp;lt;/code&amp;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;&amp;#160; %grep python /etc/passwd&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; %grep python /etc/passwd&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key bsdwiki:diff:version:1.11a:oldid:6590:newid:6591 --&gt;
&lt;/table&gt;</summary>
		<author><name>Ninereasons</name></author>	</entry>

	<entry>
		<id>http://freebsdwiki.net/index.php?title=Talk:Shell&amp;diff=6590&amp;oldid=prev</id>
		<title>Ninereasons: /* What is a login shell? */</title>
		<link rel="alternate" type="text/html" href="http://freebsdwiki.net/index.php?title=Talk:Shell&amp;diff=6590&amp;oldid=prev"/>
				<updated>2006-06-09T06:48:27Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;What is a login shell?&lt;/span&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 06:48, 9 June 2006&lt;/td&gt;
		&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 43:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 43:&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;Useless, but interesting, eh?&amp;#160; Here, the user's login shell is &amp;lt;code&amp;gt;/usr/local/bin/python&amp;lt;/code&amp;gt;.&amp;#160; Needless to say, that file is not listed in &amp;lt;code&amp;gt;/etc/shells&amp;lt;/code&amp;gt;. When does FreeBSD use the shell database, if logged in as root?&amp;#160; Maybe Linux works the same, but I just never noticed? &amp;amp;mdash; [[User:Ninereasons|Ninereasons]] 13:07, 7 June 2006 (EDT)&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;Useless, but interesting, eh?&amp;#160; Here, the user's login shell is &amp;lt;code&amp;gt;/usr/local/bin/python&amp;lt;/code&amp;gt;.&amp;#160; Needless to say, that file is not listed in &amp;lt;code&amp;gt;/etc/shells&amp;lt;/code&amp;gt;. When does FreeBSD use the shell database, if logged in as root?&amp;#160; Maybe Linux works the same, but I just never noticed? &amp;amp;mdash; [[User:Ninereasons|Ninereasons]] 13:07, 7 June 2006 (EDT)&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 style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&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 style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;: It's true.&amp;#160; I never noticed.&amp;#160; Linux works just like this also.&amp;#160; So, lftp, or cpan or the like, could be my login shell.&amp;#160; Weird.&amp;#160; [[User:Ninereasons|Ninereasons]] 02:48, 9 June 2006 (EDT)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key bsdwiki:diff:version:1.11a:oldid:6584:newid:6590 --&gt;
&lt;/table&gt;</summary>
		<author><name>Ninereasons</name></author>	</entry>

	<entry>
		<id>http://freebsdwiki.net/index.php?title=Talk:Shell&amp;diff=6584&amp;oldid=prev</id>
		<title>Ninereasons: /* What is a login shell? */</title>
		<link rel="alternate" type="text/html" href="http://freebsdwiki.net/index.php?title=Talk:Shell&amp;diff=6584&amp;oldid=prev"/>
				<updated>2006-06-07T22:08:55Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;What is a login shell?&lt;/span&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 22:08, 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 42:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 42:&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;lt;/pre&amp;gt;&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;lt;/pre&amp;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;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Useless, but interesting, eh?&amp;#160; Here, the user's login shell is &amp;lt;code&amp;gt;/usr/local/bin/python&amp;lt;/code&amp;gt;.&amp;#160; Needless to say, that file is not listed in &amp;lt;code&amp;gt;/etc/shells&amp;lt;/code&amp;gt;. When does FreeBSD use the shell database, if logged in as root?&amp;#160; &amp;amp;mdash; [[User:Ninereasons|Ninereasons]] 13:07, 7 June 2006 (EDT)&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;Useless, but interesting, eh?&amp;#160; Here, the user's login shell is &amp;lt;code&amp;gt;/usr/local/bin/python&amp;lt;/code&amp;gt;.&amp;#160; Needless to say, that file is not listed in &amp;lt;code&amp;gt;/etc/shells&amp;lt;/code&amp;gt;. When does FreeBSD use the shell database, if logged in as root?&amp;#160; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Maybe Linux works the same, but I just never noticed? &lt;/ins&gt;&amp;amp;mdash; [[User:Ninereasons|Ninereasons]] 13:07, 7 June 2006 (EDT)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key bsdwiki:diff:version:1.11a:oldid:6583:newid:6584 --&gt;
&lt;/table&gt;</summary>
		<author><name>Ninereasons</name></author>	</entry>

	<entry>
		<id>http://freebsdwiki.net/index.php?title=Talk:Shell&amp;diff=6583&amp;oldid=prev</id>
		<title>Ninereasons at 22:03, 7 June 2006</title>
		<link rel="alternate" type="text/html" href="http://freebsdwiki.net/index.php?title=Talk:Shell&amp;diff=6583&amp;oldid=prev"/>
				<updated>2006-06-07T22:03:55Z</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 22:03, 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;==What is a login shell?==&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;==What is a login shell?==&lt;/div&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;I was a Slackware user for some time, before finding FreeBSD.&amp;#160; One of the things that surprised me was that FreeBSD seems to be &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;very fuzzy &lt;/del&gt;about what a login shell is.&amp;#160; Slackware, and I suppose any linux, has a shell database (&amp;lt;code&amp;gt;/etc/shells&amp;lt;/code&amp;gt;).&amp;#160; If you attempt to assign a shell to a user, to provide their login shell, it must exist in the shell database.&amp;#160; As far as I can tell, there is no such restriction in FreeBSD even though it also has a shell database.&amp;#160; In fact, (as &amp;lt;code&amp;gt;root&amp;lt;/code&amp;gt;) any program at all can be substituted for a shell in the Shell field of the user's login profile (&amp;lt;code&amp;gt;/etc/passwd&amp;lt;/code&amp;gt;), as long as it exists in the global PATH (only root can specify non-standard shells - such as &amp;lt;code&amp;gt;/usr/sbin/nologin&amp;lt;/code&amp;gt;).&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;I was a Slackware user for some time, before finding FreeBSD.&amp;#160; One of the things that surprised me was that FreeBSD seems to be &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;fuzzier &lt;/ins&gt;about what a login shell is.&amp;#160; Slackware, and I suppose any linux, has a shell database (&amp;lt;code&amp;gt;/etc/shells&amp;lt;/code&amp;gt;).&amp;#160; If you attempt to assign a shell to a user, to provide their login shell, it must exist in the shell database.&amp;#160; As far as I can tell, there is no such restriction in FreeBSD even though it also has a shell database.&amp;#160; In fact, (as &amp;lt;code&amp;gt;root&amp;lt;/code&amp;gt;) any program at all can be substituted for a shell in the Shell field of the user's login profile (&amp;lt;code&amp;gt;/etc/passwd&amp;lt;/code&amp;gt;), as long as it exists in the global PATH (only root can specify non-standard shells - such as &amp;lt;code&amp;gt;/usr/sbin/nologin&amp;lt;/code&amp;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;&amp;#160; %grep python /etc/passwd&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; %grep python /etc/passwd&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key bsdwiki:diff:version:1.11a:oldid:6577:newid:6583 --&gt;
&lt;/table&gt;</summary>
		<author><name>Ninereasons</name></author>	</entry>

	<entry>
		<id>http://freebsdwiki.net/index.php?title=Talk:Shell&amp;diff=6577&amp;oldid=prev</id>
		<title>Ninereasons: only root</title>
		<link rel="alternate" type="text/html" href="http://freebsdwiki.net/index.php?title=Talk:Shell&amp;diff=6577&amp;oldid=prev"/>
				<updated>2006-06-07T18:22:02Z</updated>
		
		<summary type="html">&lt;p&gt;only root&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 18:22, 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;==What is a login shell?==&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;==What is a login shell?==&lt;/div&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;I was a Slackware user for some time, before finding FreeBSD.&amp;#160; One of the things that surprised me was that FreeBSD seems to be very fuzzy about what a login shell is.&amp;#160; Slackware, and I suppose any linux, has a shell database (&amp;lt;code&amp;gt;/etc/shells&amp;lt;/code&amp;gt;).&amp;#160; If you attempt to assign a shell to a user, to provide their login shell, it must exist in the shell database.&amp;#160; As far as I can tell, there is no such restriction in FreeBSD even though it also has a shell database.&amp;#160; In fact, any program at all can be substituted for a shell in the Shell field of the user's login profile (&amp;lt;code&amp;gt;/etc/passwd&amp;lt;/code&amp;gt;), as long as it exists in the global PATH.&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;I was a Slackware user for some time, before finding FreeBSD.&amp;#160; One of the things that surprised me was that FreeBSD seems to be very fuzzy about what a login shell is.&amp;#160; Slackware, and I suppose any linux, has a shell database (&amp;lt;code&amp;gt;/etc/shells&amp;lt;/code&amp;gt;).&amp;#160; If you attempt to assign a shell to a user, to provide their login shell, it must exist in the shell database.&amp;#160; As far as I can tell, there is no such restriction in FreeBSD even though it also has a shell database.&amp;#160; In fact, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;(as &amp;lt;code&amp;gt;root&amp;lt;/code&amp;gt;) &lt;/ins&gt;any program at all can be substituted for a shell in the Shell field of the user's login profile (&amp;lt;code&amp;gt;/etc/passwd&amp;lt;/code&amp;gt;), as long as it exists in the global PATH &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;(only root can specify non-standard shells - such as &amp;lt;code&amp;gt;/usr/sbin/nologin&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;&amp;#160; %grep python /etc/passwd&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; %grep python /etc/passwd&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 42:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 42:&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;lt;/pre&amp;gt;&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;lt;/pre&amp;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;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Useless, but interesting, eh?&amp;#160; Here, the user's login shell is &amp;lt;code&amp;gt;/usr/local/bin/python&amp;lt;/code&amp;gt;.&amp;#160; Needless to say, that file is not listed in &amp;lt;code&amp;gt;/etc/shells&amp;lt;/code&amp;gt;. When does FreeBSD use the shell database?&amp;#160; &amp;amp;mdash; [[User:Ninereasons|Ninereasons]] 13:07, 7 June 2006 (EDT)&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;Useless, but interesting, eh?&amp;#160; Here, the user's login shell is &amp;lt;code&amp;gt;/usr/local/bin/python&amp;lt;/code&amp;gt;.&amp;#160; Needless to say, that file is not listed in &amp;lt;code&amp;gt;/etc/shells&amp;lt;/code&amp;gt;. When does FreeBSD use the shell database&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;, if logged in as root&lt;/ins&gt;?&amp;#160; &amp;amp;mdash; [[User:Ninereasons|Ninereasons]] 13:07, 7 June 2006 (EDT)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key bsdwiki:diff:version:1.11a:oldid:6575:newid:6577 --&gt;
&lt;/table&gt;</summary>
		<author><name>Ninereasons</name></author>	</entry>

	<entry>
		<id>http://freebsdwiki.net/index.php?title=Talk:Shell&amp;diff=6575&amp;oldid=prev</id>
		<title>Ninereasons: /* What is a login shell? */</title>
		<link rel="alternate" type="text/html" href="http://freebsdwiki.net/index.php?title=Talk:Shell&amp;diff=6575&amp;oldid=prev"/>
				<updated>2006-06-07T17:07:18Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;What is a login shell?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==What is a login shell?==&lt;br /&gt;
I was a Slackware user for some time, before finding FreeBSD.  One of the things that surprised me was that FreeBSD seems to be very fuzzy about what a login shell is.  Slackware, and I suppose any linux, has a shell database (&amp;lt;code&amp;gt;/etc/shells&amp;lt;/code&amp;gt;).  If you attempt to assign a shell to a user, to provide their login shell, it must exist in the shell database.  As far as I can tell, there is no such restriction in FreeBSD even though it also has a shell database.  In fact, any program at all can be substituted for a shell in the Shell field of the user's login profile (&amp;lt;code&amp;gt;/etc/passwd&amp;lt;/code&amp;gt;), as long as it exists in the global PATH.&lt;br /&gt;
&lt;br /&gt;
 %grep python /etc/passwd&lt;br /&gt;
 pylogin:*:2011:2011:Login to python:/home/pylogin:/usr/local/bin/python&lt;br /&gt;
&lt;br /&gt;
I don't know what might be the full implications; but it is somewhat surprising that it's possible to have a ssh session that looks like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Using username &amp;quot;pylogin&amp;quot;.&lt;br /&gt;
Using keyboard-interactive authentication.&lt;br /&gt;
Password:&lt;br /&gt;
Last login: Wed Jun  7 09:37:40 2006 from kanga&lt;br /&gt;
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994&lt;br /&gt;
        The Regents of the University of California.  All rights reserved.&lt;br /&gt;
&lt;br /&gt;
FreeBSD 6.1-STABLE (GENERIC) #10: Mon Jun  5 09:57:27 PDT 2006&lt;br /&gt;
&lt;br /&gt;
Welcome to FreeBSD AMD64!&lt;br /&gt;
&lt;br /&gt;
Python 2.4.3 (#2, Apr  6 2006, 15:45:31)&lt;br /&gt;
[GCC 3.4.4 [FreeBSD] 20050518] on freebsd6&lt;br /&gt;
Type &amp;quot;help&amp;quot;, &amp;quot;copyright&amp;quot;, &amp;quot;credits&amp;quot; or &amp;quot;license&amp;quot; for more information.&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; import os&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; keys = os.environ.keys()&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; for val in keys:&lt;br /&gt;
...     print val,&amp;quot;: &amp;quot;,os.environ[val]&lt;br /&gt;
...&lt;br /&gt;
TERM :  xterm&lt;br /&gt;
SHELL :  /usr/local/bin/python&lt;br /&gt;
MAIL :  /var/mail/pylogin&lt;br /&gt;
BLOCKSIZE :  K&lt;br /&gt;
FTP_PASSIVE_MODE :  YES&lt;br /&gt;
SSH_TTY :  /dev/ttyp5&lt;br /&gt;
SSH_CLIENT :  192.168.1.3 3173 22&lt;br /&gt;
LOGNAME :  pylogin&lt;br /&gt;
USER :  pylogin&lt;br /&gt;
HOME :  /home/pylogin&lt;br /&gt;
PATH :  /sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/home/pylogin/bin&lt;br /&gt;
SSH_CONNECTION :  192.168.1.3 3173 192.168.1.5 22&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; ^d&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Useless, but interesting, eh?  Here, the user's login shell is &amp;lt;code&amp;gt;/usr/local/bin/python&amp;lt;/code&amp;gt;.  Needless to say, that file is not listed in &amp;lt;code&amp;gt;/etc/shells&amp;lt;/code&amp;gt;. When does FreeBSD use the shell database?  &amp;amp;mdash; [[User:Ninereasons|Ninereasons]] 13:07, 7 June 2006 (EDT)&lt;/div&gt;</summary>
		<author><name>Ninereasons</name></author>	</entry>

	</feed>