<?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: I&#8217;d written up two other posts</title>
	<atom:link href="http://emphaticallystatic.org/earlier/id-written-up-two-other-posts/feed/" rel="self" type="application/rss+xml" />
	<link>http://emphaticallystatic.org/earlier/id-written-up-two-other-posts/</link>
	<description>emphatically static!</description>
	<lastBuildDate>Sun, 05 Sep 2010 04:07:36 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1-alpha</generator>
	<item>
		<title>By: pul&#124;</title>
		<link>http://emphaticallystatic.org/earlier/id-written-up-two-other-posts/#comment-7622</link>
		<dc:creator>pul&#124;</dc:creator>
		<pubDate>Sun, 27 Mar 2005 22:24:00 +0000</pubDate>
		<guid isPermaLink="false">http://actuality.wahgnube.org/earlier/id-written-up-two-other-posts/#comment-7622</guid>
		<description>Thanks for the explanation!</description>
		<content:encoded><![CDATA[<p>Thanks for the explanation!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wahgnube</title>
		<link>http://emphaticallystatic.org/earlier/id-written-up-two-other-posts/#comment-7609</link>
		<dc:creator>wahgnube</dc:creator>
		<pubDate>Sun, 27 Mar 2005 19:43:19 +0000</pubDate>
		<guid isPermaLink="false">http://actuality.wahgnube.org/earlier/id-written-up-two-other-posts/#comment-7609</guid>
		<description>So that there is no confusion, the real answer to your question is yes, I happen to know why and have elucidated how to get it working at the end of this reply. But before that, here is the deal with fstab.

Its format is:
devicename mountpoint filesystemtype mountoptions backupoptions checkoptions

Which I&#039;d set as:
/dev/sda1 /mnt/external ext3 rw,noauto,user 1 0

Since the first three columns are obvious (and the last two aren&#039;t immediately pertinent), I&#039;ll talk about the fourth column. My mountoptions include rw, noauto and user.

rw - mount filesystem in read/write mode
noauto - don&#039;t attempt to mount at boot (because I might have not plugged the drive in)
user - allows a normal user to mount the drive

This is exactly what I wanted. The option &quot;defaults&quot; on other hand implies
rw, suid, dev, exec, auto, nouser, and async
unless overriden by other options (like your defaults,user). You can read up on all these and a lot more by typing &#039;man mount&#039;.

To answer your question, though I had set it up so that anyone could mount it, the folder /mnt/external was still created by (and thus owned by root).

[me@localhost me]$ ls -l /mnt/
total 16
drwxr-xr-x  2 root root 4096 Sep  3  2004 camera
drwxr-xr-x  2 root root 4096 May 20  2004 cdrom
drwxr-xr-x  4 &lt;strong&gt;root root&lt;/strong&gt; 4096 Mar 20 15:10 external
drwxr-xr-x  2 root root 4096 May 20  2004 floppy

(Recalling of course, that just because anyone could access a mounted /, doesn&#039;t mean they can arbitrarily write anywhere on it before an appropriate permissions heirarchy is in place, /home/user being user&#039;s castle, for instance.)

I didn&#039;t mention this, but I later went on to create a folder in /mnt/external, say /mnt/external/mystuff and chowned it to me. Therefore I, as a regular user &#039;me&#039; can write into /mnt/external/mystuff but not directly into /mnt/external (which is what you&#039;re trying). This was the behaviour I was aiming for.

If this isn&#039;t what you want, you can chown /mnt/external to a specific user or groups of users. So apart from anyone being able to mount/unmount it, they can also write all over it. (Not what I want.) If in doubt, man chown is your friend.</description>
		<content:encoded><![CDATA[<p>So that there is no confusion, the real answer to your question is yes, I happen to know why and have elucidated how to get it working at the end of this reply. But before that, here is the deal with fstab.</p>
<p>Its format is:<br />
devicename mountpoint filesystemtype mountoptions backupoptions checkoptions</p>
<p>Which I&#8217;d set as:<br />
/dev/sda1 /mnt/external ext3 rw,noauto,user 1 0</p>
<p>Since the first three columns are obvious (and the last two aren&#8217;t immediately pertinent), I&#8217;ll talk about the fourth column. My mountoptions include rw, noauto and user.</p>
<p>rw &#8211; mount filesystem in read/write mode<br />
noauto &#8211; don&#8217;t attempt to mount at boot (because I might have not plugged the drive in)<br />
user &#8211; allows a normal user to mount the drive</p>
<p>This is exactly what I wanted. The option &#8220;defaults&#8221; on other hand implies<br />
rw, suid, dev, exec, auto, nouser, and async<br />
unless overriden by other options (like your defaults,user). You can read up on all these and a lot more by typing &#8216;man mount&#8217;.</p>
<p>To answer your question, though I had set it up so that anyone could mount it, the folder /mnt/external was still created by (and thus owned by root).</p>
<p>[me@localhost me]$ ls -l /mnt/<br />
total 16<br />
drwxr-xr-x  2 root root 4096 Sep  3  2004 camera<br />
drwxr-xr-x  2 root root 4096 May 20  2004 cdrom<br />
drwxr-xr-x  4 <strong>root root</strong> 4096 Mar 20 15:10 external<br />
drwxr-xr-x  2 root root 4096 May 20  2004 floppy</p>
<p>(Recalling of course, that just because anyone could access a mounted /, doesn&#8217;t mean they can arbitrarily write anywhere on it before an appropriate permissions heirarchy is in place, /home/user being user&#8217;s castle, for instance.)</p>
<p>I didn&#8217;t mention this, but I later went on to create a folder in /mnt/external, say /mnt/external/mystuff and chowned it to me. Therefore I, as a regular user &#8216;me&#8217; can write into /mnt/external/mystuff but not directly into /mnt/external (which is what you&#8217;re trying). This was the behaviour I was aiming for.</p>
<p>If this isn&#8217;t what you want, you can chown /mnt/external to a specific user or groups of users. So apart from anyone being able to mount/unmount it, they can also write all over it. (Not what I want.) If in doubt, man chown is your friend.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pul&#124;</title>
		<link>http://emphaticallystatic.org/earlier/id-written-up-two-other-posts/#comment-7569</link>
		<dc:creator>pul&#124;</dc:creator>
		<pubDate>Sun, 27 Mar 2005 02:47:27 +0000</pubDate>
		<guid isPermaLink="false">http://actuality.wahgnube.org/earlier/id-written-up-two-other-posts/#comment-7569</guid>
		<description>Nice tutorial. However, the instructions for the fstab entry in Step 11 (i.e.)

/dev/sda1               /mnt/external           ext3    rw,noauto,user 1 0

would let me mount the drive as a normal user, but not let me write to it (except as root) for some odd reason. I got away with this instead:

/dev/sda1               /mnt/external           ext3    user,defaults 0 0

Would you happen to know why?</description>
		<content:encoded><![CDATA[<p>Nice tutorial. However, the instructions for the fstab entry in Step 11 (i.e.)</p>
<p>/dev/sda1               /mnt/external           ext3    rw,noauto,user 1 0</p>
<p>would let me mount the drive as a normal user, but not let me write to it (except as root) for some odd reason. I got away with this instead:</p>
<p>/dev/sda1               /mnt/external           ext3    user,defaults 0 0</p>
<p>Would you happen to know why?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anantha</title>
		<link>http://emphaticallystatic.org/earlier/id-written-up-two-other-posts/#comment-7100</link>
		<dc:creator>Anantha</dc:creator>
		<pubDate>Fri, 18 Mar 2005 10:52:28 +0000</pubDate>
		<guid isPermaLink="false">http://actuality.wahgnube.org/earlier/id-written-up-two-other-posts/#comment-7100</guid>
		<description>Sweet :)</description>
		<content:encoded><![CDATA[<p>Sweet :)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
