LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 09-10-2006, 02:27 PM   #1
artois_val
Member
 
Registered: Jan 2004
Posts: 35

Rep: Reputation: 15
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)
 
Old 09-10-2006, 02:37 PM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
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.
 
Old 09-11-2006, 06:38 PM   #3
artois_val
Member
 
Registered: Jan 2004
Posts: 35

Original Poster
Rep: Reputation: 15
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
 
Old 09-12-2006, 02:09 AM   #4
tytower
Member
 
Registered: Jun 2006
Location: Oz
Distribution: Mandriva 10.0,10.1,10.2,2006,Mepis 6.0,Opensuse10.2,Puppy 2.14
Posts: 250

Rep: Reputation: 30
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
After plug in apacer ht202 usb mass storage into usb port. Nothing appear. tellmeimhong Linux - Hardware 3 02-04-2006 02:32 AM
how to change the path of mailbox storage in sendmail dhanju Linux - Newbie 0 09-15-2005 12:41 AM
hald - usb storage permission farsone Fedora 2 11-13-2004 04:32 PM
forcing a USB device to use usb-storage eantoranz Linux - Hardware 1 11-13-2004 07:44 AM
USB Drive \ Mp3 + USB Storage imonfya Linux - Hardware 2 07-09-2004 10:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 12:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration