Console magic :) Or how-to use pfexec/RBAC in right way.

Submit some alternative for VERY nice feature with sudo command:

# run the last command as root
pfexec !!

# Save a file you edited in vim without the needed permissions (in vi/vim)
:w !pfexec tee %

http://www.commandlinefu.com/commands/by/ilyxa

Leave a Reply