Ubuntu QA:
BlogBrainstormPackage status
Log in
Ubuntu QA
The Ubuntu community has contributed 17459 ideas, 107690 comments, 2263278 votes
Idea sandbox Idea sandbox
Popular ideas Popular ideas
Ideas in development Ideas in development
Implemented ideas Implemented ideas
Idea #7673: Attention! GVFS: move out .gvfs dir from $HOME!

Written by giner the 26 Apr 08 at 21:15. Related project: Gnome. Status: New
Rationale
Since Ubuntu Hardy 8.04 Gnome using GVFS. This is a great feature, but have some dangerous issues!
See my steps:
1) I go to ftp://user@ftp.site.com by nautilus and gvfs automatic mount it as directory at $HOME/.gvfs/somedir
2) I remove my home dir: rm -rf $HOME
Whats wrong?! I've removed all files on my FTP Server! OMG!

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.

82
votes
up equal down
Solution #1: Auto-generated solution of idea #7673
Written by giner the 26 Apr 08 at 21:15.
Ubuntu Brainstorm was updated in January 2009. Since the idea #7673 was submitted before this update, its rationale and solution are not separated. Please vote accordingly, and if you have the necessary rights, please separate the rationale from the solution. Thanks!

Propose your solution

Attachments
No attachments.


Duplicates


Comments
virsli100 wrote on the 27 Apr 08 at 12:01
good point
i think every mounted thing should be placed under /media
with a symlink in your home

ryanhaigh wrote on the 27 Apr 08 at 12:23
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.

Auzy wrote on the 27 Apr 08 at 15:03
I'd imagine because users shouldn't be allowed to create directories in /media or /mnt or elsewhere..

PeterKraus wrote on the 27 Apr 08 at 16:09
That's what pmount is for... Users in plugdev group are allowed to automount and autounmount devices...

giner wrote on the 27 Apr 08 at 18:09
Example structure:
/mnt/.gvfs (permissions 777)
/mnt/.gvfs/user1 (700)
/mnt/.gvfs/user2 (700)
/mnt/.gvfs/user3 (700)

Psycho_zs wrote on the 27 Apr 08 at 18:46
not the only problem with gvfs.

http://brainstorm.ubuntu.com/idea/7704/

jiu wrote on the 28 Apr 08 at 07:33
agree with ryanhaigh, I don't like symlinks, they can lead to all sorts of pbs.

natureflow wrote on the 28 Apr 08 at 14:40
This is a BIG problem. Please fix this Bug. Please mount the files to /mnt/gvfs/* .

Mårten Woxberg wrote on the 30 Apr 08 at 14:26
First the example is flawed, why would you remove your $HOME?

Second this should be reported as a bug against GVFS, NOT here on brainstorm

Yanqui wrote on the 15 May 08 at 19:37
Yes, you'd remove someone else's home. Like when you remove a user from your server.

adelie wrote on the 16 Oct 08 at 21:05
+1 virsli100

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!!!

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.

szeder wrote on the 10 Nov 08 at 16:00
OK, and what if it's mounted under /mnt/gvfs/*, and I do a rm -rf /?
Right, "It will remove all files on my FTP Server! OMG!"

This idea is just pure nonsense.

martinkingsley wrote on the 9 Aug 09 at 18:32
I would say this should be change to the proposed solution regardless of the given example.

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.

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!

jayarmstrong wrote on the 21 Aug 09 at 09:17
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.

Lachu wrote on the 23 Aug 09 at 21:15
Situation what you described is real? I think rm -rf default don't remove files from other file system.


Post your comment