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

Re: correct/ideal way to obtain root from a shell script

On Sun, Jan 31, 2010 at 06:42:07PM +0000, Jon Dowland wrote:
> On Sun, Jan 31, 2010 at 01:14:35AM +0100, Josselin Mouette wrote:
> > Le samedi 30 janvier 2010 à 22:58 +0000, Jon Dowland a écrit : 
> > > I need to run a command as the superuser inside
> > > game-data-packager (gdp).  Up until now, I've been
> > > hardcoding a sudo invocation and depending on sudo.
> > 
> > Why do you need to run anything as root in a packaging tool?
> > 
> > Aren’t you looking for fakeroot instead?
> gdp, by default, invokes dpkg to install the generated .deb
> file.

So what you are looking for is not a way to run something as root, but a
way to install a package as a user, which is different.

Something like apt-daemon is probably what you are looking for.


Reply to: