I assumed/believed sudo was part of the "base" Debian system, as I don't
have issues when building the package with pbuilder.
I indeed want to execute those commands as the user that owns the database.

I understood sudo (su DO) was meant to execute commands as another user,
while su is used to "become" another user. Granted, with `su -c` you can
execute a command as another user.

Extract from the manpages:
sudo:
sudo, sudoedit - execute a command as another user


su:
su - change user ID or become superuser
OPTIONS
 -c, --command COMMAND
           Specify a command that will be invoked by the shell using its -c.


I am wondering what the most appropriate command is to perform this task.
Is the solution to:
- Depend on sudo
- Use su to execute that command

Thoughts welcome.
   +Emilien

Reply via email to