Reset Search
 

 

Article

Cannot modify file uploaded to the switch using SFTP.

« Go Back

Information

 
TitleCannot modify file uploaded to the switch using SFTP.
Symptoms
Cannot modify file uploaded to the switch using SFTP.
linux$ sftp admin@10.152.0.35
admin@10.152.0.35's password: 
Connected to 10.152.0.35.
sftp> put -p test.pol
Uploading test.pol to /config/test.pol
test.pol    100%   42    12.5KB/s   00:00    
sftp> bye
linux$ 

X460G2-24x-10G4[R1:U8].2 # ls
-rw-r--r--    1 admin    admin         149 Feb 20 14:58 default.xsf
drw-r--r--    2 root     root         1024 Feb 20  2015 dhcp
drw-r--r--    2 root     root         1024 Jun 25  2015 lost+found
-rw-rw-rw-    1 root     root       306993 Mar  6 14:33 primary.cfg
-rw-r--r--    1 root     root           42 Mar  6 14:27 test.pol
drwxr-xr-x    2 root     root         1024 Mar  1 16:37 vmt

 1K-blocks      Used Available Use%
    181576      5970    175606   3%

X460G2-24x-10G4[R1:U8].3 # edit policy test.pol
entry test-pol {
 if {}
 then {permit;}
}
~
~
"test.pol" File is read only
Environment
  • EXOS 15.x, 16.x, 21.x
  • All EXOS platforms
Cause
This is because of xos0067280: when try to upload file to the switch using SFTP such file gets UID:GID of root:root and file mode of 644 which prevents modification of this file by the user "admin".
Resolution
Upgrade to EXOS version where xos0067280 is fixed.
How do I search release notes for known issues?

As a workaround try to download file from switch itself:
* X460G2-24x-10G4[R1:U8].5 # ls test1.pol
ls: test1.pol: No such file or directory
 
1K-blocks      Used Available Use%
    121824      3924    117900   3%
* X460G2-24x-10G4[R1:U8].6 # scp admin@10.68.9.41:/tftp/admin/test1.pol test1.pol
Fetching /tftp/admin/test1.pol to /config/test1.pol
/tftp/admin/test1.pol                         100%   49     0.1KB/s   00:00
* X460G2-24x-10G4[R1:U8].7 # ls test1.pol
-rw-r--r--    1 admin    admin          49 Mar  8 18:04 test1.pol
 
1K-blocks      Used Available Use%
    121824      3928    117896   3%
Additional notes

Feedback

 

Was this article helpful?


   

Feedback

Please tell us how we can make this article more useful.

Characters Remaining: 255