LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   What set/change permission on usb storage (https://www.linuxquestions.org/questions/mandriva-30/what-set-change-permission-on-usb-storage-482182/)

artois_val 09-10-2006 02:27 PM

What set/change permission on usb storage
 
Everytime I plug an usb storage (usb key, usb hd) everything work except that only the root user can access the mounted storage directory.

What change or set the perm, my wish is to plug my usb drive and be able to read/write file without to have to change to root user.

I use mandriva 2006 (free ed)

b0uncer 09-10-2006 02:37 PM

Open your /etc/fstab and locate the line that talks about your usb memory..it's got /dev/sdaX or sdeX or something, where X is a number. Alter the line and add to the options an option umask=022 to let every user read/write it..so the line becomes like this (might be a bit different on your machine, so just add the umask):

Code:

/dev/sda1 /mnt/someplace auto defaults,umask=022 0 0
All the other options in the above line may vary on your machine, so don't alter anything else, just add the umask. If you want only yourself be able to read/write the memory, alter the mask.

artois_val 09-11-2006 06:38 PM

Quote:

Originally Posted by b0uncer
Open your /etc/fstab and locate the line that talks about your usb memory..it's got /dev/sdaX or sdeX or something, where X is a number. Alter the line and add to the options an option umask=022 to let every user read/write it..so the line becomes like this (might be a bit different on your machine, so just add the umask):

Code:

/dev/sda1 /mnt/someplace auto defaults,umask=022 0 0
All the other options in the above line may vary on your machine, so don't alter anything else, just add the umask. If you want only yourself be able to read/write the memory, alter the mask.

I did what you said, unfortunetly the usb device no longer automount. Actualy in wich conf file they are mounted, I think it udev or hotplug...

Thx for the help

tytower 09-12-2006 02:09 AM

I think there is something else going on in Mandriva now and somebody else may know ?
For a start on my ftab file the permission is not umask=022 but is actually umask=0022. Don't know if that is different or not in practice.

Usb is handled in mtab as
none /proc/bus/usb usbfs rw 0 0

and the effect of mtab is to record which device is mounted on usb and who owns it I think
Please correct me if I'm wrong


All times are GMT -5. The time now is 09:36 AM.