Sudo with Fancypath#append?

36 views
Skip to first unread message

lachlan...@gmail.com

unread,
Jul 6, 2012, 1:46:40 AM7/6/12
to babush...@googlegroups.com

I'm getting the following error from my dep for appending new /etc/sudoer rules:

/home/ubuntu/.babushka/deps/user.rb:15: #append_to_file has been deprecated and will be removed on 2012-09-01. Use Fancypath#append instead, e.g.:
'/etc/sudoers'.p.append("ubuntu ALL=(ALL) NOPASSWD:ALL")

I can't figure out a way to get Fancypath#append to work in a sudo environment, what's the exactly comparable command?

Cheers,
Lachlan

Ben Hoskings

unread,
Jul 6, 2012, 2:15:37 AM7/6/12
to babush...@googlegroups.com
Hi Lachlan,

There isn't one. :)

I've been moving away from implicit sudoing within my deps, in favour of sudoing the babushka run itself.

Do you have a dep on github that you can link to?

- Ben
> --
> To post, email babush...@googlegroups.com
> To unsubscribe, email babushka_app...@googlegroups.com
> ~
> http://babushka.me
> http://github.com/benhoskings/babushka
> http://groups.google.com/group/babushka_app

lachlan...@gmail.com

unread,
Jul 6, 2012, 3:34:15 PM7/6/12
to babush...@googlegroups.com


I thought that might be the case. I've changed to using your sudo.rb deps and running babuska with sudo, thanks!

Cheers,
Lachlan




On Thursday, July 5, 2012 11:15:37 PM UTC-7, Ben Hoskings wrote:
Hi Lachlan,

There isn't one. :)

I've been moving away from implicit sudoing within my deps, in favour of sudoing the babushka run itself.

Do you have a dep on github that you can link to?

- Ben



On 06/07/2012, at 3:46 PM, lachlan...@gmail.com wrote:

>
> I'm getting the following error from my dep for appending new /etc/sudoer rules:
>
> /home/ubuntu/.babushka/deps/user.rb:15: #append_to_file has been deprecated and will be removed on 2012-09-01. Use Fancypath#append instead, e.g.:
> '/etc/sudoers'.p.append("ubuntu ALL=(ALL) NOPASSWD:ALL")
>
> I can't figure out a way to get Fancypath#append to work in a sudo environment, what's the exactly comparable command?
>
> Cheers,
> Lachlan
>
>
> --
> To post, email babush...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages