sudo: Added sudo::disable class which disables sudo.
This commit is contained in:
parent
0e3277be0b
commit
2af4ed0881
1 changed files with 16 additions and 0 deletions
|
@ -65,3 +65,19 @@ define sudo::sudoer($where="ALL", $as_whom="ALL", $what="ALL") {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
# Disable sudo
|
||||
#
|
||||
# Cannot remove sudo package itself due to depencies
|
||||
#
|
||||
class sudo::disable {
|
||||
|
||||
exec { "chmod 0000 /usr/bin/sudo":
|
||||
user => "root",
|
||||
path => "/bin:/usr/bin:/sbin:/usr/sbin",
|
||||
onlyif => "test -u /usr/bin/sudo",
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue