about change file mode
Da Rock
freebsd-questions at herveybayaustralia.com.au
Thu Mar 22 11:02:04 UTC 2012
On 03/22/12 20:44, Xavier FreeBSD questions wrote:
> Hi tot all,
>
> Why don't change the files mode ?
>
> casa# mount -t msdosfs /dev/da0s1 /mnt/JetFlash\ Transcend\ 1GB/
> casa# cd /mnt/JetFlash\ Transcend\ 1GB/
> casa# ls -lh
> total 21940
> -r-xr-xr-x 1 xxavi wheel 16M 21 mar 00:12 COLOR.pdf
> -r-xr-xr-x 1 xxavi wheel 4,7M 21 mar 01:26 COLOR_1.pdf
> -r-xr-xr-x 1 xxavi wheel 124k 21 mar 02:13 COLOR_2.pdf
> -r-xr-xr-x 1 xxavi wheel 21k 21 mar 01:16 Untitled 1.pdf
> -r-xr-xr-x 1 xxavi wheel 9,3k 22 mar 00:17 Untitled 2.pdf
> -r-xr-xr-x 1 xxavi wheel 124k 21 mar 02:13 kscan_0002.jpeg.pdf
> -r-xr-xr-x 1 xxavi wheel 20k 21 mar 00:12 ocr.txt.pdf
> casa# chmod -x *
> casa# ls -l
> total 21940
> -r-xr-xr-x 1 xxavi wheel 17270757 21 mar 00:12 COLOR.pdf
> -r-xr-xr-x 1 xxavi wheel 4866360 21 mar 01:26 COLOR_1.pdf
> -r-xr-xr-x 1 xxavi wheel 127452 21 mar 02:13 COLOR_2.pdf
> -r-xr-xr-x 1 xxavi wheel 21829 21 mar 01:16 Untitled 1.pdf
> -r-xr-xr-x 1 xxavi wheel 9561 22 mar 00:17 Untitled 2.pdf
> -r-xr-xr-x 1 xxavi wheel 127452 21 mar 02:13 kscan_0002.jpeg.pdf
> -r-xr-xr-x 1 xxavi wheel 20513 21 mar 00:12 ocr.txt.pdf
> casa#
For starters the filesystem is FAT with no real sense of user
permissions, what does ls -l /dev/da0* say? This should be determined by
the devfs.rules.
This should determine the permissions of the files on the device, and I
doubt that they can be changed or manipulated once mounted (what would
be the point?). Please correct me if I'm wrong though :)
More information about the freebsd-questions
mailing list