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