From owner-freebsd-questions@freebsd.org Thu Mar 2 12:56:45 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 39056CF242F for ; Thu, 2 Mar 2017 12:56:45 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [IPv6:2001:8b0:151:1:c4ea:bd49:619b:6cb3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id BFA485ED for ; Thu, 2 Mar 2017 12:56:44 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from zero-gravitas.local (unknown [85.199.232.226]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: m.seaman@infracaninophile.co.uk) by smtp.infracaninophile.co.uk (Postfix) with ESMTPSA id 040FED627 for ; Thu, 2 Mar 2017 12:56:38 +0000 (UTC) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=FreeBSD.org Authentication-Results: smtp.infracaninophile.co.uk/040FED627; dkim=none; dkim-atps=neutral Subject: Re: cpio - Cannot extract through symlink To: freebsd-questions@freebsd.org References: <20170302124428.GA70192@www.stare.cz> From: Matthew Seaman Message-ID: <5e3951af-1484-0089-cbe6-2349a77ab43f@FreeBSD.org> Date: Thu, 2 Mar 2017 12:56:30 +0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: <20170302124428.GA70192@www.stare.cz> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="UB1kfdrnmBoSCHuDwcSmxenGwEGhqjtOV" X-Spam-Status: No, score=0.9 required=5.0 tests=BAYES_00,RCVD_IN_RP_RNBL, RDNS_NONE,SPF_SOFTFAIL autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on smtp.infracaninophile.co.uk 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, 02 Mar 2017 12:56:45 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --UB1kfdrnmBoSCHuDwcSmxenGwEGhqjtOV Content-Type: multipart/mixed; boundary="5wsNJEqbG3tJ7cIxsgQf37Eqo4DeD8BWk"; protected-headers="v1" From: Matthew Seaman To: freebsd-questions@freebsd.org Message-ID: <5e3951af-1484-0089-cbe6-2349a77ab43f@FreeBSD.org> Subject: Re: cpio - Cannot extract through symlink References: <20170302124428.GA70192@www.stare.cz> In-Reply-To: <20170302124428.GA70192@www.stare.cz> --5wsNJEqbG3tJ7cIxsgQf37Eqo4DeD8BWk Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 2017/03/02 12:44, Jan Stary wrote: > but I would very much like to avoid the unportable --insecure. > How is /tmp/foo supposed to get copied to $HOME 'via symlink' anyway? > Am I missing something obvious? By default, there is a symlink from /home to /usr/home. I'm not entirely sure why -- historical reasons, probably. You can mount home directories directly as /home -- this works well, and it's how the system seems to be expecting things to be laid out. If you're on ZFS, it's fairly easy to just remove the symlink at /home and then rename ZFSes and play with mountpoints and various other properties to get /home directly mounted. For UFS, so long as you have a separate partition for /usr/home, it's doable to re-arrange things in a similar way, but remember to update /etc/fstab appropriately. Or if you just want your cpio command to work, specify the destination as '/usr/home/hans' Cheers, Matthew --5wsNJEqbG3tJ7cIxsgQf37Eqo4DeD8BWk-- --UB1kfdrnmBoSCHuDwcSmxenGwEGhqjtOV Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQJ8BAEBCgBmBQJYuBaGXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQxOUYxNTRFQ0JGMTEyRTUwNTQ0RTNGMzAw MDUxM0YxMEUwQTlFNEU3AAoJEABRPxDgqeTnfjkP/2/yA77XJExThTHGiutfd7g+ zQhgV+Lf5dQEPwiJVfpMOdQ0V73L6z24EuC/hgZkRQ+dYnXce5fhcHZovqFyiA8u v+hMsndbncaj2+AHnQeKSL8T96Fiog2pHbqQROooosofBaT0SUe1fit4ZsKU8l/q ggX3dMvNOKsn8YnDa6V5knXx4qSxPW1nZiJzBqcuV7/nJs9tVthLx8uL2j5O/aiN CbZATMJsURwPvOv00cTl4+ObRk+tHDxIWeZZBvrPcOVZA8GnH6MCWtk4RWH5BPxn 1TnZQ22B47OnDfY64bEPd1KhgW69e1j9dOf7pIwSVTuBV/AKYb/y8+szoaFkTCyf 1Xi85OIZaoQIbwKpwIN/TdKuPknVi2grQqVn7leoc52GyHb84yTS3QCdhmwtE/D5 wtTZMinRUYS4yxn0jJY21YGQes9QVwUtmIZDBuB6NuYIXtC9rLLYo4I2QLi9pswY u1JSM7hgVIZNmEVibnh8vzLwkGPEEyStdKifU+bttaKngEwElH/y+WyAvFqbOG8u hNszuYDcAg5DOqVBRJUsuOYdWZTRUadFzCVTzd7sinYdLPaFvIVD4qee8lgGoCfV 9ULeRfeOsDTGB1I6Thn36AUwfegZzkfKOvzGLcgZyKK1lG+5bEAEs9tIathQ6NRI wDsHYjbbMcOnU+E/+sY3 =nWel -----END PGP SIGNATURE----- --UB1kfdrnmBoSCHuDwcSmxenGwEGhqjtOV--