Skip to content

Commit bf4d4e9

Browse files
committed
Only create nogroup group on Ubuntu
1 parent 043a131 commit bf4d4e9

File tree

1 file changed

+9
-1
lines changed
  • cookbooks/boxcutter_site_settings/recipes

1 file changed

+9
-1
lines changed

cookbooks/boxcutter_site_settings/recipes/users.rb

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,18 @@
1717
# limitations under the License.
1818

1919
%w{
20-
nogroup
2120
root
2221
sudo
2322
users
2423
}.each do |grp|
2524
FB::Users.initialize_group(node, grp)
2625
end
26+
27+
# Ubuntu:
28+
# /etc/group
29+
# nobody:x:65534:
30+
# /etc/passwd
31+
# nobody:x:65534:65534:Kernel Overflow User:/:/sbin/nologin
32+
if node.ubuntu?
33+
FB::Users.initialize_group(node, 'nogroup')
34+
end

0 commit comments

Comments
 (0)