From owner-freebsd-ports@freebsd.org Sat Dec 16 20:47:51 2017 Return-Path: Delivered-To: freebsd-ports@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 76B39E8E8CB for ; Sat, 16 Dec 2017 20:47:51 +0000 (UTC) (envelope-from SRS0=PBBM=DM=quip.cz=000.fbsd@elsa.codelab.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 34A4F7275D for ; Sat, 16 Dec 2017 20:47:50 +0000 (UTC) (envelope-from SRS0=PBBM=DM=quip.cz=000.fbsd@elsa.codelab.cz) Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 2EBE028412; Sat, 16 Dec 2017 21:47:48 +0100 (CET) Received: from illbsd.quip.test (ip-86-49-16-209.net.upcbroadband.cz [86.49.16.209]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 0E24D2840C; Sat, 16 Dec 2017 21:47:47 +0100 (CET) Subject: Re: Setting system user home directory To: Dmytro Bilokha , Kevin Oberman Cc: FreeBSD Ports ML References: <20171216094058.GA37778@wstan> <5A351515.1080805@quip.cz> <20171216135919.GA17551@wstan> <5A352BA5.9070403@quip.cz> <20171216170411.GA85559@wstan> <20171216185317.GA87289@wstan> <20171216200959.GA97697@wstan> From: Miroslav Lachman <000.fbsd@quip.cz> Message-ID: <5A358672.90108@quip.cz> Date: Sat, 16 Dec 2017 21:47:46 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:42.0) Gecko/20100101 Firefox/42.0 SeaMonkey/2.39 MIME-Version: 1.0 In-Reply-To: <20171216200959.GA97697@wstan> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Dec 2017 20:47:51 -0000 Dmytro Bilokha wrote on 2017/12/16 21:10: > On Sat, Dec 16, 2017 at 08:53:17PM +0200, Dmytro Bilokha wrote: >> On Sat, Dec 16, 2017 at 10:48:34AM -0800, Kevin Oberman wrote: >>> On Sat, Dec 16, 2017 at 9:04 AM, Dmytro Bilokha [...] >>> Kevin Oberman, Part time kid herder and retired Network Engineer >>> E-mail: rkoberman@gmail.com >>> PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683 >> >> I've add following lines to the port's makefile: >> USERS= payara >> GROUPS= payara >> >> And user is created automatically during port installation process. > Guys, thanks for your help. I've managed to adjust user's homedir > using pkg-install script. Now I'll try to move everything writable > from /usr/local to /var (as Miroslav suggested), test and submit the new > port version. Ideally you should not silently change existing user account. There is possibility that user (sysadmin) made some tweaks (different UID, different home, shell etc.) and if your port will do some silent changes it can break some setup. Better way is to use this setting only on newly created user (fresh pkg install) or print pkg-message with instruction (command) what should user do to have this setup corrected to new port properties. Or maybe you can do this change interactively with user confirmation Y/N. Maybe create UPDATING entry. Just my $0.02 Miroslav Lachman