假設(shè)你用的是Red Hat系列(包括Fedora和CentOS)的Linux系統(tǒng)。當(dāng)你執(zhí)行sudo命令時(shí)可能會(huì)提示“某某用戶 is not in the sudoers file.? This incident will be reported.”
當(dāng)然如果你理解上面的原理后椿浓,可以直接輸入如下命令解決此問題
su?-
echo?'xxx?ALL=(ALL)?ALL'?>>?/etc/sudoers??(其中xxx代表用戶名)