Linux開機啓動sudo命令

  須要開機執行的sudo命令能夠寫在/etc/rc.local中,由於/etc/rc.local是以root身份去執行的。 系統在啓動時會先調用/etc/init.d/rc.local,在/etc/init.d/rc.local腳本中再調用/etc/rc.local /etc/init.d/rc.local中調用/etc/rc.local的部分以下: if [ -x /etc/rc.local
相關文章
相關標籤/搜索