Bug 134564
| Summary: | Logging out a user (not root) should trigger a umount of all the volumes he/she mounted | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Kyrre Ness Sjøbæk <kyrsjo> |
| Component: | gnome-volume-manager | Assignee: | John (J5) Palmieri <johnp> |
| Status: | CLOSED NOTABUG | QA Contact: | |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 3 | CC: | jkeck |
| Target Milestone: | --- | Keywords: | FutureFeature |
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Enhancement | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2004-10-07 21:26:56 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Kyrre Ness Sjøbæk
2004-10-04 17:34:53 UTC
Sounds ok. We would have to special case root so if you were logged into an X session as root (rare but some people do it) it doesn't unmount. Pictures dance in my head of g-v-m bringing down '/' ;-) if (uidnumber > 0) {
system ("umount -a");
}
Something like that in the shutdown code should umount every
not-in-use volumes the user has permissions to umount. But i see two
problems with this approach:
- What if something bad happens to gnome-volume-manager
- What if the user hits control-alt-backspace (same as #1?)
- What if the user already has "pulled" the floppy, or some stupid app
is running on it? (*KILL* it! Or simply just do a lazy umount, and
wait for the app to die of its own (the users) stupidity?)
The way it will work is a bit more complicated. Can't say if it will get into the release or not since this was requested so late but I'll see what I can do. Basicly short term what will happen is we will itterate over the list of mounts lazy unmounting all mounts with user=<the session user>. Well, I guess it is your lucky day as I have just tested this and it already works out of the box in Rawhide. :) Thats nice! => it will work like that in fc3 :) How does it work? Rawhide is the development version which will become FC3. gnome-volume-manager handles unmounting user mounts when the session gets logged out. I tried this with a USB memory drive and a floppy. Yes i know that. But will it work if the user hits "control-alt-backspace" to log out as well? |