about change file mode

Polytropon freebsd at edvax.de
Thu Mar 22 11:00:41 UTC 2012


On Thu, 22 Mar 2012 11:44:18 +0100, Xavier FreeBSD questions wrote:
> Hi tot all,
> 
> Why don't change the files mode ?
> 
> casa# mount -t msdosfs /dev/da0s1 /mnt/JetFlash\ Transcend\ 1GB/

The answer is right in your first command: You're using
a MSDOS file system. That particular file system doesn't
know about rwx attributes. That's why files have +x by
default. You can not remove the x attribute from them
because they actually don't have one.

However, you can mask that "false-positive" attribute
by using the -m option. See "man mount_msdosfs" for
details. You can also use it in your /etc/fstab's
options field to make it a default.



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...


More information about the freebsd-questions mailing list