Juniper EX系列交換機commit報錯解決辦法

公司搭系統,需要對網絡進行調整,用的是Juniper EX系列交換機
結果調整完配置,
要commit時報錯
提示信息如下:
root# commit
error: could not open /var/etc/pam.conf+: Operation not permitted
error: commit failed: foreign file propagation failed during preprocessing

度娘沒找到解決辦法,上bing國際版,直接跳到Juniper英文頁面,還好有救
Cause:
Permission is missing in the authentication file.
File corruption with pam.conf or pam.conf+ file.
原因:
身份驗證文件中缺少權限。
pam.conf或pam.conf+文件損壞。

解決辦法:
root#exit
root>start shell #啓動shell

root:RE:0%
root:RE:0% ls -lo /var/etc/pam #檢查pam開頭的文件權限
ls: /var/etc/pam: No such file or directory #!竟然沒有這個文件!囧

root:RE:0% ls -lo /var/etc/ #換個方法,查上層路徑
total 324
...
-rw-r----- 1 root wheel - 203 Mar 6 09:16 pam.conf
-rw-r----- 1 root wheel - 203 Mar 6 09:08 pam.conf-
...
還好有找到

root:RE:0% chflags 0 /var/etc/pam.conf+
root:RE:0% chmod 777 /var/etc/pam.conf
重新設置權限

root:RE:0% cli
{master:0}
root>edit
Entering configuration mode

{master:0}[edit]
root# commit full
configuration check succeeds
commit complete

解決問題

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章