[Debian-med-packaging] Bug#739657: gnuhealth-server: fails to install: gnuhealth-server.postinst: sudo: not found

Emilien Klein emilien+debian at klein.st
Sat Feb 22 19:36:58 UTC 2014


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/debian-med-packaging/attachments/20140222/b6bee0bf/attachment.html>


More information about the Debian-med-packaging mailing list