为了安全在sshd_config中禁止root.登录,useradd .新用户后然后su ,但是发现无法使用service命令。比如说无法使用ser.vice sshd restart .
提示.:bash: service: command n.ot found 汽车
运行whi.ch service 女人
提.示:/usr/.bin/which: no. service in (/usr/kerberos/sbin:/usr/kerb.eros/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/jonelaw/bin) 汽车
看了看service 这个命令在sbin.下.
请问大家是什么原因呢?