ubuntu關閉服務需要身份驗證


service tomcat stop
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
需要通過認證才能停止“tomcat.service”。
Authenticating as: www,,, (www)

解決辦法:

sudo tomcat stop/start

方法來自Thread: Starting, Stopping, Restarting Services result in authentication from org.freedeskto

 

Well, I also was running tcpdump when I did the stuff for my reply, and there was no external communication.
These commands are fairly fundamental, so I don't think you can disable them, nor should you. Just always use sudo so that the command itself is always run as root.


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM