On Sat, 23 Mar 2013, Пламен Петров wrote:
Hello, list!
I'm trying to make a port for CRUX, but one of the packages has the requirement to be built as a regular, restricted, non-root user.
How should I go about this?
Can I add a temporary user to the system for the build purposes inside of Pkgfile and on the end - remove the user id?
Is there a better approach?
Thanks in advance for any ideas!
You could do that but when the package is later installed the files will end up with a userid that doesn't exist. The risk there is that later when you add another permanent user to the system they might end up owning the files installed by the package. There are several "almost" regular, restricted, non-root users already defined in /etc/password you could use to avoid that. Does the package build an installer that a regular user will run to install some files in the their home directory? That is a somewhat different situation. Need more details about what the package is. -Daryl