-----BEGIN PGP SIGNED MESSAGE-----

On 22 Aug 1999, John Hasler wrote:

> John Foster writes:
> > Just a word of caution. Linux will read and write to all the windows
> > files, but it will only do so as root because the entire windows drive
> > has the permissions set by default to root on everything.
> 
> The Windows files have no permissions or ownership, so linux fakes it by
> giving every file on the Windows partition the permissions and ownership of
> the mount point.  Just chmod the mount point to the permissions you want
> the Windows files to have.

IIRC, this is incorrect. The owner/group of the filesystem is by default
set to the uid and gid of the mounting process (e.g. if you mount as
root.root, the owner/group will be root.root no matter what the ownership
of the mountpoint). The permissions are determined by the umask of the
mounting process.

These defaults can be changed easily enough. "mount -o
uid=100,gid=100,umask=007 /dev/hdb1 /mnt/dos" would set the owner.group to
whichever user has uid 100 and whichever group has gid 100, and the
permissions to rwxrwx---. Adding the noexec option would remove execute
permissions on files, setting them to rw-rw----. You could also put these
options in /etc/fstab.

man mount for more info.

- -- 
  finger for PGP public key.

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: noconv

iQCVAwUBN8A5xr7M/9WKZLW5AQF3+wP/YaeVOXGaoso9VP24vYINckMaKfPpM5TC
gbU00j8zjxN655lX+Bwf2cw/EtLY5tPjGxQjgNJ9MmamslTuLew5dljw4kSU0Oir
aveibQZD2mEiywH4nnPMp5mu9n6UGZuu3cE6TvpChUIJBZH9uA8R/6BxDlEUkaGe
QDiT4LzSy9A=
=4zwd
-----END PGP SIGNATURE-----

Reply via email to