From owner-freebsd-arm@freebsd.org Mon Oct 28 00:26:19 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 B385115D601 for ; Mon, 28 Oct 2019 00:26:19 +0000 (UTC) (envelope-from darius@dons.net.au) Received: from ipmail03.adl2.internode.on.net (ipmail03.adl2.internode.on.net [150.101.137.141]) by mx1.freebsd.org (Postfix) with ESMTP id 471b9j3Zhgz4Kb9 for ; Mon, 28 Oct 2019 00:26:16 +0000 (UTC) (envelope-from darius@dons.net.au) Received: from unknown (HELO midget.dons.net.au) ([118.211.86.117]) by ipmail03.adl2.internode.on.net with ESMTP; 28 Oct 2019 10:56:13 +1030 Received: from midget.dons.net.au (localhost [127.0.0.1]) by midget.dons.net.au (8.15.2/8.15.2) with ESMTPS id x9S0Pxv0015523 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Mon, 28 Oct 2019 10:56:06 +1030 (ACDT) (envelope-from darius@dons.net.au) Received: (from mailnull@localhost) by midget.dons.net.au (8.15.2/8.15.2/Submit) id x9S03S6D097446 for ; Mon, 28 Oct 2019 10:33:28 +1030 (ACDT) (envelope-from darius@dons.net.au) X-Authentication-Warning: midget.dons.net.au: mailnull set sender to using -f X-MIMEDefang-Relay-be813b1f1da6d6b27d681222cb70cc4f5b642383: 10.0.2.38 Received: from havok.dons.net.au ([10.0.2.38]) by ns.dons.net.au (envelope-sender ) (MIMEDefang) with ESMTP id x9S03NrA097444; Mon, 28 Oct 2019 10:33:28 +1030 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: Permissions when moving storage devices between hosts From: "O'Connor, Daniel" In-Reply-To: <20191026163920.GA38958@www.zefox.net> Date: Mon, 28 Oct 2019 10:33:23 +1030 Cc: freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <20191026163920.GA38958@www.zefox.net> To: bob prohaska X-Mailer: Apple Mail (2.3445.104.11) X-Spam-Score: -1 () No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=unavailable autolearn_force=no version=3.4.2 X-Scanned-By: MIMEDefang 2.83 on 10.0.2.1 X-Rspamd-Queue-Id: 471b9j3Zhgz4Kb9 X-Spamd-Bar: +++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of darius@dons.net.au has no SPF policy when checking 150.101.137.141) smtp.mailfrom=darius@dons.net.au X-Spamd-Result: default: False [3.93 / 15.00]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; HAS_XAW(0.00)[]; RWL_MAILSPIKE_GOOD(0.00)[141.137.101.150.rep.mailspike.net : 127.0.0.18]; DMARC_NA(0.00)[dons.net.au]; AUTH_NA(1.00)[]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_MEDIUM(0.72)[0.720,0]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[141.137.101.150.list.dnswl.org : 127.0.5.0]; NEURAL_SPAM_LONG(0.94)[0.943,0]; R_SPF_NA(0.00)[]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:4739, ipnet:150.101.0.0/16, country:AU]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(0.77)[ip: (0.05), ipnet: 150.101.0.0/16(2.50), asn: 4739(1.28), country: AU(0.01)] 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:26:19 -0000 > 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=20= > test directory using chmod +w as root. =20 Is it mounted read/write? ie show the output of 'mount'. 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 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?) -- Daniel O'Connor "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum