sudo is not only to sudo (execute files as another user)

Last modified on July 24, 2026 • 1 min read • 63 words
If you want to execute a command with root privileges, you normally use the command “sudo”.
If you want to execute a command with root privileges, you normally use the command “sudo”. But of course you can execute a command also as any other user. E.g. I need to execute some script for my backup as user “backuppc”. then I just type:sudo -u backuppc /usr/local/backuppc/bin/BackupPC_serverMesg status infoInstead of the username (backuppc) one can also use the user id (uid).