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

Andreas Tille andreas at an3as.eu
Sun Feb 23 21:30:04 UTC 2014


Hi Emilien,

On Sun, Feb 23, 2014 at 09:49:46PM +0100, Emilien Klein wrote:
> 2014-02-23 19:53 GMT+01:00 Karsten Hilbert <Karsten.Hilbert at gmx.net>:
> >
> > On Sun, Feb 23, 2014 at 08:38:56AM +0100, Andreas Tille wrote:
> >
> > > > Extract from the manpages:
> > > > sudo:
> > > > sudo, sudoedit - execute a command as another user
> > >
> > > I'd call this a bit confusing since sudo is the command to do something
> > > as superuser.
> >
> > Not really. It just so happens that the *default*
> > target usually is root.
> >
> > Look at "-u username".
> 
> 
> Correct, sudo is to perform a command as another user (by default
> root, but it can be any user you which), while su is to 'become" that
> other user (and then likely perform commands as that other user).
> 
> Only those few commands (in different scripts) need to be performed as
> the database-owning user, all the rest of the process needs to be done
> by root. Using sudo is the correct way to do that.
> I will make sure to Depend on sudo.

As I tried to express this is *not* the correct conclusion in my
opinion.  You should use su in your scripts.  May be you are trying
to grep /var/lib/dpkg/info for the usage of su / sudo to get some
picture what others are doing.
 
Kind regards

     Andreas. 

-- 
http://fam-tille.de



More information about the Debian-med-packaging mailing list