Skip to content

Instantly share code, notes, and snippets.

@drrk
Last active March 29, 2017 14:34
Show Gist options
  • Save drrk/000651f945c53310cbf14d08a3445d9b to your computer and use it in GitHub Desktop.
Save drrk/000651f945c53310cbf14d08a3445d9b to your computer and use it in GitHub Desktop.

Revisions

  1. drrk revised this gist Mar 28, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion fixsudo.rb
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    delete_lines 'remove requiretty from sudoers'
    delete_lines 'remove requiretty from sudoers' do
    path '/etc/sudoers'
    pattern '^.*requiretty'
    end
  2. drrk created this gist Mar 28, 2017.
    4 changes: 4 additions & 0 deletions fixsudo.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    delete_lines 'remove requiretty from sudoers'
    path '/etc/sudoers'
    pattern '^.*requiretty'
    end