From owner-freebsd-questions@FreeBSD.ORG Thu Mar 22 11:02:03 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EAC0F106566B for ; Thu, 22 Mar 2012 11:02:03 +0000 (UTC) (envelope-from freebsd-questions@herveybayaustralia.com.au) Received: from mail.unitedinsong.com.au (mail.unitedinsong.com.au [150.101.178.33]) by mx1.freebsd.org (Postfix) with ESMTP id 9D1938FC12 for ; Thu, 22 Mar 2012 11:02:03 +0000 (UTC) Received: from laptop1.herveybayaustralia.com.au (laptop1.herveybayaustralia.com.au [192.168.0.182]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.unitedinsong.com.au (Postfix) with ESMTPSA id 402F65C22 for ; Thu, 22 Mar 2012 21:15:36 +1000 (EST) Message-ID: <4F6B06AA.3020804@herveybayaustralia.com.au> Date: Thu, 22 Mar 2012 21:02:02 +1000 From: Da Rock User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:7.0.1) Gecko/20111109 Thunderbird/7.0.1 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: about change file mode X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Mar 2012 11:02:04 -0000 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 :)