Skip to content

Commit

Permalink
Merge pull request #73 from socialally/fix-debian-7-sudoers
Browse files Browse the repository at this point in the history
Ensure /etc/sudoers sed replacement works for Debian 7.x.
  • Loading branch information
juliandunn committed Aug 30, 2013
2 parents 58ac194 + f0eca4f commit b259387
Showing 1 changed file with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion definitions/debian-7.1.0/sudoers.sh

This file was deleted.

4 changes: 4 additions & 0 deletions definitions/debian-7.1.0/sudoers.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash -eux

sed -i -e '/Defaults\s\+env_reset/a Defaults\tsecure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"' /etc/sudoers
sed -i -e 's/%sudo\tALL=(ALL:ALL) ALL/%sudo\tALL=(ALL:ALL) NOPASSWD: ALL/' /etc/sudoers

0 comments on commit b259387

Please sign in to comment.