Mandriva This Forum is for the discussion of Mandriva (Mandrake) 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
03-06-2005, 08:37 AM
|
#1
|
Member
Registered: Jun 2004
Posts: 46
Rep:
|
Write privilege with USB drive
Under 10.1 - both community and official - most usb drive ( FAT formated ) automount and work flawlessly.
There is however a problem as root is the only one to have writing privileges to them. I know the usb drives ultimately don't refer to fstab (which is modified on the fly when you plug and unplug one in). I mostly don't want to change mandrake's behavior with these drives (that means no hard modifying of the fstab).
So, could anyone direct me as to what file I need to alter in order to give standard users writing privilege - I'm guessing it has something to do with udev conf' files, but I haven't been able to pinpoint anything when I went through its documentation.
Thanks for any help you could provide.
Last edited by grenier; 03-06-2005 at 11:03 AM.
|
|
|
03-06-2005, 01:31 PM
|
#2
|
Senior Member
Registered: Sep 2004
Location: Outlying D.C.
Distribution: Mandriva
Posts: 2,090
Rep:
|
Eh, this is not QUITE true.
Kudzu automatically adds an entry to /etc/fstab for any newly found USB drive.
It does NOT automatically remove them though, which can lead to a lot of trouble in ID'ing frequently exchanged devices.
Your best bet is to NOT let the system automatically add entries for the drive, and then set the drive to be user mountable via the MCC's own "Partitions" panel.
|
|
|
03-07-2005, 05:25 PM
|
#3
|
Member
Registered: Nov 2004
Location: Texas
Distribution: openSUSE 10.3, Yoper Linux 3.0 , Arch Linux 2007.08
Posts: 253
Rep:
|
Another possible workaround. I have this problem with most removable drives that support a linux file system. Only root can write to them. Typically, when I first set it up, I su to root, create a top level directory on the removable drive with the same name as my userid, and then chown that directory to myself. After that, I do all the reading and writing to my userid's directory on the drive. Seems to work well.
To do this, mount the drive (example /mnt/usbdrive)
su to root
cd /mnt/usbdrive
mkdir my_userid
chown my_userid: my_userid
That does the trick - henceforth you will have full write priveledges to /mnt/usbdrive/my_userid
|
|
|
03-07-2005, 05:45 PM
|
#4
|
LQ Guru
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
|
In your /etc/fstab file add umask=000 to the mount point for device. Example only works for fat or vfat formmated drives.
Code:
/dev/sda1 /mnt/sda1 auto umask=000,users,noauto,owner,rw,sync,dirsync 0 0
/dev/sdb1 /mnt/sdb1 auto umask=000,users,noauto,owner,rw,sync,dirsync 0 0
/dev/sdc1 /mnt/sdc1 auto umask=000,users,noauto,owner,rw,sync,dirsync 0 0
I don't use kudzu and turn it off. I do most mounting manually. I just have about 4 of these in my fstab file. I just start mounting from sda1 to sdd1 as needed. Currently in fedora3 Udev and Hal create mount points in etc/fstab as devices are plugged in. I ginore them since when removed they disappear.
As Long as there are only one partition on each device this works very well for me.
Brian1
" Google the Linux way @ http://www.google.com/linux "
|
|
|
03-07-2005, 06:27 PM
|
#5
|
Member
Registered: Nov 2004
Location: Texas
Distribution: openSUSE 10.3, Yoper Linux 3.0 , Arch Linux 2007.08
Posts: 253
Rep:
|
Turning Off Kudzu?
Interesting. How do you turn kudzu off - I would love to do this! Bet it speeds up boot times?
|
|
|
03-07-2005, 06:31 PM
|
#6
|
LQ Guru
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
|
in a terminal and having root access type ' chkconfig --level 345 kudzu off '
It will increase boot some.
Brian1
" Google the Linux way @ http://www.google.com/linux "
|
|
|
03-07-2005, 08:48 PM
|
#7
|
Member
Registered: Nov 2004
Location: Texas
Distribution: openSUSE 10.3, Yoper Linux 3.0 , Arch Linux 2007.08
Posts: 253
Rep:
|
Sorry for the dumb question, but is there an equally easy way to turn it back on? Can you point me at any reference material on this (web pages, whatever)? I would like to learn more about chkconfig. Thanks!
|
|
|
03-09-2005, 04:48 PM
|
#8
|
LQ Guru
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
|
Soory for the delay. Sick yesterday. To turn it back on do the following.
' chkconfig --level 345 kudzu on '
What this does is create the scripts to start in runlevels 3,4,& 5. Not sure which numbered order it does. I seldom do things this way. Mostly use the command to turn off scripts. These scripts are located in /etc/rc.d/init.d. What it does it place them in /etc/rc.d/rc.0 - rc.6. They get a s** for start in that run level ans k** for a stop in that runlevel. Just look over these areas and it should come clear.
Brian1
" Google the Linux way @ http://www.google.com/linux "
|
|
|
03-12-2005, 08:43 AM
|
#9
|
Member
Registered: Jun 2004
Posts: 46
Original Poster
Rep:
|
No Kudzu
Well, I should have answered sooner, and thanks for the response.
However, there is no kudzu in Mandrake 10.1 (I checked it up going through the init.d script, the logs, and even the starting up sequence in case I forgot something).
So if somebody knows how mandrake does this hotplugging of USB drives, and where it's set up...
|
|
|
All times are GMT -5. The time now is 04:49 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|