Search This Blog
Wednesday, June 10, 2020
[Ubuntu]帳號從sudo群組誤刪(Recover user to sudo group)
Email This
BlogThis!
Share to X
Share to Facebook
Share to Pinterest
如果只有一個sudo權限的帳號,又不小心從sudo群組中誤刪掉,導致完全不行執行sudo權限的動作,可以由以下程序救回sudo權限
1. 重開機後,開機時按著"Shift"鍵等grub選單出現,選擇"Advance"
2. 選擇"drop to root"
3. usermod -a -G sudo
username
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)