[Bug 453605] Re: Make default mount umasks configurable
Quotting pitti from comment #2: We won't change the behaviour in udisks, there needs to be some default after all. Please completely remove dmask from the vfat/ntfs mount options, like fmask already is (absent). Patch available at LP #482501. I assume that dmask=0077 was added at some point in order to protect the contents of the mountpoint? Nowadays, all user-mounted media is protected by the attributes of the parent directory, /media/username. guest@pc:~$ ls /media/alkisg ls: cannot open directory /media/alkisg: Permission denied Inside /media/username/mountpoint, directories and files should be world-readable to behave better when copied elsewhere (LP #592748), e.g. in ~/Documents, which is supposed to be world-readable by default. For example, ~/.local is drwx-- but ~/.local/share is drwxr-xr-x, similarly, /media/username should be drwx-- and /media/username/mountpoint/folders should be drwxr-xr-x. For people needing a quick workaround, and since none exists yet, here's a really bad one that nevertheless does work for me: # For the newer udisks2: sudo sed 's/dmask=[0-9]\{4\}/dmask=0022/' -i /usr/lib/udisks2/udisksd # For the older udisks: sudo sed 's/dmask=[0-9]\{4\}/dmask=0022/' -i /usr/lib/udisks/udisks-daemon # And reboot. If udisks/udisks2 don't get fixed in some reasonable time, I'll upload patches packages for the LTS Ubuntu releases in the Greek Schools PPA. Unfortunately that'll be a pain, especially for udisks updates. About configurability in nautilus, I don't think it will be needed if dmask gets removed. And in any case configurability belongs in udisks, not in packages that use udisks, because then every package that uses udisks should provide such an option. Thanks! ** Also affects: udisks (Ubuntu) Importance: Undecided Status: New ** Also affects: udisks2 (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to nautilus in Ubuntu. https://bugs.launchpad.net/bugs/453605 Title: Make default mount umasks configurable To manage notifications about this bug go to: https://bugs.launchpad.net/gvfs/+bug/453605/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 453605] Re: Make default mount umasks configurable
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: udisks (Ubuntu) Status: New = Confirmed -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to nautilus in Ubuntu. https://bugs.launchpad.net/bugs/453605 Title: Make default mount umasks configurable To manage notifications about this bug go to: https://bugs.launchpad.net/gvfs/+bug/453605/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 453605] Re: Make default mount umasks configurable
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: udisks2 (Ubuntu) Status: New = Confirmed -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to nautilus in Ubuntu. https://bugs.launchpad.net/bugs/453605 Title: Make default mount umasks configurable To manage notifications about this bug go to: https://bugs.launchpad.net/gvfs/+bug/453605/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 453605] Re: Make default mount umasks configurable
P.S. completely removing dmask from the mount options and letting /media/username cover the permission issues, couples well with UDISKS_FILESYSTEM_SHARED, so that people that want USB drives to be shared across users, can just specify UDISKS_FILESYSTEM_SHARED=1 in udev for those drives. Then /media/mountpoint will be world-readable for vfat/ntfs, as expected (as opposed to /media/username/mountpoint which is protected with the default UDISKS_FILESYSTEM_SHARED=0). ** No longer affects: nautilus (Ubuntu) -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to nautilus in Ubuntu. https://bugs.launchpad.net/bugs/453605 Title: Make default mount umasks configurable To manage notifications about this bug go to: https://bugs.launchpad.net/gvfs/+bug/453605/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 453605] Re: Make default mount umasks configurable
and a few months later, nothing... -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to nautilus in Ubuntu. https://bugs.launchpad.net/bugs/453605 Title: Make default mount umasks configurable To manage notifications about this bug go to: https://bugs.launchpad.net/gvfs/+bug/453605/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 453605] Re: Make default mount umasks configurable
Really nothing changed for another year? Thats poor. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to nautilus in Ubuntu. https://bugs.launchpad.net/bugs/453605 Title: Make default mount umasks configurable To manage notifications about this bug go to: https://bugs.launchpad.net/gvfs/+bug/453605/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 453605] Re: Make default mount umasks configurable
Amazing that this old bug manages to exist through 2011. Anyway - I've googled around, and the only fix seems to be the one described on this post : https://bugs.launchpad.net/ubuntu/+source/devicekit-disks/+bug/482501/comments/13 However, when I tried to install the source for devicekit-disks, I got error message : Unable to find a source package for devicekit-disks I looked on the repository server, and the only source I could find is devicekit-disks_007.orig.tar.gz (example: http://kambing.ui.ac.id/ubuntu/pool/main/d/devicekit-disks/devicekit-disks_007.orig.tar.gz) So I downloaded it - then I found out that the content is different than the explanation in the post above. (https://bugs.launchpad.net/ubuntu/+source/devicekit-disks/+bug/482501/comments/13) Here I'm stuck with 2 years old bug, with a workaround which doesn't work anymore. Any hints would be much appreciated. Thanks ! -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to nautilus in ubuntu. https://bugs.launchpad.net/bugs/453605 Title: Make default mount umasks configurable -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 453605] Re: Make default mount umasks configurable
Any chance of this to be fixed in the non-geek way? It's 10.10 already, and this bug is still here! -- Make default mount umasks configurable https://bugs.launchpad.net/bugs/453605 You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to nautilus in ubuntu. -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 453605] Re: Make default mount umasks configurable
** Changed in: gvfs Importance: Unknown = Wishlist -- Make default mount umasks configurable https://bugs.launchpad.net/bugs/453605 You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to nautilus in ubuntu. -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 453605] Re: Make default mount umasks configurable
I'm marking this regression-release, because as commented on in the duplicate, we went from Jaunty (HAL) offering NTFS drives as 777 by default (I believe), with gconf options to change permissions, to Karmic (devkit-disks / udisks) offering no way to change permissions from 700 -- and thus no way to share an NTFS USB drive with Samba. ** Tags added: regression-release ** Bug watch added: GNOME Bug Tracker #586708 https://bugzilla.gnome.org/show_bug.cgi?id=586708 ** Also affects: nautilus via https://bugzilla.gnome.org/show_bug.cgi?id=586708 Importance: Unknown Status: Unknown ** Project changed: nautilus = gvfs -- Make default mount umasks configurable https://bugs.launchpad.net/bugs/453605 You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to nautilus in ubuntu. -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 453605] Re: Make default mount umasks configurable
Also, I tried to change Nautilus (linked to upstream bug tracker) to gvfs, and got: Internal Server Error NotImplementedError -- Make default mount umasks configurable https://bugs.launchpad.net/bugs/453605 You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to nautilus in ubuntu. -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 453605] Re: Make default mount umasks configurable
** Changed in: gvfs Status: Unknown = New -- Make default mount umasks configurable https://bugs.launchpad.net/bugs/453605 You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to nautilus in ubuntu. -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
Re: [Bug 453605] Re: Make default mount umasks configurable
I've tried the solution suggested above but when I stick the NTFS USB drive in, it says it can't mount it and point to this bit of documentation: Unprivileged block device mounts work only if all the below requirements are met: 1. ntfs-3g is compiled with integrated FUSE support 2. the ntfs-3g binary is at least version 1.2506 3. the ntfs-3g binary is set to setuid-root 4. the user has access right to the volume 5. the user has access right to the mount point http://www.tuxera.com/community/ntfs-3g-faq/#unprivileged But the default ntfs-3g version shipped with Lucid is not compiled with integrated FUSE support: u...@host:~$ ntfs-3g --version ntfs-3g 2010.3.6 external FUSE 28 u...@host:~$ So maybe that works only for FAT drives? Anybody have a workaround for NTFS drives in that case? :) On Fri, May 7, 2010 at 1:15 PM, X-Ander x-an...@bk.ru wrote: I have added the following lines to my /etc/fstab: /dev/sdb1 /media/usbd1 auto noauto,rw,user,shortname=mixed,dmask=02,fmask=0113,utf8=1,flush 0 2 /dev/sdc1 /media/usbd2 auto noauto,rw,user,shortname=mixed,dmask=02,fmask=0113,utf8=1,flush 0 2 Now two USB flash drives are mounted as I want. I don't need more because I have only two USB connectors free at my netbook. The idea was suggested by http://hal.freedesktop.org/docs/DeviceKit- disks/Device.html#Device.FilesystemMounthttp://hal.freedesktop.org/docs/DeviceKit-%0Adisks/Device.html#Device.FilesystemMount -- Make default mount umasks configurable https://bugs.launchpad.net/bugs/453605 You received this bug notification because you are a direct subscriber of a duplicate bug. -- Make default mount umasks configurable https://bugs.launchpad.net/bugs/453605 You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to nautilus in ubuntu. -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 453605] Re: Make default mount umasks configurable
I have added the following lines to my /etc/fstab: /dev/sdb1 /media/usbd1 auto noauto,rw,user,shortname=mixed,dmask=02,fmask=0113,utf8=1,flush 0 2 /dev/sdc1 /media/usbd2 auto noauto,rw,user,shortname=mixed,dmask=02,fmask=0113,utf8=1,flush 0 2 Now two USB flash drives are mounted as I want. I don't need more because I have only two USB connectors free at my netbook. The idea was suggested by http://hal.freedesktop.org/docs/DeviceKit- disks/Device.html#Device.FilesystemMount -- Make default mount umasks configurable https://bugs.launchpad.net/bugs/453605 You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to nautilus in ubuntu. -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 453605] Re: Make default mount umasks configurable
BTW, in lucid, VFAT drives are mounted with umask 077 again, as in Jaunty. ** Description changed: - Binary package hint: devicekit-disks - - Greetings! - - After upgrading from 9.04 to 9.10, mounting removable USB media (e.g. a - thumbdrive) from Nautilus defaults the umask/fmask such that all of the - files are 0755 (world readable/executable). While the dmask is set such - that directories themselves are 0700, this does trip out software that - is paranoid about security (e.g. ssh-add, for a private key stored on a - thumbdrive). - - Ideally, the umask should set the files to 0600 or 0700 by default. - Even better, there should be an easy way to configure this (perhaps - through the existing gconf system, which has - /system/storage/default_options/vfat/mount_options ?). - - $ lsb_release -rd - Description: Ubuntu karmic (development branch) - Release: 9.10 - $ apt-cache policy devicekit-disks - devicekit-disks: - Installed: 007-2ubuntu2 - Candidate: 007-2ubuntu2 - Version table: - *** 007-2ubuntu2 0 - 500 http://us.archive.ubuntu.com karmic/main Packages - 100 /var/lib/dpkg/status - - ProblemType: Bug - Architecture: i386 - CustomUdevRuleFiles: 85-brltty.rules 025_libticables.rules 025_libchipcard.rules - Date: Fri Oct 16 19:51:34 2009 - DistroRelease: Ubuntu 9.10 - MachineType: VIA Technologies, Inc. FX43 - NonfreeKernelModules: nvidia - Package: devicekit-disks 007-2ubuntu2 - ProcCmdLine: root=UUID=db0ef1e1-3015-4cd9-b92a-012fdf82bbbf ro ROOTFLAGS=syncio quiet splash crashkernel=384M-2G:6...@16m,2G-:1...@16m - ProcEnviron: - PATH=(custom, user) - LANG=en_US.UTF-8 - SHELL=/bin/bash - ProcVersionSignature: Ubuntu 2.6.31-14.47-generic - SourcePackage: devicekit-disks - Uname: Linux 2.6.31-14-generic i686 - dmi.bios.date: 12/30/2003 - dmi.bios.vendor: Phoenix Technologies, LTD - dmi.bios.version: 6.00 PG - dmi.board.name: FX43 - dmi.board.vendor: SHUTTLE INC - dmi.chassis.type: 3 - dmi.modalias: dmi:bvnPhoenixTechnologies,LTD:bvr6.00PG:bd12/30/2003:svnVIATechnologies,Inc.:pnFX43:pvr:rvnSHUTTLEINC:rnFX43:rvr:cvn:ct3:cvr: - dmi.product.name: FX43 - dmi.sys.vendor: VIA Technologies, Inc. + There should be an easy way to configure the default umask for + VFAT/NTFS/similar file systems (perhaps through the existing gconf + system, which has /system/storage/default_options/vfat/mount_options ?). -- Make default mount umasks configurable https://bugs.launchpad.net/bugs/453605 You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to nautilus in ubuntu. -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 453605] Re: Make default mount umasks configurable
A configuration option would be excellent. Thanks for looking into this! :-) -- Make default mount umasks configurable https://bugs.launchpad.net/bugs/453605 You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to nautilus in ubuntu. -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs