-   Linux - Hardware (
-   -   USB HD Needs Root Privileges (

rrrssssss 11-13-2005 04:23 PM

USB HD Needs Root Privileges
Hello Forum,

I have just installed Mandriva Linux 2006 on a freshly formatted partition but one of my USB hard drives will not open unless it has root privileges. The other USB hard drive opens fine.

How can I change the first USB hard drive to open without giving it root privileges?

Thanks in advance,

acid_kewpie 11-13-2005 04:37 PM

can you explain what you're actually doing for these actions? it makes no sense to say you need to give a usb device root priveledges... a device doesn't have priveledges, the processes or users accessing it do.

rrrssssss 11-13-2005 04:59 PM

I can't access the first USB hard drive unless I have root privileges. I want to be able to access that hard drive without giving myself root privileges.


acid_kewpie 11-13-2005 05:08 PM

ok, well USB drives can be messy cos they can jump around in the device names they are given. if you find that it's only the second one you plug in that requires those permissions or something, then you can probably get away with a simple /etc/fstab entry like the existing one (assuming there is one), e.g.

/dev/sdb1 /mnt/usb_hd2 auto 0 0

i.e. rather than it being sda, which is used by an exisiting connected device, it gets the next in the list, sdb.

This is a bit crude though. if you want a more formal solution, you'd want to look into writing your own udev rules, which can help you directly identify what device you have plugged in and place it in a suitable location. for example you can take the maker of the drive. say you have one maxtor, one seagate. if the vendor is found to be maxtor then you can explicitly tell idev to ALWAYS place that device at /dev/usb_maxtor as opposed to /dev/usb_seagate. this is only one example though, you could use all sorts of things to keep them being connected to a reliable location. And of course when it IS in that reliable location, it' smuch saner to have an /etc/fstab directory for each device you use an any frequent basis.

try this:

All times are GMT -5. The time now is 11:30 PM.