SudoRules edit sudores file

6 views
Skip to first unread message

Thiago Avelino

unread,
Jan 9, 2013, 12:58:56 AM1/9/13
to pr...@googlegroups.com
Hi guys...

What do you think of creating a SudoRules?

My need is to add a user in sudoers (file), just that he has to NOPASSWD, would be another way to do?



Cheers,
Thiago Avelino

Diogo Baeder

unread,
Jan 9, 2013, 1:06:33 AM1/9/13
to pr...@googlegroups.com
If I understood your question correctly, there's a much easier way to do it: check out the "ensure_line" method from the Role class. Then you can put the line you need in the sudoers file, as you see fit.

Cheers,

__________________________
Diogo Baeder
http://diogobaeder.com.br
Reply all
Reply to author
Forward
0 new messages