<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: rbash &#8211; A Restricted Bash Shell Explained with Practical Examples	</title>
	<atom:link href="https://www.tecmint.com/rbash-restricted-bash-shell/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.tecmint.com/rbash-restricted-bash-shell/</link>
	<description>Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks.</description>
	<lastBuildDate>Fri, 25 Oct 2024 07:17:07 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: Andy		</title>
		<link>https://www.tecmint.com/rbash-restricted-bash-shell/comment-page-1/#comment-1772778</link>

		<dc:creator><![CDATA[Andy]]></dc:creator>
		<pubDate>Fri, 22 Apr 2022 13:50:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=5405#comment-1772778</guid>

					<description><![CDATA[You can run anything from a restricted bash shell, providing it&#039;s in your path.

So to run, say, a python program, just put it in your path.

Running something, not in the path with an explicit path, eg, &lt;strong&gt;/bin/ls&lt;/strong&gt; will fail:
&lt;pre&gt;
rbash: /bin/ls: restricted: cannot specify `/&#039; in command names
&lt;/pre&gt;
So the trick in having your restricted shell do what you want is to set the correct PATH, eg, &lt;strong&gt;PATH=/usr/rbash/bin&lt;/strong&gt; in &lt;strong&gt;.bashrc&lt;/strong&gt;.  Remember the startup scripts do not run in restricted mode.]]></description>
			<content:encoded><![CDATA[<p>You can run anything from a restricted bash shell, providing it&#8217;s in your path.</p>
<p>So to run, say, a python program, just put it in your path.</p>
<p>Running something, not in the path with an explicit path, eg, <strong>/bin/ls</strong> will fail:</p>
<pre>
rbash: /bin/ls: restricted: cannot specify `/' in command names
</pre>
<p>So the trick in having your restricted shell do what you want is to set the correct PATH, eg, <strong>PATH=/usr/rbash/bin</strong> in <strong>.bashrc</strong>.  Remember the startup scripts do not run in restricted mode.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ronan		</title>
		<link>https://www.tecmint.com/rbash-restricted-bash-shell/comment-page-1/#comment-970424</link>

		<dc:creator><![CDATA[Ronan]]></dc:creator>
		<pubDate>Fri, 16 Feb 2018 12:22:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=5405#comment-970424</guid>

					<description><![CDATA[Useful post, if I wanted to run a section of code, say a python file in restricted mode, how would I go about doing that?]]></description>
			<content:encoded><![CDATA[<p>Useful post, if I wanted to run a section of code, say a python file in restricted mode, how would I go about doing that?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: tomj		</title>
		<link>https://www.tecmint.com/rbash-restricted-bash-shell/comment-page-1/#comment-959498</link>

		<dc:creator><![CDATA[tomj]]></dc:creator>
		<pubDate>Wed, 10 Jan 2018 19:46:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=5405#comment-959498</guid>

					<description><![CDATA[I was concerned that defining a symolic link &quot;&lt;strong&gt;ln -s bash rbash&lt;/strong&gt;&quot; would cause rbash to run an unrestricted bash shell.  That was not the case on my Fedora system. &quot;&lt;strong&gt;rbash&lt;/strong&gt;&quot; obviously runs the standard bash executable, but the restrictions are enforced.  

So the bash executable must examine the command used to invoke it, and if the name is &quot;rbash&quot;, then the restrictions are applied.  Neat.]]></description>
			<content:encoded><![CDATA[<p>I was concerned that defining a symolic link &#8220;<strong>ln -s bash rbash</strong>&#8221; would cause rbash to run an unrestricted bash shell.  That was not the case on my Fedora system. &#8220;<strong>rbash</strong>&#8221; obviously runs the standard bash executable, but the restrictions are enforced.  </p>
<p>So the bash executable must examine the command used to invoke it, and if the name is &#8220;rbash&#8221;, then the restrictions are applied.  Neat.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Arun		</title>
		<link>https://www.tecmint.com/rbash-restricted-bash-shell/comment-page-1/#comment-845048</link>

		<dc:creator><![CDATA[Arun]]></dc:creator>
		<pubDate>Wed, 07 Dec 2016 09:56:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=5405#comment-845048</guid>

					<description><![CDATA[but executing commands over ssh just works , $ ssh some_host any_command]]></description>
			<content:encoded><![CDATA[<p>but executing commands over ssh just works , $ ssh some_host any_command</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ravi Saive		</title>
		<link>https://www.tecmint.com/rbash-restricted-bash-shell/comment-page-1/#comment-789611</link>

		<dc:creator><![CDATA[Ravi Saive]]></dc:creator>
		<pubDate>Wed, 08 Jun 2016 06:37:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=5405#comment-789611</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/rbash-restricted-bash-shell/comment-page-1/#comment-789454&quot;&gt;mark&lt;/a&gt;.

@Mark,

I totally agree with your comment, yes we only covered about rbash only, no any usage about rbash, but we will planning to add usage of rbash to this article..]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/rbash-restricted-bash-shell/comment-page-1/#comment-789454">mark</a>.</p>
<p>@Mark,</p>
<p>I totally agree with your comment, yes we only covered about rbash only, no any usage about rbash, but we will planning to add usage of rbash to this article..</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
