Date: Sat, 16 Dec 2017 22:55:06 +0200 From: Dmytro Bilokha <dmytro@posteo.net> To: Miroslav Lachman <000.fbsd@quip.cz> Cc: Kevin Oberman <rkoberman@gmail.com>, FreeBSD Ports ML <freebsd-ports@freebsd.org> Subject: Re: Setting system user home directory Message-ID: <20171216205506.GA97922@wstan> In-Reply-To: <5A358672.90108@quip.cz> References: <20171216094058.GA37778@wstan> <5A351515.1080805@quip.cz> <20171216135919.GA17551@wstan> <5A352BA5.9070403@quip.cz> <20171216170411.GA85559@wstan> <CAN6yY1u-RumzVkAe1TGvR64=SYuY6c-FptW4GnsMX344oyk%2BxA@mail.gmail.com> <20171216185317.GA87289@wstan> <20171216200959.GA97697@wstan> <5A358672.90108@quip.cz>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Dec 16, 2017 at 09:47:46PM +0100, Miroslav Lachman wrote: >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 <dmytro@posteo.net> > >[...] > >>>> 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 Thanks, Miroslav! It is useful advice. I'll proceed with pkg-message approach. -- Dmytro Bilokha dmytro@posteo.net +38-050-607-41-43
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20171216205506.GA97922>