[Tfug] Ubuntu noninteractive aptitude mysql install

Terence Rudkin trudkin at gmail.com
Thu Oct 1 07:29:02 MST 2009


do
$> sudo visudo

then add at bottom of  the file
chad ALL=NOPASSWD: /usr/bin/apt-get

exit wit :wq

chad is the user that will be running apt-get

Now any new logins will be able to use apt-get with
    $> sudo apt-get
with no prompts for root password



On Thu, Oct 1, 2009 at 12:16 AM, Chad Woolley <thewoolleyman at gmail.com>wrote:

> Haven't followed this list in a while, but maybe you guys can help me.
>
> When scripting an aptitude install of mysql on ubuntu, how can I avoid
> blocking at aptitude's interactive root password prompt?
>
> I tried this, but it doesn't work on when I run it on a clean EC2 image:
>
>
> http://github.com/thewoolleyman/rails/blob/master/ci/setup_rails_dependencies.rb#L26
>
> Maddeningly, it works fine when I immediately do the same thing again.
>
> Thanks,
> -- Chad
>
> _______________________________________________
> Tucson Free Unix Group - tfug at tfug.org
> Subscription Options:
> http://www.tfug.org/mailman/listinfo/tfug_tfug.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tfug.org/pipermail/tfug_tfug.org/attachments/20091001/ae969f7c/attachment-0002.html>


More information about the tfug mailing list