From owner-freebsd-arm@freebsd.org Mon Oct 28 00:50:06 2019 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E7CF315E345 for ; Mon, 28 Oct 2019 00:50:06 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (www.zefox.net [50.1.20.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "www.zefox.org", Issuer "www.zefox.org" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 471bj96Kh6z4LPP for ; Mon, 28 Oct 2019 00:50:05 +0000 (UTC) (envelope-from fbsd@www.zefox.net) Received: from www.zefox.net (localhost [127.0.0.1]) by www.zefox.net (8.15.2/8.15.2) with ESMTPS id x9S0nhkB000973 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sun, 27 Oct 2019 17:49:44 -0700 (PDT) (envelope-from fbsd@www.zefox.net) Received: (from fbsd@localhost) by www.zefox.net (8.15.2/8.15.2/Submit) id x9S0nhpv000972; Sun, 27 Oct 2019 17:49:43 -0700 (PDT) (envelope-from fbsd) Date: Sun, 27 Oct 2019 17:49:42 -0700 From: bob prohaska To: "O'Connor, Daniel" Cc: freebsd-arm@freebsd.org, bob prohaska Subject: Re: Permissions when moving storage devices between hosts Message-ID: <20191028004942.GA932@www.zefox.net> References: <20191026163920.GA38958@www.zefox.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-Rspamd-Queue-Id: 471bj96Kh6z4LPP X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of fbsd@www.zefox.net has no SPF policy when checking 50.1.20.27) smtp.mailfrom=fbsd@www.zefox.net X-Spamd-Result: default: False [0.13 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.88)[-0.879,0]; WWW_DOT_DOMAIN(0.50)[]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; IP_SCORE(0.08)[ip: (0.33), ipnet: 50.1.16.0/20(0.16), asn: 7065(-0.04), country: US(-0.05)]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[zefox.net]; AUTH_NA(1.00)[]; NEURAL_HAM_LONG(-0.97)[-0.969,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:7065, ipnet:50.1.16.0/20, country:US]; MID_RHS_MATCH_FROM(0.00)[]; MID_RHS_WWW(0.50)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Oct 2019 00:50:07 -0000 On Mon, Oct 28, 2019 at 10:33:23AM +1030, O'Connor, Daniel wrote: > > > > On 27 Oct 2019, at 03:09, bob prohaska wrote: > > The plan was to re-run the bonnie test on the second host to see if the > > choice of host made much difference. Alas, after mounting the card, all > > owners/groups are freebsd/freebsd and I can't get permission to write > > any files, at least as a regular user. The usernames are the same on > > both hosts and I'm hesitant to try mucking about with ownerships. > > It does not seem possible to simply add world-write permissions to the > > test directory using chmod +w as root. > > Is it mounted read/write? > ie show the output of 'mount'. > No, I wanted to add write permission, which failed silently even when chmod was run by root. . > Also note that the filesystem only stores user IDs not user names. > > ie you might have a user called 'freebsd' on two systems but with different IDs and if you move an FS between them you can have issues. > That was probably the mistake I made. Like usernames, but unlike IDs. > That said, root should be able to change the permissions (or just write since being root skips permission checks). If it can't then it seems more like it isn't mounted read/write for whatever reason (write protect tab on the SD card set by accident?) > In the end, it was enough to just chown the one directory I needed to write to. I didn't want to run the disk test as root Thanks for writing, bob prohaska