Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Mar 2012 21:02:02 +1000
From:      Da Rock <freebsd-questions@herveybayaustralia.com.au>
To:        freebsd-questions@freebsd.org
Subject:   Re: about change file mode
Message-ID:  <4F6B06AA.3020804@herveybayaustralia.com.au>
In-Reply-To: <CALe6D=vKfPoJ3B9KdRd3aRtgcnNfL3Y=J1%2BvwyAZ0wM0k92urA@mail.gmail.com>
References:  <CALe6D=vKfPoJ3B9KdRd3aRtgcnNfL3Y=J1%2BvwyAZ0wM0k92urA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 :)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F6B06AA.3020804>