Date: Sun, 10 Nov 2013 20:59:37 +0100 From: olli hauer <ohauer@gmx.de> To: FreeBSD Ports <freebsd-ports@freebsd.org> Cc: Aryeh Friedman <aryeh.friedman@gmail.com> Subject: Re: Staging break user account modification in post-install Message-ID: <527FE5A9.1010002@gmx.de> In-Reply-To: <CAGBxaXmhQ4J=YUsnKrgjn%2Bu=yxBU4MZhrKtR9wO5kOSwDx6N8Q@mail.gmail.com> References: <CAGBxaXmhQ4J=YUsnKrgjn%2Bu=yxBU4MZhrKtR9wO5kOSwDx6N8Q@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2013-11-10 20:40, Aryeh Friedman wrote: > post-install is now called *BEFORE* users are created (before staging was > added it was after)... looking at bsd.port.mk there seems no reasonable > target that replaces post-install for this purpose. Namely I need to lock > the user account that was created and assign a default password to it. > This is what I had that used to work: > > post-install: > echo password|pw usermod user -h 0 2>/dev/null > pw lock user Is the account always locked? If yes what is the difference to create a user without any password and assigning '/usr/sbin/nologin' as shell? What happens to the account without staging if installed from a package? Without pkg-install script the account keeps unmodified or even is not created ... In case you use a pkg-install script, then it will be executed only during installation and stage is one step before. -- olli
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?527FE5A9.1010002>