<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>I assumed/believed sudo was part of the "base" Debian system, as I don't have issues when building the package with pbuilder.</div><div>I indeed want to execute those commands as the user that owns the database.</div>
<div><br></div><div>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.<br></div>
<div>
<br></div><div>Extract from the manpages:</div><div>sudo:</div><div>sudo, sudoedit - execute a command as another user<br></div><div><br></div><div><br></div><div>su:</div><div>su - change user ID or become superuser<br>
</div>
<div><div>OPTIONS</div><div> -c, --command COMMAND</div><div> Specify a command that will be invoked by the shell using its -c.</div></div><div><br></div><div><br></div><div>I am wondering what the most appropriate command is to perform this task.</div>
<div>Is the solution to:</div><div>- Depend on sudo</div><div>- Use su to execute that command<br class=""><br>Thoughts welcome.<br clear="all"><div><div dir="ltr"> +Emilien</div></div></div><div dir="ltr"><br></div></div>
</div></div>