From owner-freebsd-questions  Wed May 22 04:30:28 1996
Return-Path: owner-questions
Received: (from root@localhost)
          by freefall.freebsd.org (8.7.3/8.7.3) id EAA20152
          for questions-outgoing; Wed, 22 May 1996 04:30:28 -0700 (PDT)
Received: from eac.iafrica.com (slipper119223.iafrica.com [196.7.119.223])
          by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id EAA20142
          for <questions@freebsd.org>; Wed, 22 May 1996 04:30:18 -0700 (PDT)
Received: (from rnordier@localhost) by eac.iafrica.com (8.6.12/8.6.12) id NAA01801; Wed, 22 May 1996 13:27:26 +0200
From: Robert Nordier <rnordier@iafrica.com>
Message-Id: <199605221127.NAA01801@eac.iafrica.com>
Subject: Re: Dos partitions
To: martin@cimio.co.uk (Martin Miles)
Date: Wed, 22 May 1996 13:27:25 +0200 (SAT)
Cc: questions@freebsd.org, rnordier@mail.saix.net
In-Reply-To: <9605220828.AA23584@cimio.co.uk> from "Martin Miles" at May 22, 96 09:28:20 am
X-Mailer: ELM [version 2.4 PL24 ME8a]
Content-Type: text
Sender: owner-questions@freebsd.org
X-Loop: FreeBSD.org
Precedence: bulk

Martin Miles wrote:
  
> How do I change the ownership and/or the permissions of a DOS partition
> which is mounted under Free BSD ?

You can specify these when mounting the partition with mount_msdos(8):

   mount_msdos [-u uid] [-g gid] [-m mask] special node

If you have in mind changing these while the partition is mounted:
chown(8) has a limited effect (on the DOS 'read-only' flag) at a
file level

   chmod 777 /dos/config.sys

   -rwxr-xr-x  1 root  wheel    338 May 14 06:51 config.sys

   chmod 000 /dos/config.sys

   -r-xr-xr-x  1 root  wheel    338 May 14 06:51 config.sys

-- 
Robert Nordier