autofs timeout
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Nautilus |
Expired
|
High
|
|||
nautilus (Ubuntu) |
Triaged
|
Low
|
Unassigned |
Bug Description
Binary package hint: nautilus
OS: Ubuntu 8.10 Intrepid, upgraded from Hardy
Software: SSHFS, AutoFS, no changes concerning Nautilus
I'm using SSHFS with AutoFS to mount remote shares, which I must have unmounted after some time because of security concerns. This has had me set a timeout on the AutoFS mounts.
The problem is that when opening a remote folder in Nautilus, the timeout countdown starts as soon as I stop clicking on folders/files. When it's down, I get a password prompt.
This is buggy behaviour to me, because if I set the timeout to 10 seconds, there is a password prompt every 10 seconds if I just have a remote folder open in Nautilus, doing nothing else. Of course I've got a bigger timeout, but it's still quite annoying.
I think that it should either:
1. Start the timeout as soon as I don't browse around or poll the file system manually in any other way. Then ask for a password only if user interaction occurs.
2. Don't time out as long as I have an open remote folder (after closing the last remote directory, let AutoFS time out and unmount). This is how KDE's Konqueror and gnome-terminal behave.
There is already a bug filed at the GNOME bugzilla about this. But it originates from 2002 and the last comment is from 2006... which is about the issue still not being resolved.
That's why I'm reporting here. If anyone has a better idea who to harass into fixing this, speak up ;)
Here's the GNOME bug:
http://
I've also started a thread at the ubuntuforums.org:
http://
Changed in nautilus: | |
status: | Unknown → Confirmed |
Changed in nautilus: | |
importance: | Unknown → High |
Changed in nautilus: | |
status: | Confirmed → Incomplete |
Changed in nautilus: | |
status: | Incomplete → Confirmed |
Changed in nautilus: | |
importance: | Unknown → High |
status: | Unknown → Confirmed |
Changed in nautilus (Ubuntu): | |
assignee: | Ubuntu Desktop Bugs (desktop-bugs) → nobody |
Changed in nautilus: | |
status: | Confirmed → Expired |
Whilst setting up some Linux boxes for normal users (who don't know about unmounting. ..) I noticed that when you try to access an autofs'd
mounting/
floppy drive from nautilus (1.0.4), the device will mount, but the mount
doesn't hold, it disappears as soon as the timeout (in this case 2
secondes) expires, upon which nautilus throws you back to your home directory.
The problem doesn't arise with supermount (patching the kernel is a viable
workaround).
From what I know about autofs, I'd say that nautilus is lsing the directory
it shows, but isn't cding to it before hand, hence the loss of lock, and
the unmounting.
I'm not too familiar with the nautilus code, so I can't say for sure, but I
think a
sprintf(&buffer,"cd %s",dir);
system(buffer);
in the function that's invoked when you change directory should do the
trick for this one (needs testing though, I can't quite remember if
system() opens a new shell for it's commands, which is closed upon exit, or
whether it goes straight through the applications interfaces. If it's the
former, this fix would not work).