Copy backup file to "store/backups/nagiosxi" Permission Denied
Copy backup file to "store/backups/nagiosxi" Permission Denied
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?
-
- Posts: 123
- Joined: Thu Feb 09, 2017 5:07 pm
Re: Copy backup file to "store/backups/nagiosxi" Permission Denied
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
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
Re: Copy backup file to "store/backups/nagiosxi" Permission Denied
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
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
Re: Copy backup file to "store/backups/nagiosxi" Permission Denied
Please close this thread. I realized my mistake was not being root user.
-
- Posts: 123
- Joined: Thu Feb 09, 2017 5:07 pm