<?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: Shared SSH Sessions, Update for Jaunty (Ubuntu 9.04)</title>
	<atom:link href="http://blog.bodhizazen.net/linux/shared-ssh-sessions-update-for-jaunty-ubuntu-904/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.bodhizazen.net/linux/shared-ssh-sessions-update-for-jaunty-ubuntu-904/</link>
	<description>A LAMP in the Samsara</description>
	<lastBuildDate>Tue, 07 Sep 2010 07:48:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Controlling Shells</title>
		<link>http://blog.bodhizazen.net/linux/shared-ssh-sessions-update-for-jaunty-ubuntu-904/comment-page-1/#comment-1680</link>
		<dc:creator>Controlling Shells</dc:creator>
		<pubDate>Tue, 20 Apr 2010 22:23:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.bodhizazen.net/?p=148#comment-1680</guid>
		<description>[...] management (and defeated by updates). As chroot and rbash are mentioned maybe see rbash+apparmor (http://blog.bodhizazen.net/linux/sha...ty-ubuntu-904/, https://apparmor.wiki.kernel.org/ind...am_apparmor.so, [...]</description>
		<content:encoded><![CDATA[<p>[...] management (and defeated by updates). As chroot and rbash are mentioned maybe see rbash+apparmor (<a href="http://blog.bodhizazen.net/linux/sha...ty-ubuntu-904/" rel="nofollow">http://blog.bodhizazen.net/linux/sha&#8230;ty-ubuntu-904/</a>, <a href="https://apparmor.wiki.kernel.org/ind...am_apparmor.so" rel="nofollow">https://apparmor.wiki.kernel.org/ind&#8230;am_apparmor.so</a>, [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bodhi.zazen</title>
		<link>http://blog.bodhizazen.net/linux/shared-ssh-sessions-update-for-jaunty-ubuntu-904/comment-page-1/#comment-656</link>
		<dc:creator>bodhi.zazen</dc:creator>
		<pubDate>Thu, 30 Apr 2009 18:40:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.bodhizazen.net/?p=148#comment-656</guid>
		<description>Mike: I am not seeing this when I look at my setup. 

Screen is launched from jailbash.

In terms of your comment re: &quot;AppArmor here is silly&quot; I guess that is a matter op opinion and how you feel about security. I use this shared session to demo apparmor.

In terms of a &quot;terrible flaw in this procedure&quot;, I wonder if you are not understanding how apparmor works.

Small snippets of code, all run as root, in the screen session:

&lt;code&gt;
root@ufbt:~#echo $SHELL
/bin/bash
root@ufbt:~#id
uid=0(root) gid=0(root) groups=0(root)
root@ufbt:~#cp ~guru/.bashrc ~.gugu.bashrc.bak
root@ufbt:~#rm ~guru/.bashrc.bak
rm: cannot remove `/home/guru/.bashrc.bak&#039;: No such file or directory
root@ufbt:~#rm -rf ~guru/.bashrc
rm: cannot remove `/home/guru/.bashrc&#039;: Permission denied
root@ufbt:~#echo &quot;test&quot; &gt;&gt; ~guru/.bashrc
-bash: /home/guru/.bashrc: Permission denied&lt;/code&gt;

As you can see, apparmor is working perfectly and as expected, in screen, even when switching to root and starting a new bash shell.

I use this as I allow members of the Ubuntu Forums Beginners Team to use the screen session for teaching. guest access is available to anyone and everyone.

Your choices may vary, and that is fine, but I hope this little demo has alleviated your concerns.

If you would like to try to crack the system you are free to try it out.</description>
		<content:encoded><![CDATA[<p>Mike: I am not seeing this when I look at my setup. </p>
<p>Screen is launched from jailbash.</p>
<p>In terms of your comment re: &#8220;AppArmor here is silly&#8221; I guess that is a matter op opinion and how you feel about security. I use this shared session to demo apparmor.</p>
<p>In terms of a &#8220;terrible flaw in this procedure&#8221;, I wonder if you are not understanding how apparmor works.</p>
<p>Small snippets of code, all run as root, in the screen session:</p>
<p><code><br />
root@ufbt:~#echo $SHELL<br />
/bin/bash<br />
root@ufbt:~#id<br />
uid=0(root) gid=0(root) groups=0(root)<br />
root@ufbt:~#cp ~guru/.bashrc ~.gugu.bashrc.bak<br />
root@ufbt:~#rm ~guru/.bashrc.bak<br />
rm: cannot remove `/home/guru/.bashrc.bak': No such file or directory<br />
root@ufbt:~#rm -rf ~guru/.bashrc<br />
rm: cannot remove `/home/guru/.bashrc': Permission denied<br />
root@ufbt:~#echo "test" &gt;&gt; ~guru/.bashrc<br />
-bash: /home/guru/.bashrc: Permission denied</code></p>
<p>As you can see, apparmor is working perfectly and as expected, in screen, even when switching to root and starting a new bash shell.</p>
<p>I use this as I allow members of the Ubuntu Forums Beginners Team to use the screen session for teaching. guest access is available to anyone and everyone.</p>
<p>Your choices may vary, and that is fine, but I hope this little demo has alleviated your concerns.</p>
<p>If you would like to try to crack the system you are free to try it out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://blog.bodhizazen.net/linux/shared-ssh-sessions-update-for-jaunty-ubuntu-904/comment-page-1/#comment-654</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Thu, 30 Apr 2009 16:57:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.bodhizazen.net/?p=148#comment-654</guid>
		<description>There is terrible flaw in this procedure, at least for Ubuntu 9.04. Let me explain.

When a client logins via ssh the execution sequence is as follows:
1. sshd invokes shell with arguments &quot;sh -c /usr/local/bin/jailbash&quot;
2. sh now reads users configuration files (flaw is here)
3. jailbash should be run - this is after the config files are fully executed

Now, just take a look what we did in step 2 - invoke screen - this stops our sequence, so number 3 is not executed in proper place. Conclusion - screen is not run from jailbash but from usuall shell. This can be seen on server with &#039;ps A f&#039; - parent of screen is sh not jailbash. This could be overcome with SHLEVEL but I don&#039;t like that idea.

Either way, using AppArmor here is silly, since the sh shell has to be executed I propose to invoke a script which in turn uses &#039;exec&#039; command with screen so there is no shell to return to.

Salut my linux friends!</description>
		<content:encoded><![CDATA[<p>There is terrible flaw in this procedure, at least for Ubuntu 9.04. Let me explain.</p>
<p>When a client logins via ssh the execution sequence is as follows:<br />
1. sshd invokes shell with arguments &#8220;sh -c /usr/local/bin/jailbash&#8221;<br />
2. sh now reads users configuration files (flaw is here)<br />
3. jailbash should be run &#8211; this is after the config files are fully executed</p>
<p>Now, just take a look what we did in step 2 &#8211; invoke screen &#8211; this stops our sequence, so number 3 is not executed in proper place. Conclusion &#8211; screen is not run from jailbash but from usuall shell. This can be seen on server with &#8216;ps A f&#8217; &#8211; parent of screen is sh not jailbash. This could be overcome with SHLEVEL but I don&#8217;t like that idea.</p>
<p>Either way, using AppArmor here is silly, since the sh shell has to be executed I propose to invoke a script which in turn uses &#8216;exec&#8217; command with screen so there is no shell to return to.</p>
<p>Salut my linux friends!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: acilmkab</title>
		<link>http://blog.bodhizazen.net/linux/shared-ssh-sessions-update-for-jaunty-ubuntu-904/comment-page-1/#comment-582</link>
		<dc:creator>acilmkab</dc:creator>
		<pubDate>Fri, 10 Apr 2009 20:02:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.bodhizazen.net/?p=148#comment-582</guid>
		<description>formidable site this blog.bodhizazen.net formidable to see you have what I am actually looking for here and this this post is exactly what I am interested in. I shall be pleased to become a regular visitor :)</description>
		<content:encoded><![CDATA[<p>formidable site this blog.bodhizazen.net formidable to see you have what I am actually looking for here and this this post is exactly what I am interested in. I shall be pleased to become a regular visitor :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fewamidwaydek</title>
		<link>http://blog.bodhizazen.net/linux/shared-ssh-sessions-update-for-jaunty-ubuntu-904/comment-page-1/#comment-543</link>
		<dc:creator>Fewamidwaydek</dc:creator>
		<pubDate>Sat, 04 Apr 2009 02:57:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.bodhizazen.net/?p=148#comment-543</guid>
		<description>Great site this blog.bodhizazen.net and I am really pleased to see you have what I am actually looking for here and this this post is exactly what I am interested in. I shall be pleased to become a regular visitor :)</description>
		<content:encoded><![CDATA[<p>Great site this blog.bodhizazen.net and I am really pleased to see you have what I am actually looking for here and this this post is exactly what I am interested in. I shall be pleased to become a regular visitor :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shadows of epiphany &#187; Blog Archive &#187; Shared Terminal Sessions over SSH</title>
		<link>http://blog.bodhizazen.net/linux/shared-ssh-sessions-update-for-jaunty-ubuntu-904/comment-page-1/#comment-513</link>
		<dc:creator>Shadows of epiphany &#187; Blog Archive &#187; Shared Terminal Sessions over SSH</dc:creator>
		<pubDate>Sat, 28 Mar 2009 06:26:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.bodhizazen.net/?p=148#comment-513</guid>
		<description>[...] Note: Due to changes in screen, this tutorial is outdated for Ubuntu 9.04 , Jaunty. I posted an updated tutorial here. [...]</description>
		<content:encoded><![CDATA[<p>[...] Note: Due to changes in screen, this tutorial is outdated for Ubuntu 9.04 , Jaunty. I posted an updated tutorial here. [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.064 seconds -->
