cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
13672
Views
0
Helpful
6
Replies

Permission denied. Cannot overwrite existing file.

Nexus 7000 :

 

Need urgent help if any one having any idea. We are in the process of upgrading the switch. Image copied to Active Supervisor Engine. We are trying to copy from active to standby and getting below error. Any help really appreciated.

 

 

xxxx# copy bootflash:/n7000-s2-kickstart.6.2.20.bin bootflash://sup-2/

Permission denied. Cannot overwrite existing file.

xxxx# copy bootflash:/n7000-s2-dk9.6.2.20.bin bootflash://sup-2/

Permission denied. Cannot overwrite existing file.

xxxx#

1 Accepted Solution

Accepted Solutions

Solution :

 

As we were doing ISSU, manually copy to standby SUP was actually not required. Copied was done by Active Sup to Standby Sup part of upgrade process.

View solution in original post

6 Replies 6

Hello,

 

check if the below applies:

 

Permissions for file system access should be based on Nexus RBAC
CSCud28770
Description
Symptom:

Users with admin role are getting "Permission denied" when trying to copy files to a directory on bootflash:

Nexus7k# copy bootflash:testfile testdir
file error
Destination: Permission denied

Conditions:

Users on a Nexus switch can run into this situation when the directory on bootflash: had initially been created by a different username via a recursive SCP copy ("scp -r") or via SFTP from a source PC/server. Only the username who copied the directory via SCP/SFTP is able to copy new files into the directory, even though other users might have the same role.

This enhancement is filed to make sure that file access on Nexus follows Role Based Access Control and does not depend on specific usernames.

Workaround:

Workaround when you run into this situation:
- Remove and recreate the directory on bootflash from the nexus CLI.

Workaround to prevent this situation:
- Since SCP/SFTP keep the permissions of the source file, you can change the permissions to drwxrwxrwx before copying it over to the Nexus. With these permissions anyone who has an appropriate Nexus Role will have access.
Customer Visible

Notifications

Save Bug

Open Support Case

Solution :

 

As we were doing ISSU, manually copy to standby SUP was actually not required. Copied was done by Active Sup to Standby Sup part of upgrade process.

!-----------------------------------------------

configure terminal
!
feature bash-shell
!
exit

!-----------------------------------------------

run bash
su
chmod -R 777 /bootflash
exit
exit

!-----------------------------------------------

Tried this but it is asking for password when I try to 'su' command.
May I know what could be the password for it?

While trying 'su' command it is asking for password

What could be the password for it?

Hi @tdoellma, i was wondering what chmod -R 777 /bootflash do?
i encountered this problem but in my case i cannot copy from usb to bootflash. it says exactly:

8F-MKT-N9318-BORDERLEAF-1# copy usb1:nxos64-cs.10.2.6.M.bin bootflash:

file error
Destination: Permission denied

I'm thinking if this fix of yours can solve my case. Thank you! 

Review Cisco Networking for a $25 gift card