Em geral, esta é uma má idéia, mas se você realmente precisar disso, modifique o seguinte em / etc / sudoers:
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
<username> ALL=(ALL) ALL
## Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL
<username> ALL=(ALL) NOPASSWD: ALL
Ou você pode simplesmente usar o vipw e definir o uid como 0 para esse nome de usuário.