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

2010-02-22 Thread Bill Allombert
On Wed, Feb 10, 2010 at 11:45:20AM +, Jon Dowland wrote: On Mon, Feb 01, 2010 at 08:37:57PM +0100, Bill Allombert wrote: Simply depends on the menu package which provide su-to-root We've determined that su-to-root in it's current state doesn't handle the disabled-root case anyway, so

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

2010-02-10 Thread Jon Dowland
On Mon, Feb 01, 2010 at 08:37:57PM +0100, Bill Allombert wrote: Simply depends on the menu package which provide su-to-root We've determined that su-to-root in it's current state doesn't handle the disabled-root case anyway, so this wouldn't win me anything. -- Jon Dowland signature.asc

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

2010-02-10 Thread Jon Dowland
On Sun, Jan 31, 2010 at 06:42:07PM +, Jon Dowland wrote: That sounds sensible. Is there anything I can do to help? I'm planning to try and summarize the current situation on a wiki-page, then I will hopefully have a better idea of how to proceed. I might consider trying to exercise the DEP

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

2010-02-10 Thread Jon Dowland
On Mon, Feb 01, 2010 at 08:09:58AM +0100, Mike Hommey wrote: 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. In my specific case, yes. Something like apt-daemon is probably what you are looking for. Thanks for

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

2010-02-10 Thread Bill Allombert
On Wed, Feb 10, 2010 at 11:45:20AM +, Jon Dowland wrote: On Mon, Feb 01, 2010 at 08:37:57PM +0100, Bill Allombert wrote: Simply depends on the menu package which provide su-to-root We've determined that su-to-root in it's current state doesn't handle the disabled-root case anyway, so

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

2010-02-02 Thread Fabian Greffrath
Hi Bill, We need a solution that still works if user enable root password and disable sudo after installation. Shadow will note tell you whether root has a password or not. Maybe menu should have a debconf question (do you use sudo ?) that will be prefilled by d-i. Technical advices and patches

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

2010-02-01 Thread Bill Allombert
On Mon, Feb 01, 2010 at 07:30:23PM +, Jon Dowland wrote: gdp, by default, invokes dpkg to install the generated .deb file. I’ve been asking to move su-to-root to xdg-utils or debianutils, but the situation is still stuck. That sounds sensible. Is there anything I can do to help?

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

2010-01-31 Thread Jon Dowland
On Sun, Jan 31, 2010 at 01:14:35AM +0100, Josselin Mouette wrote: Le samedi 30 janvier 2010 à 22:58 +, 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

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

2010-01-31 Thread Daniel Baumann
Jon Dowland wrote: That sounds sensible. Is there anything I can do to help? help persuading the blocking maintainers to do the right thing. -- Address:Daniel Baumann, Burgunderstrasse 3, CH-4562 Biberist Email: daniel.baum...@panthera-systems.net Internet:

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

2010-01-31 Thread Michael Gilbert
On Sat, 30 Jan 2010 22:58:20 + Jon Dowland wrote: Hi folks, 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. maybe packaging isn't the best solution to the underlying problem? wouldn't

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

2010-01-31 Thread Mike Hommey
On Sun, Jan 31, 2010 at 06:42:07PM +, Jon Dowland wrote: On Sun, Jan 31, 2010 at 01:14:35AM +0100, Josselin Mouette wrote: Le samedi 30 janvier 2010 à 22:58 +, Jon Dowland a écrit : I need to run a command as the superuser inside game-data-packager (gdp). Up until now, I've been

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

2010-01-30 Thread Josselin Mouette
Le samedi 30 janvier 2010 à 22:58 +, 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