Bug 98804

Summary: fstab entries mounted as root using .desktop file don't mount with options specified in fstab file
Product: [Frameworks and Libraries] frameworks-kio Reporter: classic <sad__fox>
Component: generalAssignee: David Faure <faure>
Status: CONFIRMED ---    
Severity: normal CC: a.samirh78, faure, kdelibs-bugs, nate
Priority: NOR    
Version: 5.45.0   
Target Milestone: ---   
Platform: Slackware   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description classic 2005-02-07 21:10:07 UTC
Version:            (using KDE KDE 3.2.3)
Installed from:    Slackware Packages
OS:                Linux

when i mount from terminal it mount true with all option(like iocharset,umask,uid,.....)
as a root and user.
---------------------------
and when i mount from gnome icon it mount true with all options as root and user.
---------------------------
when i mount from kde icon it mount true with all options
as a user.

but when i mount from kde icon it mount but without options
as a root.
Comment 1 Thiago Macieira 2005-02-07 21:18:08 UTC
I'm sorry, I cannot understand you.

Are you saying that when you mount a filesystem by clicking on its KDE icon, the options that are used are those that a user would see? If so, how is that a bug?
Comment 2 classic 2005-02-08 00:00:45 UTC
no
---------------
my fstab:
/dev/hda5        /mnt/abdo        vfat  defaults,iocharset=utf8,umask=0000         1   0
when i mount by terminal(as root or user) my mtab is:
/dev/hda5 /mnt/abdo vfat rw,iocharset=utf8,umask=0000 0 0   (it is true)
when i mount by kde icons (as user) my mtab is:
/dev/hda5 /mnt/abdo vfat rw,iocharset=utf8,umask=0000 0 0   (it is true)

but when i mount by kde icons (as root) my mtab is:
/dev/hda5 /mnt/abdo vfat                                   (it is not complete)

the bug in kde icons as root only.
Comment 3 Martin Koller 2005-02-15 22:11:56 UTC
Confirmed.
I tested with having the following in fstab:
/dev/hda2        /mnt/xxx         vfat        umask=002,shortname=winnt  1   0

After mounting from a .desktop file on the desktop as root, mount shows:
/dev/hda2 on /mnt/xxx type vfat (rw)

When I do mount /mnt/xxx it in a shell, I get:
/dev/hda2 on /mnt/xxx type vfat (rw,umask=002,shortname=winnt)

Comment 4 Martin Koller 2005-02-15 22:23:34 UTC
I think the correct product is kio
Comment 5 David Faure 2010-10-22 15:11:12 UTC
Indeed, this is because kio_file tries "mount <dev> <mountpoint>" first (since both are in the .desktop file) before it falls back to "mount <mountpoint>".
But as root both work, so the options are discarded. Could be fixed by comparing the requested device with the one in the fstab....
Comment 6 Ahmad Samir 2021-07-28 09:51:02 UTC
Is this use-case still widely-used? usually Solid with the Udisks backend handles this nowadays.