On Sat, 19 Jun 1999, Mursalin wrote:

>     i have mounted my fat pertion. for that purpose i added some lines
in
> /etc/fstab. they all works well. but the problem is that only root can
write
> to that partitions.
>     i want that users have write permission on a perticular directory
of the
> mounted partition.
>     can i do that? how?

No, you can't.  There is no structure in a fat filesystem to record
permissions, so you have to assign permission to the whole filesystem
when you mount it, either with options to the mount command, or with
options in the fstab entry.  To allow any user to write any directory on
the partition, use umask=0; to allow only users in group x to write on
it use gid=x,umask=2.  To allow only user y to write on it,
uid=x,umask=22.  (this will make y the owner of the partition).

I had to read man fstab, man mount and man umask recursively to
understand this.  I don't see why you shouldn't :-)

You could overlay umsdos on the partition to give it a permissions
structure.  For this you need either umsdos support in the kernel or the
module umsdos.o.  I have never done it, but there is a UMSDOS-HOWTO. 
Probably, it is on your distro CD in docs/HOWTO or so, if not:

ftp://metalab.unc.edu/pub/Linux/docs/HOWTO/

>     thanks in advance.
> 
Lawson
          >< Microsoft free environment

This mail client runs on Wine.  Your mileage may vary.





___________________________________________________________________
Get the Internet just the way you want it.
Free software, free e-mail, and free Internet access for a month!
Try Juno Web: http://dl.www.juno.com/dynoget/tagj.

Reply via email to