2013-08-28

解決CentOS 6 VNC一般使用者登入後會出現"Authentication is required to refresh the system sources"的問題!

解決CentOS 6 VNC一般使用者登入後會出現"Authentication is required to refresh the system sources"的問題!


在CentOS 6 架設了VNC Server, 但一般使用者登入VNC的Gnome桌面後,都會出現以下的訊息"Authentication is required to refresh the system sources",這樣會造成一般使用者登入的困擾,所以以下就提供了一個解決的方法。


packagekit

# vim /usr/share/polkit-1/actions/org.freedesktop.packagekit.policy

---------------------------------------------------------------------------------
<defaults>
<allow_any>auth_admin</allow_any>                ------>更改為no
<allow_inactive>auth_admin</allow_inactive>      ------>更改為no
<allow_active>auth_admin</allow_active>
</defaults>
---------------------------------------------------------------------------------

P.S. 因為此檔有很多要改,建議使用"取代"的較快,在vim此檔是先按「Esc」後,直接輸入「:%s/<allow_any>auth_admin<\/allow_any>/<allow_any>no<\/allow_any>/g」+「Enter」與「:%s/<allow_inactive>auth_admin<\/allow_inactive>/<allow_inactive>no<\/allow_inactive>/g」+「Enter」

沒有留言:

張貼留言