From owner-freebsd-questions@freebsd.org Fri Jan 20 00:18:36 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 E97DBCB585F for ; Fri, 20 Jan 2017 00:18:36 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from be-well.ilk.org (be-well.ilk.org [23.30.133.173]) by mx1.freebsd.org (Postfix) with ESMTP id C2E0C1C7B for ; Fri, 20 Jan 2017 00:18:36 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from lowell-desk.lan (router.lan [172.30.250.2]) by be-well.ilk.org (Postfix) with ESMTP id 8813E33C24; Thu, 19 Jan 2017 19:18:29 -0500 (EST) Received: by lowell-desk.lan (Postfix, from userid 1147) id 2ECF73981A; Thu, 19 Jan 2017 19:18:27 -0500 (EST) From: Lowell Gilbert To: Gerard Seibert Cc: "freebsd-questions\@freebsd.org" Subject: Re: Unable to change ownership on USB device References: <447f5qloal.fsf@be-well.ilk.org> Date: Thu, 19 Jan 2017 19:18:27 -0500 In-Reply-To: (Gerard Seibert's message of "Thu, 19 Jan 2017 22:08:51 +0000") Message-ID: <44o9z2h9d8.fsf@lowell-desk.lan> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain 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: Fri, 20 Jan 2017 00:18:37 -0000 Gerard Seibert writes: > 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. automount(8) uses mount(8), and can pass parameters to it. Do it by hand first, sure, to get the parameters correct, but automount can do this (via mount) if the user or group you need to set is always the same.