cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
9964
Views
1
Helpful
3
Replies

IOS File permission (-rwx)

alexandremeslin
Level 1
Level 1

Hi all,

How can I change the IOS file attribute permission in flash (switch 2950/2960) from rwx to r-x in order to protect the IOS from being accidentally deleted.

Thanks in advanced.

Alexandre

3 Replies 3

Arumugam Muthaiah
Cisco Employee
Cisco Employee

Hi Alexandre,

You can change the permission for the image before you download from TFTP server (usually /tftpboot on a UNIX workstation)

For download operations, ensure that the permissions on the file are set correctly. The permission on the file should be world-read.

chmod is used to change permissions of a file in the UNIX environment.

        PERMISSION      COMMAND  

         U   G   W

        rwx rwx rwx     chmod 777 filename     

        rwx rwx r-x     chmod 775 filename

        rwx r-x r-x     chmod 755 filename

        rw- rw- r--     chmod 664 filename

        rw- r-- r--     chmod 644 filename

        U = User

        G = Group

        W = World

        r = Readable

        w = writable

        x = executable

        - = no permission

Refer:

http://datacreek.net/support/chmod_chart.html

Regards,

Aru

*** Please rate if the post is useful ***

Regards, Aru *** Please rate if the post useful ***

Hi Arumugam,

Thanks for your answer, but I'm asking about an IOS command to change file attributes already stored in the flash of a Cisco switch.

Alexandre

Hi Alexandre,

I didnt see any such kind of IOS command to change the file permission.

Regards,

Aru

*** Please rate if the post is useful ***

Regards, Aru *** Please rate if the post useful ***
Review Cisco Networking products for a $25 gift card