NIM uses Apache as it’s web server to deliver content to browsers as well as interact with project servers. In some studio environments there may be a need to run the apache service as a different user with unique access permissions. This user will require permissions to read and write to any project server you have mounted on the NIM VM. This following example will set the apache server to use the existing user NIM. You can set this to any user/group you create.
To redefine the user that the apache server runs as, open the /etc/apache2/envars file on the NIM VM and edit the following lines:
Replacing “www-data” with the desired user, in this case “nim”.
The final steps will be to take user and group ownership of /var/www/html as well as your NIM media location.
sudo chown -R nim /var/www/html/*
sudo chgrp -R nim /var/www/html/*
sudo chown -R nim /n/media
sudo chgrp -R nim /n/media
Now reboot the server:
When the NIM VM restarts the apache server will be using the updated user account for all file system interaction.