<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://briansnelson.com/index.php?action=history&amp;feed=atom&amp;title=Use_Bash_on_a_Non_Bash_User</id>
		<title>Use Bash on a Non Bash User - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://briansnelson.com/index.php?action=history&amp;feed=atom&amp;title=Use_Bash_on_a_Non_Bash_User"/>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=Use_Bash_on_a_Non_Bash_User&amp;action=history"/>
		<updated>2026-06-04T08:00:00Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.24.1</generator>

	<entry>
		<id>https://briansnelson.com/index.php?title=Use_Bash_on_a_Non_Bash_User&amp;diff=559&amp;oldid=prev</id>
		<title>Brian: /* List of available shells on your machine */</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=Use_Bash_on_a_Non_Bash_User&amp;diff=559&amp;oldid=prev"/>
				<updated>2014-03-14T14:44:34Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;List of available shells on your machine&lt;/span&gt;&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 style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 14:44, 14 March 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 50:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 50:&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-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; /bin/zsh&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; /bin/zsh&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-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; /usr/bin/zsh&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; /usr/bin/zsh&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;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;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;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Centos]] [[Category:Bash]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key briansne_wiki-wiki_:diff:version:1.11a:oldid:112:newid:559 --&gt;
&lt;/table&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	<entry>
		<id>https://briansnelson.com/index.php?title=Use_Bash_on_a_Non_Bash_User&amp;diff=112&amp;oldid=prev</id>
		<title>Brian: Created page with &quot;==Using Bash on an Account without Bash==  Have you ever tried to use bash on an account that does not have bash setup on it, example apache.  When trying to SuperUser into ap...&quot;</title>
		<link rel="alternate" type="text/html" href="https://briansnelson.com/index.php?title=Use_Bash_on_a_Non_Bash_User&amp;diff=112&amp;oldid=prev"/>
				<updated>2013-10-12T06:48:36Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;==Using Bash on an Account without Bash==  Have you ever tried to use bash on an account that does not have bash setup on it, example apache.  When trying to SuperUser into ap...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Using Bash on an Account without Bash==&lt;br /&gt;
&lt;br /&gt;
Have you ever tried to use bash on an account that does not have bash setup on it, example apache.&lt;br /&gt;
&lt;br /&gt;
When trying to SuperUser into apache, you will get the error &amp;quot;This account is Currently no Available&amp;quot; &lt;br /&gt;
&lt;br /&gt;
Now you can always just change that user and give them /bin/bash&lt;br /&gt;
&lt;br /&gt;
 chsh -s /bin/bash apache&lt;br /&gt;
&lt;br /&gt;
But that is not really what you want to do, unless that account needs bash access.&lt;br /&gt;
&lt;br /&gt;
To use that account with bash without changing the account you can also su into the user.&lt;br /&gt;
&lt;br /&gt;
 su {useraccount} -s /bin/bash&lt;br /&gt;
&lt;br /&gt;
You will become that user even though they do not have bash access.&lt;br /&gt;
&lt;br /&gt;
===How to check the shell on Users===&lt;br /&gt;
&lt;br /&gt;
You will want to check out the /etc/passwd file.&lt;br /&gt;
&lt;br /&gt;
You would be looking for users with /bin/false or /bin/nologin or /usr/sbin/nologin&lt;br /&gt;
&lt;br /&gt;
 userdude:x:111:113::/home/userdude:/bin/false&lt;br /&gt;
&lt;br /&gt;
 userdude:x:111:113::/home/userdude:/bin/nologin&lt;br /&gt;
&lt;br /&gt;
 userdude:x:111:113::/home/userdude:/usr/sbin/nologin&lt;br /&gt;
&lt;br /&gt;
===List of available shells on your machine===&lt;br /&gt;
&lt;br /&gt;
To see a list of the available shells on your machine, you can take a look at the /etc/shells file&lt;br /&gt;
&lt;br /&gt;
 $ cat /etc/shells&lt;br /&gt;
 # /etc/shells: valid login shells&lt;br /&gt;
 /bin/csh&lt;br /&gt;
 /bin/sh&lt;br /&gt;
 /usr/bin/es&lt;br /&gt;
 /usr/bin/ksh&lt;br /&gt;
 /bin/ksh&lt;br /&gt;
 /usr/bin/rc&lt;br /&gt;
 /usr/bin/tcsh&lt;br /&gt;
 /bin/tcsh&lt;br /&gt;
 /usr/bin/esh&lt;br /&gt;
 /bin/dash&lt;br /&gt;
 /bin/bash&lt;br /&gt;
 /bin/rbash&lt;br /&gt;
 /usr/bin/screen&lt;br /&gt;
 /bin/zsh&lt;br /&gt;
 /usr/bin/zsh&lt;/div&gt;</summary>
		<author><name>Brian</name></author>	</entry>

	</feed>