blackj0221@NDELT-LAP-DELL:~$ su
Password:
root@NDELT-LAP-DELL:/home/blackj0221# su - blackj0221
Command 'service' is available in '/usr/sbin/service'
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.
service: command not found
blackj0221@NDELT-LAP-DELL:~$ echo $PATH
/home/blackj0221/bin:/home/blackj0221/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/snap/bin:/usr/sbin
如果我将我的帐户从更改root
为我的 ID,则错误消息‘/usr/sbin’ 未包含在 PATH 中被展示。
因此我将其添加/usr/sbin
到 PATH 但错误仍然出现。
我怎样才能摆脱它?