Fixed /sbin/nologin shell from Ubuntu.
This commit is contained in:
parent
b2eb69c98d
commit
cfc09068b9
1 changed files with 13 additions and 2 deletions
|
@ -7,11 +7,22 @@ class user::system {
|
|||
mode => 0755,
|
||||
owner => "root",
|
||||
group => $operatingsystem ? {
|
||||
openbsd => "wheel",
|
||||
default => "root",
|
||||
"openbsd" => "wheel",
|
||||
default => "root",
|
||||
},
|
||||
}
|
||||
|
||||
case $operatingsystem {
|
||||
"ubuntu": {
|
||||
file { "/sbin/nologin":
|
||||
ensure => link,
|
||||
target => "/usr/sbin/nologin",
|
||||
owner => "root",
|
||||
group => "root",
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
User {
|
||||
require => File["/var/empty"],
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue