From owner-freebsd-questions@freebsd.org Thu Jan 19 22:14:39 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C6673CB8BE6 for ; Thu, 19 Jan 2017 22:14:39 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 99129173D for ; Thu, 19 Jan 2017 22:14:39 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.15.2/8.15.2) with ESMTPS id v0JMEcaF082272 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Thu, 19 Jan 2017 15:14:38 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.15.2/8.15.2/Submit) with ESMTP id v0JMEc7R082269 for ; Thu, 19 Jan 2017 15:14:38 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Thu, 19 Jan 2017 15:14:38 -0700 (MST) From: Warren Block To: "freebsd-questions@freebsd.org" Subject: Re: Unable to change ownership on USB device In-Reply-To: Message-ID: References: <447f5qloal.fsf@be-well.ilk.org> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (wonkity.com [127.0.0.1]); Thu, 19 Jan 2017 15:14:38 -0700 (MST) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jan 2017 22:14:39 -0000 On Thu, 19 Jan 2017, Gerard Seibert wrote: > On Thu, 19 Jan 2017 16:42:26 -0500, Lowell Gilbert stated: > >> carmel_ny writes: >> >>> I have several USB devices, all formatted with FAT32 or exFat. I can >>> mount them on my FreeBSD 11 machine; however, I cannot change the >>> file ownership on the device. I have a rsync script for backing up >>> the "/var/mail/vmail" and it subdirectories that are created by >>> dovecot. I cannot use the script to back up to the USB drive since >>> it cannot change the file ownership. >>> >>> I hope I am explaining this correctly. My question is how do I >>> change the ownership of a mounted USB drive formated with FAT32 or >>> exFat? >> >> It's an option to the mount command. >> If you're using the one from the base system, see "man mount_msdosfs". > > I configured the system to automount the drive. I suppose I could > just unmount it with "automount -fu" and them remount it via > mount_msdosfs. I will give it a try. There is an example of how to pass parameters through the main mount command in the mount man page. Search for "option=value".