From owner-freebsd-questions@freebsd.org Thu Jan 19 22:08:58 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 C6270CB8741 for ; Thu, 19 Jan 2017 22:08:58 +0000 (UTC) (envelope-from carmel_ny@outlook.com) Received: from SNT004-OMC2S50.hotmail.com (snt004-omc2s50.hotmail.com [65.54.61.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "*.outlook.com", Issuer "Microsoft IT SSL SHA2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 884721032 for ; Thu, 19 Jan 2017 22:08:58 +0000 (UTC) (envelope-from carmel_ny@outlook.com) Received: from NAM02-BL2-obe.outbound.protection.outlook.com ([65.55.90.72]) by SNT004-OMC2S50.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.23008); Thu, 19 Jan 2017 14:08:52 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=aDT7KWNrVxeTdvB9TIgvMUmxeP4WsBvY1qxWlLiNJF0=; b=tggLCS9hz3EO/YOFQ2lYN+aFJH5Msg01fotys1tNEgtyFxSNlNkoc6Jd6m9DRVYAsnRE5uV9IsU4iICTKiInqEa5ys+JNbbngObfqvSd2Z80qyMVpukAeM4kDNIbmHDL+DJNCC455tnj+ooB6H+3ptDH1JDsNhxmLVar8ThQIpfINcvR28qUKI0wHCQULHrpF1TJa7dr+xaxR+RIem160pgz7bBy09d5Dblkak9p4466gCbb/pFYUk2jqauK1El7BowbwfXsqkBtw5feGsGyuvNxHwR+sNy4zOTelsQm7+F/brrMYhxEnstKxP5fQzqyr1PHjFzXtRDoeGkGrvO5dQ== Received: from CY1NAM02FT005.eop-nam02.prod.protection.outlook.com (10.152.74.58) by CY1NAM02HT065.eop-nam02.prod.protection.outlook.com (10.152.75.155) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.803.8; Thu, 19 Jan 2017 22:08:51 +0000 Received: from CY4PR20MB1397.namprd20.prod.outlook.com (10.152.74.54) by CY1NAM02FT005.mail.protection.outlook.com (10.152.74.117) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.803.8 via Frontend Transport; Thu, 19 Jan 2017 22:08:51 +0000 Received: from CY4PR20MB1397.namprd20.prod.outlook.com ([10.171.167.147]) by CY4PR20MB1397.namprd20.prod.outlook.com ([10.171.167.147]) with mapi id 15.01.0845.014; Thu, 19 Jan 2017 22:08:51 +0000 From: Gerard Seibert To: "freebsd-questions@freebsd.org" Subject: Re: Unable to change ownership on USB device Thread-Topic: Unable to change ownership on USB device Thread-Index: AQHScpp1LI2HQFfU/EGy6KPVU0zmEA== Date: Thu, 19 Jan 2017 22:08:51 +0000 Message-ID: References: <447f5qloal.fsf@be-well.ilk.org> In-Reply-To: <447f5qloal.fsf@be-well.ilk.org> Reply-To: "freebsd-questions@freebsd.org" Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: freebsd.org; dkim=none (message not signed) header.d=none;freebsd.org; dmarc=none action=none header.from=outlook.com; x-incomingtopheadermarker: OriginalChecksum:B5D0344345F3F31F230968738A30C4A512CC841F866C3CA56651CB0FAF616B0C; UpperCasedChecksum:534485AAAEE1DC325387CEDCE9864C6CE018AA6C2176A3C3B999C6A044AB3410; SizeAsReceived:7520; Count:37 x-ms-exchange-messagesentrepresentingtype: 1 x-incomingheadercount: 37 x-eopattributedmessage: 0 x-microsoft-exchange-diagnostics: 1; CY1NAM02HT065; 7:4sN/VOf6H8whMMCK9uNkuCe2f1vsHLdHrbb7Ptunkj7/KljrCICSf1yd/Y2tRUagT5IjPpetPC2zyAiIeEIlrL5W8D5rLH9D7mWdKtyl0ZlHDTbRK1T8jmT2rJ5M1GmykKDAQ+DuDcAfnOmTVt/DsxuSMsUgfzAMWiYZrZ5n9FPbo2nIMeUyLZLqGoAv8TJe0y908rFpF30iCt7btNzXBGO43F0XNrg1IvZW7Nge2YHmFagv2M0xqEF0v8/V1bcnM67iv71FUuZXo5vt8JCBmsapFHpsgKexHumE4Bype+qQryHXjBWc1gG9WL3K2hTVE5sUkKI5TAhkJAYQQgpYolCk7vlk1wzOjFbK1NDU7yPbQnlFOhDHbRcfiVzZSXt3Y3y7tMf2dyfR+oIVhgPUVP4upJJkH/3z5apASBYsIrN/y0SNvyJaZipPmIbuPh311mYJfjOqO6MATvXqrXbBCA== x-forefront-antispam-report: CIP:10.152.74.54; CTRY:; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(98900005); DIR:OUT; SFP:1102; SCL:1; SRVR:CY1NAM02HT065; H:CY4PR20MB1397.namprd20.prod.outlook.com; FPR:; SPF:None; LANG:en; x-ms-office365-filtering-correlation-id: e0a084fc-b097-4b3b-19c9-08d440b7bfe2 x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(1601124038)(5061506344)(5061507293)(1603103113)(1603101340)(1601125047)(1701031023); SRVR:CY1NAM02HT065; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(444111334)(444112120)(432015012)(82015046); SRVR:CY1NAM02HT065; BCL:0; PCL:0; RULEID:; SRVR:CY1NAM02HT065; x-forefront-prvs: 0192E812EC spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Jan 2017 22:08:51.6808 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1NAM02HT065 X-OriginalArrivalTime: 19 Jan 2017 22:08:52.0680 (UTC) FILETIME=[9E81B480:01D272A0] 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:08:58 -0000 On Thu, 19 Jan 2017 16:42:26 -0500, Lowell Gilbert stated: > carmel_ny writes: >=20 > > 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? =20 >=20 > 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. --=20 Carmel