about change file mode

2012-03-22 Thread Xavier FreeBSD questions
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  wheel16M 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  wheel21k 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  wheel20k 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  wheel127452 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  wheel127452 21 mar 02:13 kscan_0002.jpeg.pdf
-r-xr-xr-x  1 xxavi  wheel 20513 21 mar 00:12 ocr.txt.pdf
casa#

Thanks, see you.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: about change file mode

2012-03-22 Thread Polytropon
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, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: about change file mode

2012-03-22 Thread Da Rock

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  wheel16M 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  wheel21k 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  wheel20k 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  wheel127452 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  wheel127452 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 :)

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org