From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Date: Thu, 11 Jun 2020 07:46:39 +0200 From: Michael Olbrich Message-ID: <20200611054639.GM9599@pengutronix.de> References: <20200610093524.GG4898@develop-10-146> <20200610114225.GH4898@develop-10-146> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200610114225.GH4898@develop-10-146> Subject: Re: [ptxdist] Hard-coded directory permissions List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: Nico Lastzka , ptxdist@pengutronix.de On Wed, Jun 10, 2020 at 01:42:25PM +0200, Nico Lastzka wrote: > On Wed 10/06/20 11:32, Bruno Thomsen wrote: > > > From: ptxdist on behalf of Nico Last= zka > > > Sent: Wednesday, June 10, 2020 11:35 > > > To: ptxdist@pengutronix.de > > > Subject: [ptxdist] Hard-coded directory permissions > > > = > > > Hi, > > > = > > > I ran into a problem with the latest ptxdist 2020.06 when trying to i= nstall an ssh key to > > > "/root/.ssh/authorized_keys". > > > = > > > = > > > Here, the "image-enhancements rule" contains the following code which= breaks the image creation: > > > = > > > =A0=A0=A0=A0 @$(call install_copy, image_enhancements, 0, 0, 0400, $(= PTXDIST_PLATFORMCONFIGDIR)/access/key-develop_id_ed25519.pub, /root/.ssh/au= thorized_keys ) > > = > > I think you need to create the parent directory first with correct perm= issions. > > = > > @$(call install_copy, image_enhancements, 0, 0, 0400, /root/.ssh) > > = > = > Already tried that without success. You need to explicitly create the directory, the error complains about, with the correct permissions: @$(call install_copy, image_enhancements, 0, 0, 0700, /root) Michael -- = Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@p= engutronix.de