這次接了一個系統,需要用sudo時候出現
bash: sudo: command not found
用su – root 去切成root並沒有甚麼問題,不過還是想處理好這個小事
基本上裝下 sudo 就可以了
# apt update
# apt-get install sudo
基本上等他跑完也就可以了
如果要加入新的使用者,讓這個使用者可以sudo指令
# usermod -aG sudo username
這樣下次登入的時候應該就可以正常使用了
這次接了一個系統,需要用sudo時候出現
bash: sudo: command not found
用su – root 去切成root並沒有甚麼問題,不過還是想處理好這個小事
基本上裝下 sudo 就可以了
# apt update
# apt-get install sudo
基本上等他跑完也就可以了
如果要加入新的使用者,讓這個使用者可以sudo指令
# usermod -aG sudo username
這樣下次登入的時候應該就可以正常使用了