ubuntu sbin命令报错

问题报错

Command 'ufw' is available in '/usr/sbin/ufw'
The command could not be located because '/usr/sbin' is not included in the PATH environment variable.
This is most likely caused by the lack of administrative privileges associated with your user account.
ufw: command not found

问题来源

 在xshell7上配置了jdk和apache环境变量后 在主机访问tomcat被拒绝 想检查一下防火墙状态 结果报错

echo  $PATH查看有sbin

求大佬求助

 

 

参看 https://blog.csdn.net/cangye0504/article/details/105934094  

 

另外你的账户有admin 权限么?