RedHat 7 (and 6) servers with multiple application servers (shared binaries).
We set up separate user accounts when adding applications servers with $HOME = appserver_root. The installation however demands that the target directory does not exist.
- Create the user without creating the home directory
- Install the server into (and creating) the home directory
- Reset the permissions of the home directory
This process will not set up the skeleton files, i.e. copy /etc/skel/
We can simply copy /etc/skel/.*, but is there a tooled way - command - which will do this?
I'd prefer using a standard tool instead of making a guess, or parsing /etc/default/useradd for the correct SKEL path.