Need to have USB thumbdrives mount without world-read permissions in FC6
Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Need to have USB thumbdrives mount without world-read permissions in FC6
I need to find a way to have fedora mount any usbkey that's plugged in as non-world readable. I've been googling and haven't found a good solution so far.
Most people seem to say changing udev is the way to go, but in /etc/udev/rules.d/ there's not a "50-permissions" to edit, and furthermore, I've grepped the entire directory - there's nowhere that it lists 755 (the permissions that the drive is mounted with) or 022 (corresponding umask).
All I need is to change the permissions on usb storage devices (or, for all I care, all devices from /dev/sd*, as there aren't any other scsi devices) so that they automatically mount as 750, owner:root.
I've done some more exploring on teh intarwebs, and it seems that this is managed by the HAL daemon and some form of hotplug.
But I can't seem to find any documentation on HAL / hald, and I can't find any config files for it or hotplug (everything I find is somehow pointing back to udev, but I can't find anything in udev about default umasks, nor can I find anything that lists 755 or 022).
If someone would point to relevant information about hald and mount permission it would be appreciated.
Automated mount from haldaemon in Ubuntu set correct permissions (0700), but not in Fedora 8 (0755). I'm unable to find what to look for. I guess it's to be specified somewhere in /usr/share/hal/fdi/policy/ but I don't really know how to understand these files.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.