[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#739657: gnuhealth-server: fails to install: gnuhealth-server.postinst: sudo: not found



2014-02-23 19:53 GMT+01:00 Karsten Hilbert <Karsten.Hilbert@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.

Thanks for helping figuring this out.
   +Emilien


Reply to: