Copy backup file to "store/backups/nagiosxi" Permission Denied

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
nhood
Posts: 3
Joined: Tue Feb 25, 2020 1:50 pm

Copy backup file to "store/backups/nagiosxi" Permission Denied

Post by nhood »

Hi folks, I am migrating my server (v2024R1.0.2) from CentOS 7 to 9. I created a backup and moved the backup file to my home directory on the new server. When i try to copy it into store/backups/nagiosxi I get permission denied. I have tried everything to allow myself permission to move the file but nothing is working. Any suggestions?
DoubleDoubleA
Posts: 123
Joined: Thu Feb 09, 2017 5:07 pm

Re: Copy backup file to "store/backups/nagiosxi" Permission Denied

Post by DoubleDoubleA »

Hi @nhood,

Can you paste the terminal showing the commands you ran and the results? It is challenging to guess what may or may not be included in your use of "everything."

Aaron
nhood
Posts: 3
Joined: Tue Feb 25, 2020 1:50 pm

Re: Copy backup file to "store/backups/nagiosxi" Permission Denied

Post by nhood »

Hi Aaron,

Basically I was trying to give myself permissions to that folder by changing the chmod as well as chown.

[nhood-su@nagiosxi02 ~]$ chmod 777 /store/backups/nagiosxi
chmod: changing permissions of '/store/backups/nagiosxi': Operation not permitted
[nhood-su@nagiosxi02 ~]$ chown nagios:nagios /store/backups/nagiosxi
chown: changing ownership of '/store/backups/nagiosxi': Operation not permitted
[nhood-su@nagiosxi02 ~]$ chmod 755 /store/backups/nagiosxi
chmod: changing permissions of '/store/backups/nagiosxi': Operation not permitted


The directory permissions are as follows.

drwxr-xr-x. 5 root root 47 Sep 16 13:41 backups
nhood
Posts: 3
Joined: Tue Feb 25, 2020 1:50 pm

Re: Copy backup file to "store/backups/nagiosxi" Permission Denied

Post by nhood »

Please close this thread. I realized my mistake was not being root user.
DoubleDoubleA
Posts: 123
Joined: Thu Feb 09, 2017 5:07 pm

Re: Copy backup file to "store/backups/nagiosxi" Permission Denied

Post by DoubleDoubleA »

Excellent.
Locked