<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ubuntu Guy &#187; mount</title>
	<atom:link href="http://ubuntuguy.com/tag/mount/feed/" rel="self" type="application/rss+xml" />
	<link>http://ubuntuguy.com</link>
	<description>Ubuntu tips and tricks from a random guy</description>
	<lastBuildDate>Fri, 26 Feb 2010 13:55:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Mounting disks without root permissions</title>
		<link>http://ubuntuguy.com/uncategorized/mounting-disks-without-root-permissions/</link>
		<comments>http://ubuntuguy.com/uncategorized/mounting-disks-without-root-permissions/#comments</comments>
		<pubDate>Fri, 26 Feb 2010 13:55:45 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Random stuff]]></category>
		<category><![CDATA[fat32]]></category>
		<category><![CDATA[mount]]></category>
		<category><![CDATA[ntfs]]></category>

		<guid isPermaLink="false">http://ubuntuguy.com/?p=73</guid>
		<description><![CDATA[A very common problem in a default Ubuntu installation &#8211; especially if you have windows disks in your pc &#8211; is that the system mounts disks with root permissions, which makes things a little harder. By harder I mean you can&#8217;t easily modify or delete files, etc. The solution is easy, we need to tell [...]]]></description>
			<content:encoded><![CDATA[<p>A very common problem in a default Ubuntu installation &#8211; especially if you have windows disks in your pc &#8211; is that the system mounts disks with root permissions, which makes things a little harder. By harder I mean you can&#8217;t easily modify or delete files, etc.<br />
The solution is easy, we need to tell Ubuntu to mount the disk using the permissions of our user account. Here is how we can do it:</p>
<h3>Determine uid of my user</h3>
<p>First of all we need to know the uid (user ID) of our user. Open a terminal and give this command:</p>
<p><code>id -u $USER</code></p>
<p>This will output a number(usually this will be 1000). Keep this number and let&#8217;s go to the next step:</p>
<h3>Set fstab to mount the disk as the current user</h3>
<p>First of all open the /etc/fstab configuration file as root:</p>
<p><code>gksu gedit /etc/fstab</code></p>
<p>You will see something like that:</p>
<p><quote>UUID=3C1850B51850703E	/media/disk	vfat	defaults	0	0</quote></p>
<p>Change the defaults to this:</p>
<p><quote>UUID=3C1850B51850703E	/media/disk	vfat	user,uid=1000,utf8	0	0</quote></p>
<p>Where 1000 is your actual userID. We are done, now every time you login the disk will be accessible from your account. In case your disk is NTFS this wont work, but there is another solution which is actually the simpler one:</p>
<h3>Configuring through graphical interface</h3>
<p>Install ntfs-config by <a href="apt:ntfs-config">clicking here</a>, or by executing the above command:</p>
<p><code>sudo apt-get install ntfs-config</code></p>
<p>Then execute the program by executing:</p>
<p><code>gksu ntfs-config</code></p>
<p>Click on both the options, and you are done <img src='http://ubuntuguy.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://ubuntuguy.com/uncategorized/mounting-disks-without-root-permissions/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

