On Monday 01 March 2004 20:22, you wrote:
> On Monday 23 February 2004 16:49, Pete Doak wrote:
> > Hello:
> >
> > I'm having a problem mounting a second Hard Drive as a file
> > system accessable to my linux system.
> >
> > I can su to root, and use
> > 'mount /dev/hdb1 /mnt/hd'
> > and that works fine, except that only 'root' can access the
> > files and folders on the drive.
> >
> > If I try to mount the file system as anyother user, it tells me
> > 'only root can do that', which is understandable.
> >
> > Is there a way for root to mount a file system and designate a
> > user as the owner?
> >
> > If you need any more info, just ask, and I'll provide it
> > Thanks in advance
> > Pete Doak
>
Well Pete, it's all about permissions. Although Windows98 uses a 
FAT32 file system (vfat) that does not have such things as 
security, Linux tries to protect it by faking permissions. As 
allways there are several ways to accomplish your wish :

In your file "/etc/fstab" you will find a stanza for hdb1. At the 
end of that line, try to insert "umask=0", something like :

/dev/hdb1 /mnt/hd vfat iocharset=iso8859-1,umask=0,codepage=850 0 0

Of course, adjust it to your liking, but "umask=0" should fix it. 
It's equivalent to "chmod 777", but easier.

(I suppose you know how to edit this file as "root" - if not, ask 
again).

HTH

Kaj Haulrich
-- 
** Sent from a 100 % Microsoft-free computer **


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to