Aron Smith wrote:
On Tuesday 11 October 2005 08:22 am, Mikkel L. Ellertson wrote:
Aron Smith wrote:
I have a USB external HDD but I can only read write to it as root is
there a way to set this drive so that the user can copy to/from this
drive?
It would help to know what version of Mandrivea you are running.
2006
Also,
did you create an entry in /etc/fstab for the drive yourself, did you
use diskdrake to set it up,
I used diskdrake
or did it get set up for you automaticly
when you plugged it in?
It did when it was FAT 32 but I reformatted it to linux native
Is the drive plugged in when you boot,
yes
or are
you plugging it in after you have logged in as a user?
I want to use it to transfer between boxes
Mikkel
Well, you will probably want an entry something like this:
/dev/sda1 /mnt/Portable ext2
pamconsole,exec,noauto 0 0
or
/dev/sda1 /mnt/Portable auto
umask=0,user,iocharset=iso8859-1,sync,codepage=850,noauto,exec,users 0 0
The first will tie ownership of the drive to the user logged into the
console. The second will tie it to who mounts the drive. The first only
works with ext2 file systems, the second with any type of file system.
You can run "man mount" for a full discription of the options.
Normaly, I would advise creating directories on the drive that users can
write to, but you may run into problems with the UID not matching from
one system to another. This way, the ownership of the drive is set when
it is mounted instead. With both commands, you will have to mount the
drive manualy.
Another way you could do it is to remove the entry in /etc/fstab, boot
with the drive unplugged, and plug it in when you want it. The drive
should be detected, a mount point created, and ownership set to the user
logged in at the console automaticly for you. In 2006, HAL does this for
you.
Mikkel
--
Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!
____________________________________________________
Want to buy your Pack or Services from Mandriva?
Go to http://store.mandriva.com
Join the Club : http://www.mandrivaclub.com
____________________________________________________