vty_read_config: failed to open configuration file Permission denied

 

 

  1. [root@kunpeng82 sdn-ip-topology]# zebra -d -f quagga-sdn.conf 
    vty_read_config: failed to open configuration file /root/ryu/SDN-IP-Ryu/sdn-ip-topology/quagga-sdn.conf: Permission denied
    can't open configuration file [quagga-sdn.conf]
    [root@kunpeng82 sdn-ip-topology]# ls -al
    total 44
    drwxr-xr-x. 3 root root 4096 Jul 12 11:03 .
    drwxr-xr-x. 5 root root 4096 Jun 23 01:56 ..
    drwxrwxrwx. 2 root root 4096 Jun 23 01:56 configs
    -rwxrwxrwx. 1 root root  315 Jun 23 01:56 quagga1.conf
    -rwxrwxrwx. 1 root root  315 Jun 23 01:56 quagga2.conf
    -rwxrwxrwx. 1 root root  315 Jun 23 01:56 quagga3.conf
    -rwxrwxrwx. 1 root root  316 Jun 23 01:56 quagga4.conf
    -rwxrwxrwx. 1 root root  883 Jun 23 01:56 quagga-sdn.conf
    -rwxrwxrwx. 1 root root 5259 Jun 23 01:56 quagga-test1.py
    -rwxrwxrwx. 1 root root  107 Jun 23 01:56 zebra.conf
    [root@kunpeng82 sdn-ip-topology]#
    [root@kunpeng82 sdn-ip-topology]# zebra -d -f quagga-sdn.conf 
    vty_read_config: failed to open configuration file /root/ryu/SDN-IP-Ryu/sdn-ip-topology/quagga-sdn.conf: Permission denied
    can't open configuration file [quagga-sdn.conf]
    [root@kunpeng82 sdn-ip-topology]# ls -al
    total 44
    drwxr-xr-x. 3 root root 4096 Jul 12 11:03 .
    drwxr-xr-x. 5 root root 4096 Jun 23 01:56 ..
    drwxr-xr-x. 2 root root 4096 Jun 23 01:56 configs
    -rw-r--r--. 1 root root  315 Jun 23 01:56 quagga1.conf
    -rw-r--r--. 1 root root  315 Jun 23 01:56 quagga2.conf
    -rw-r--r--. 1 root root  315 Jun 23 01:56 quagga3.conf
    -rw-r--r--. 1 root root  316 Jun 23 01:56 quagga4.conf
    -rw-r--r--. 1 root root  883 Jun 23 01:56 quagga-sdn.conf
    -rw-r--r--. 1 root root 5259 Jun 23 01:56 quagga-test1.py
    -rw-r--r--. 1 root root  107 Jun 23 01:56 zebra.conf
    [root@kunpeng82 sdn-ip-topology]# chmod 777 /var/log/quagga/
    [root@kunpeng82 sdn-ip-topology]# chmod 777 *
    [root@kunpeng82 sdn-ip-topology]# zebra -d -f quagga-sdn.conf 
    vty_read_config: failed to open configuration file /root/ryu/SDN-IP-Ryu/sdn-ip-topology/quagga-sdn.conf: Permission denied
    can't open configuration file [quagga-sdn.conf]
    [root@kunpeng82 sdn-ip-topology]# ls -al
    total 44
    drwxr-xr-x. 3 root root 4096 Jul 12 11:03 .
    drwxr-xr-x. 5 root root 4096 Jun 23 01:56 ..
    drwxrwxrwx. 2 root root 4096 Jun 23 01:56 configs
    -rwxrwxrwx. 1 root root  315 Jun 23 01:56 quagga1.conf
    -rwxrwxrwx. 1 root root  315 Jun 23 01:56 quagga2.conf
    -rwxrwxrwx. 1 root root  315 Jun 23 01:56 quagga3.conf
    -rwxrwxrwx. 1 root root  316 Jun 23 01:56 quagga4.conf
    -rwxrwxrwx. 1 root root  883 Jun 23 01:56 quagga-sdn.conf
    -rwxrwxrwx. 1 root root 5259 Jun 23 01:56 quagga-test1.py
    -rwxrwxrwx. 1 root root  107 Jun 23 01:56 zebra.conf
    [root@kunpeng82 sdn-ip-topology]# zebra -d -f quagga-sdn.conf  -u root -g root
    There is no such command.
    Error occured during reading below line.
    router bgp 65000

     

[root@kunpeng82 configs]# zebra -d -f zebra.conf  -u root -g root
[root@kunpeng82 configs]# ps -elf | grep zebra
0 S root     12333 50677  0  80   0 -  1729 pipe_w 12:22 pts/22   00:00:00 grep --color=auto zebra
[root@kunpeng82 configs]#             --------------还是没有启动

 

[root@kunpeng82 sdn-ip-topology]# zebra -d -C  -f  configs/zebra.conf  -u root -g root
[root@kunpeng82 sdn-ip-topology]# ps -elf | grep zebra
0 S root     13381 50677  0  80   0 -  1729 pipe_w 12:28 pts/22   00:00:00 grep --color=auto zebra
[root@kunpeng82 sdn-ip-topology]#

 

 

[root@kunpeng82 SDN-IP-Ryu]# cp -r sdn-ip-topology /etc/quagga/
[root@kunpeng82 SDN-IP-Ryu]# ls /etc/quagga/
sdn-ip-topology  vtysh.conf  zebra.conf
[root@kunpeng82 SDN-IP-Ryu]# chown -R quagga:quagga /etc/quagga/sdn-ip-topology
[root@kunpeng82 SDN-IP-Ryu]# zebra -d -C  -f  /etc/quagga/sdn-ip-topology/zebra.conf 
[root@kunpeng82 SDN-IP-Ryu]# ps -elf | grep zebra
0 S root     20079 50677  0  80   0 -  1729 pipe_w 12:44 pts/22   00:00:00 grep --color=auto zebra
[root@kunpeng82 SDN-IP-Ryu]# 

 

[root@kunpeng82 SDN-IP-Ryu]# ps -elf | grep zebra
1 S quagga   20211     1  0  80   0 -   419 do_sel 12:44 ?        00:00:00 zebra -d -f /etc/quagga/sdn-ip-topology/zebra.conf
0 S root     20219 50677  0  80   0 -  1729 pipe_w 12:44 pts/22   00:00:00 grep --color=auto zebra
[root@kunpeng82 SDN-IP-Ryu]# 

 

posted on 2020-07-12 20:09  tycoon3  阅读(920)  评论(0编辑  收藏  举报

导航