Create user for Backup and Restore

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
sandeepatil
Posts: 211
Joined: Tue Dec 27, 2016 3:12 am

Create user for Backup and Restore

Post by sandeepatil »

We are not using root user for Backup and Restore, due to security policy.

Need to create user with only require permissions, can you share user permissions for Backup and Restore.
dwasswa

Re: Create user for Backup and Restore

Post by dwasswa »

Hi @sandeepatil,

Are you trying to run the backup and restore script manually or in the gui or are you trying to schedule this backup and restore script?

Also, run the command below to see the permissions on the backup and restore scripts.....

Code: Select all

 ll | grep backup_xi.sh
and

Code: Select all

 ll | grep restore_xi.sh
Please also look at the doc below on Managing Permissions
https://assets.nagios.com/downloads/nag ... Rights.pdf
sandeepatil
Posts: 211
Joined: Tue Dec 27, 2016 3:12 am

Re: Create user for Backup and Restore

Post by sandeepatil »

Hi,

We are not using GUI, we are running the script manually (cron also) and script are modified as per our environment, path of files/directory's are not as default.

I am not taking about backup script file permissions and XI user permissions, this is about mariadb user permissions (Default is root) used for taking backup of databases and restore it.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Create user for Backup and Restore

Post by dwhitfield »

You will need to be root if you want things other the XI-specific tables. The other users you can find in your config.inc.php file, but by default those users are nagiosxi, ndoutils, and nagios. You could just use those users. Alternatively, you could look up the grant permissions of those users for your new single user.
sandeepatil
Posts: 211
Joined: Tue Dec 27, 2016 3:12 am

Re: Create user for Backup and Restore

Post by sandeepatil »

We have created user with different permission, its working for backup and restore.

Please close this thread.
kyang

Re: Create user for Backup and Restore

Post by kyang »

Sounds good! I'll be closing this thread!

If you have any more questions, feel free to create another thread.

Thanks for using the Nagios Support Forum!
Locked