You can accomplish this using the uid, gid, and umask options
of mount. See the mount manpage (under the options for fat
section) for more details.


                        tw


On 07/19/2000 15:43 -0400, Hong F Du wrote:
>>      The /mnt/dosE is a fat16 file system which is on a ide hard drive from my
>>      dual-boot NT/Linux system.  It is setup as msdos type with auto translation 
>mode
>>      when mounted. As a root, I can rwx the mounted /mnt/dosE. Now I want it to be 
>read
>>      and writable for USERS group too, that makes problem appear.
>>      
>>      feng
>>      
>>      Tim Walberg wrote:
>>      
>>      > On 07/19/2000 14:28 -0400, Hong F Du wrote:
>>      > >>      Hi All,
>>      > >>
>>      > >>      I have a dos formatted drive /mnt/dosE, its permission is 761. When 
>it
>>      > >>      is not mount yet,  I can change its mode to 771. When I mount it, its
>>      > >>      permission is automatically changed back to 761. Once the drive is
>>      > >>      mounted, I cannot change its permission no matter what I try.
>>      > >>
>>      >
>>      > When the drive is not mounted, the chmod affects only the directory
>>      > on which the drive will be mounted. Once the drive is mounted, the
>>      > root inode of that filesystem overlays the directory (so you can't
>>      > get to the directory any more until the drive is unmounted), so chmod
>>      > would then affect that inode, and not the directory. Why you can't
>>      > change the mode on the filesystem's root inode, though I can't
>>      > say - are you mounting it read-only? Is it NTFS, which (usually)
>>      > can't be mounted read-write? A cdrom? A FAT filesystem which doesn't
>>      > relate directly to the Unix permission triad? Need more information
>>      > to analyze any further...
>>      >
>>      >                         tw
>>      >
>>      > >>      What is going on here? How should I make the permission change?
>>      > >>
>>      > >>      Thank you in advanced
>>      > >>
>>      > >>      feng
>>      > End of included message
>>      >
>>      > --
>>      > +--------------------------+------------------------------+
>>      > | Tim Walberg              | [EMAIL PROTECTED]       |
>>      > | 828 Marshall Ct.         | www.concentric.net/~twalberg |
>>      > | Palatine, IL 60074       |                              |
>>      > +--------------------------+------------------------------+
>>      >
>>      >   ------------------------------------------------------------------------
>>      >    Part 1.2Type: application/pgp-signature
End of included message



-- 
+--------------------------+------------------------------+
| Tim Walberg              | [EMAIL PROTECTED]       |
| 828 Marshall Ct.         | www.concentric.net/~twalberg |
| Palatine, IL 60074       |                              |
+--------------------------+------------------------------+

PGP signature

Reply via email to