Ask Your Question

How do I change visudo?

asked 2015-04-14 14:16:09 -0600

Nycto gravatar image

I am using Capistrano to deploy my code, but it requires me to change the visudo to give the deploy user special sudo rights.

How do I go about adding lines to visudo via puppet? I haven't been able to find anything!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-04-15 00:23:15 -0600

GregLarkin gravatar image

You might want to have a look at the augeas resource in Puppet, because it has the ability to parse the /etc/sudoers file (and many others).

This page has some information about modifying the sudoers file:

If you search for augeas sudoers, you'll find a lot of articles related to managing that file.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2015-04-14 14:15:42 -0600

Seen: 81 times

Last updated: Apr 15 '15