Tom Allender wrote:
> Hi,
>
> I'm having a bit of bother with mounting some vfat partitions on my
> machine. When the machine mounts the drives during booting all files and
> directories are given mode 0777! This is obviously not a Good Thing, it
> may be a secret underhand way of getting me to erase my Windows install by
> accident ;) This is happening even though the partitions are explicitly
> read-only in /etc/fstab.
Had the same problem myself with three different kernels (2.0.36, 2.2.13,
2.4.2) so not a specific kernel issue as such.
Didn't seem to matter what permissions were given to the mount point, or what I
put in /etc/fstab until I tried this:
/dev/hda3 /DOS vfat user,rw,uid=1000,gid=100
Mounting with my own specific UID and GID, plus allowing user mount/umount
seemed to do the trick (don't ask me why though).
All new directories are 755, and files are 644, so it's obeying the umask from
/etc/profile (didn't before)
Try it and see?
-- Regards,Sean King seanie@merciless.org.uk -------------------------------------------------------------------- http://www.lug.org.uk http://www.linuxportal.co.uk http://www.linuxjob.co.uk http://www.linuxshop.co.uk --------------------------------------------------------------------
This archive was generated by hypermail 2.1.3 : Thu 22 Nov 2001 - 13:09:57 GMT