Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Ubuntu Mid Server User Permissions

skp
Tera Expert

Hi guys,

 

I am trying to install a MID Server on Ubuntu and make it run as a non root user but I am getting the following issues during installation:

 

Could you please help me resolve this issue below?

 

Failed to access the script using an absolute path. Insufficient permissions may prevent the user "midserver_dev" from traversing one of the folders. Please check the following permissions:

drwxr-xr-x 19 root          root    4096 Mar  9 09:26 /

drwxr-xr-x  3 root          root    4096 Mar 14 11:07 //opt

drwxr-xr-x  3 root          root    4096 Mar 14 11:07 //opt/servicenow

drwxr-xr-x  3 midserver_dev midserver_dev 4096 Mar 14 11:07 //opt/servicenow/mid

drwxr-x--- 13 midserver_dev midserver_dev 4096 Mar 29 07:38 //opt/servicenow/mid/agent

drwxr-x---  4 midserver_dev midserver_dev 4096 Mar 29 07:38 //opt/servicenow/mid/agent/bin

 

These are the logs:

 

Validating the proxy details..
Validating proxy without credentials: 200
Validated Proxy host connection
Do you want to use Mutual Authentication? [Enter Y or N] : N
Validating the Instance URL...
Enter the username for mid user : midserver.dev
Enter the password for mid user:
Validating the Mid-user details...
Username and password are valid.
Do you want to enable Certificate Revocation? [Enter Y or N] : N
Enter the Mid Server Name [My_Linux_Mid_Server] : MidServer_DEV
Enter the unique name for the service to be created [mid] : MidServer_DEV
Checking for the uniqueness of the service name...
Enter the long name for the service [ServiceNow_MID_Server] : MidServer_DEV
Enter the Non-Root User Name to run this service : midserver_dev
*******************************************************************************************

 

    NOTE: A non-root user can manage a service only when the user has required privileges.
  For more information, refer https://hi.service-now.com/kb_view.do?sysparm_article=KB0815542

 

*******************************************************************************************
Enter yes for the below displayed prompt if you want to start the daemon with out any errors...
The agent directory is /opt/servicenow/mid/agent
Do you want to block all other user access and change the ownership of the entire agent directory at /opt/servicenow/mid/agent based on the mid.shconf_override settings (Enter yes or YES to confirm) ? yes
Block all other user access...
Change user ownership to midserver_dev ...
Change group ownership to nogroup ...
Failed to access the script using an absolute path. Insufficient permissions may prevent the user "midserver_dev" from traversing one of the folders. Please check the following permissions:

drwxr-xr-x 19 root          root    4096 Mar  9 09:26 /

drwxr-xr-x  3 root          root    4096 Mar 14 11:07 //opt

drwxr-xr-x  3 root          root    4096 Mar 14 11:07 //opt/servicenow

drwxr-xr-x  3 midserver_dev midserver_dev 4096 Mar 14 11:07 //opt/servicenow/mid

drwxr-x--- 13 midserver_dev midserver_dev 4096 Mar 29 07:38 //opt/servicenow/mid/agent

drwxr-x---  4 midserver_dev midserver_dev 4096 Mar 29 07:38 //opt/servicenow/mid/agent/bin

1 REPLY 1

Rahul Priyadars
Tera Sage

Failed to access the script using an absolute path. Insufficient permissions may prevent the user "midserver_dev" from traversing one of the folders. Please check the following permissions:---> Clearly a permission issue which is causing.

 

Either give user RWX permission on all these folder and try

Or Try Sudo Root for Installation if Root access is not given

 

Regards

RP