<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title><![CDATA[Attention! GVFS: move out .gvfs dir from $HOME!]]></title>
    <link>http://brainstorm.ubuntu.com/item/7673/</link>
    <description><![CDATA[Since Ubuntu Hardy 8.04 Gnome using GVFS. This is a great feature, but have some dangerous issues!<br />See my steps:<br />1) I go to ftp://user@ftp.site.com by nautilus and gvfs automatic mount it as directory at $HOME/.gvfs/somedir<br />2) I remove my home dir: rm -rf $HOME<br />Whats wrong?! I've removed all files on my FTP Server! OMG!<br /><br />It can be fixed by moving .gvfs dir from $HOME to separate directory (for example to /usermounts or /gvfsmounts or /mnt/gvfs or some else) and creting link in $HOME if it's necessary.<br />
<br />


<b>[86 votes] Solution #1: Auto-generated solution of idea #7673</b>
<br />

<br />
<br />



]]></description>

    <language>en-us</language>
    <pubDate>Sat, 26 Apr 2008 21:15:26 +0000</pubDate>
    <lastBuildDate>Thu, 13 Oct 2011 08:43:52 +0000</lastBuildDate>
    <generator>QAPoll module</generator>
    <guid isPermaLink="true">http://brainstorm.ubuntu.com/idea/7673/</guid>
        <item>
  <title>Comment from virsli100</title>
  <description><![CDATA[good point<br />i think every mounted thing should be placed under /media<br />with a symlink in your home]]></description>
  <pubDate>Sun, 27 Apr 2008 12:01:26 +0000</pubDate>
</item>
        <item>
  <title>Comment from ryanhaigh</title>
  <description><![CDATA[Why do we need the symlink in home? If it is mounted with the correct permissions I think it would be pointless to have the mount 'appear' in two locations.]]></description>
  <pubDate>Sun, 27 Apr 2008 12:23:27 +0000</pubDate>
</item>
        <item>
  <title>Comment from Auzy</title>
  <description><![CDATA[I'd imagine because users shouldn't be allowed to create directories in /media or /mnt or elsewhere..]]></description>
  <pubDate>Sun, 27 Apr 2008 15:03:55 +0000</pubDate>
</item>
        <item>
  <title>Comment from PeterKraus</title>
  <description><![CDATA[That's what pmount is for... Users in plugdev group are allowed to automount and autounmount devices...]]></description>
  <pubDate>Sun, 27 Apr 2008 16:09:15 +0000</pubDate>
</item>
        <item>
  <title>Comment from giner</title>
  <description><![CDATA[Example structure:<br />/mnt/.gvfs (permissions 777)<br />/mnt/.gvfs/user1 (700)<br />/mnt/.gvfs/user2 (700)<br />/mnt/.gvfs/user3 (700)]]></description>
  <pubDate>Sun, 27 Apr 2008 18:09:30 +0000</pubDate>
</item>
        <item>
  <title>Comment from Psycho_zs</title>
  <description><![CDATA[not the only problem with gvfs.<br /><br />http://brainstorm.ubuntu.com/idea/7704/]]></description>
  <pubDate>Sun, 27 Apr 2008 18:46:43 +0000</pubDate>
</item>
        <item>
  <title>Comment from jiu</title>
  <description><![CDATA[agree with ryanhaigh, I don't like symlinks, they can lead to all sorts of pbs.]]></description>
  <pubDate>Mon, 28 Apr 2008 07:33:42 +0000</pubDate>
</item>
        <item>
  <title>Comment from natureflow</title>
  <description><![CDATA[This is a BIG problem. Please fix this Bug. Please mount the files to /mnt/gvfs/* .]]></description>
  <pubDate>Mon, 28 Apr 2008 14:40:10 +0000</pubDate>
</item>
        <item>
  <title>Comment from Mårten Woxberg</title>
  <description><![CDATA[First the example is flawed, why would you remove your $HOME?<br /><br />Second this should be reported as a bug against GVFS, NOT here on brainstorm]]></description>
  <pubDate>Wed, 30 Apr 2008 14:26:36 +0000</pubDate>
</item>
        <item>
  <title>Comment from Yanqui</title>
  <description><![CDATA[Yes, you'd remove someone else's home. Like when you remove a user from your server.]]></description>
  <pubDate>Thu, 15 May 2008 19:37:06 +0000</pubDate>
</item>
        <item>
  <title>Comment from adelie</title>
  <description><![CDATA[+1 virsli100<br /><br />Ok, my first thought is why inthe world are you rm -rf $HOME, but none the less, $HOME should not contain the mount point for ANYTHING!!!<br /><br />Despite the common excuse of "works as intended", this was a BAD implementation. media, including ftp, should be mounted in /media like any other storage device. This should be considered a bug.]]></description>
  <pubDate>Thu, 16 Oct 2008 21:05:47 +0000</pubDate>
</item>
        <item>
  <title>Comment from szeder</title>
  <description><![CDATA[OK, and what if it's mounted under /mnt/gvfs/*, and I do a rm -rf /?<br />Right, "It will remove all files on my FTP Server! OMG!"<br /><br />This idea is just pure nonsense.]]></description>
  <pubDate>Mon, 10 Nov 2008 16:00:17 +0000</pubDate>
</item>
        <item>
  <title>Comment from martinkingsley</title>
  <description><![CDATA[I would say this should be change to the proposed solution regardless of the given example.<br /><br />My scenario is experimenting with CIFS shares (on freenas) and when using rsync to backup my home directory (to CIF share on disk a) I suddenly find I'm also backing up a whole other CIFs share (disk b) as well. Not what was exected.<br /><br />This makes the whole CIFS/SMB thing more opaque than it needs to be. Mount the shares to /mnt or /media which is where I was execting them to be when first trying this out a few days ago. Don't hide them away in the users home directory!]]></description>
  <pubDate>Sun, 09 Aug 2009 18:32:43 +0000</pubDate>
</item>
        <item>
  <title>Comment from jayarmstrong</title>
  <description><![CDATA[once again, the .gvfs folder bit me in the ass. This time, after mounting a remote folder in nautilus via sftp, my backup software saw tens of thousands of new files in my home directory (under .gvfs) and uploaded them overnight. This cost me a few $ as well as wasting my time.]]></description>
  <pubDate>Fri, 21 Aug 2009 09:17:21 +0000</pubDate>
</item>
        <item>
  <title>Comment from Lachu</title>
  <description><![CDATA[Situation what you described is real? I think rm -rf default don't remove files from other file system.]]></description>
  <pubDate>Sun, 23 Aug 2009 21:15:20 +0000</pubDate>
</item>
        <item>
  <title>Comment from Endolith</title>
  <description><![CDATA[Why the hell are you deleting your home directory?]]></description>
  <pubDate>Sun, 18 Apr 2010 14:33:53 +0000</pubDate>
</item>
        <item>
  <title>Comment from giner</title>
  <description><![CDATA["Why the hell are you deleting your home directory?"<br />it's necessary, for example, to clean terminal server of old "homes" or to make fresh home profile for some users.]]></description>
  <pubDate>Wed, 19 May 2010 20:48:37 +0000</pubDate>
</item>
        <item>
  <title>Comment from Lox_</title>
  <description><![CDATA[Also the .gvfs folder and mounted shares will get included in any backup of your home witch is annoying.]]></description>
  <pubDate>Wed, 06 Oct 2010 01:07:29 +0000</pubDate>
</item>
        <item>
  <title>Comment from giner</title>
  <description><![CDATA[https://bugzilla.gnome.org/show_bug.cgi?id=633778]]></description>
  <pubDate>Tue, 02 Nov 2010 08:51:42 +0000</pubDate>
</item>
        <item>
  <title>Comment from bersbers</title>
  <description><![CDATA[Let me react to some of the comments above, given that I nearly destroyed the contents of several auto-mounted shares in my company.<br /><br />"First the example is flawed, why would you remove your $HOME?"<br />-> If you use a remote system, even if only for a day of two, you do some work on it, you log in to websites and stuff, you may at one point leave this system for good. Consider you want to remove any traces of your private stuff, so that no BOFH can log into your email account (or anything else). How would you do that?<br /><br />"OK, and what if it's mounted under /mnt/gvfs/*, and I do a rm -rf /?"<br />-> I agree that this is a dangerous thing to do, but this is equally dangerous on ANY Linux distribution and should be taught to anyone using a Linux system before. Being discussed here is the danger of a special feature, available in only a subset of all installed Linux systems. You would agree that someone knowing how to use KDE should be able to work with GNOME without the risk of doing what we are discussing, wouldn't you?<br /><br />"Situation what you described is real? I think rm -rf default don't remove files from other file system."<br />It did in my case (Ubuntu 11.04). Later I noticed that --one-file-system exists, but only few systems support this, so it's not very well-known (or is it?). At the least, it's not the default setting.<br /><br />"Why the hell are you deleting your home directory?"<br />See above.<br /><br />Some context: I'm not new to Linux in a way that I wouldn't know about symlinks and mount points, and the concept of one global file system containing all mounted drives and shares. I know about the dangers of "rm -rf /". However, I would not even be able to tell apart one distribution from another, and I assume that a range of Linux users can be assigned to this category. In this view, the pure concept of *automatically*, *non-interactively* mounting network shares in a *hidden* folder in your *home* directory is ultimate danger for any network-accessible data, as long as this is not part of all Linux distributions (which will most probably never be the case).<br /><br />Last but not least, I agree that this is a GNOME/GVFS bug and not an Ubuntu one, but there's not much of a discussion in that GNOME bug and I wanted to put my thoughts some place where they might actually be read.]]></description>
  <pubDate>Thu, 13 Oct 2011 08:43:52 +0000</pubDate>
</item>
      </channel>
</rss>

