How to change OS user
The following instruction is applicable when you need to change an OS user, for example, from workfusion to workfusionnew belonging to workfusionnew_GROUP.
To change an OS user, act as follows:
As the workfusion user, run the following command:
$ wfmanager stop allAs a root user, kill all processes that run from the installation directory:
$ ps -ef | grep /opt/workfusion $ kill -9 <PID>Add a new user to
/etc/cron.allow:$ sudo cat <<EOF >> /etc/cron.allow workfusionnew EOFIn
config.yml, change the following lines:wf_user: workfusionnew wf_group: workfusionnew_GROUPRun the preinstall script:
./install preinstall $ROLE_NAME #app,db, and so onChange all permissions to the
installdirectory for the workfusionnew user:$ chown -R workfusionnew :workfusionnew_GROUP /opt/workfusionRestart the server:
$ sudo rebootAfter the restart, check the running process as the workfusionnew user:
wfmanager status all