LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Changing default permissions on external USB drive (https://www.linuxquestions.org/questions/linux-newbie-8/changing-default-permissions-on-external-usb-drive-453597/)

jwsegar 06-10-2006 10:51 PM

Changing default permissions on external USB drive
 
Alrighty, the simple dilemma is this:

I have an external hard drive which Fedora Core 5 recognizes and mounts automatically. The problem with this is that it sets the permissions as 500, basically giving root and only root rx access. It is an NTFS formatted drive so I understand I can't write to it, that's not what I want to accomplish here. I can unmount it and remount it with a umask of 0222 and everyone has rx access which is what I want but I don't want to have to do that every time I plug this thing in. I've found where to change whether or not fedora mounts it automatically but again I want it to automatically recognize/mount it but I want everyone to have rx access. Is there a setting somewhere that I'm missing that will allow me to accomplish this.

The tougher question is:

I'm not really into asking questions and getting straight answers if that makes any sense. I want to know why it works that way and what processes/files are involved from start to finish when you plug in a usb device. If anyone can answer this it would probably help out a little bit more then just providing an answer to the question above.

I must say upfront though that I haven't even touched the fstab. I don't really see where this would come into play unless I wanted to manually mount this drive every time, which I don't.

Thanks for the help.

Tinkster 06-11-2006 12:02 AM

Hi, and welcome to LQ! :}

I use usbmanager, a script for usbmanager and an fstab entry to
achieve my goal. I don't like automounters, supermount or the
likes, but am quite happy to use usbmanagers capability to run a
script after a hot-plug event to mount my USB devices.


Cheers,
Tink

jwsegar 06-11-2006 07:11 PM

Thanks for the info Tinkster, that will definitely be a better work around than what I had in mind. It appears that fstab-sync was removed with FC5, which seems to be causing this problem.


All times are GMT -5. The time now is 04:13 AM.