Skip to content

Commit

Permalink
Only create nogroup group on Ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorific committed Dec 29, 2024
1 parent 043a131 commit bf4d4e9
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion cookbooks/boxcutter_site_settings/recipes/users.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,18 @@
# limitations under the License.

%w{
nogroup
root
sudo
users
}.each do |grp|
FB::Users.initialize_group(node, grp)
end

# Ubuntu:
# /etc/group
# nobody:x:65534:
# /etc/passwd
# nobody:x:65534:65534:Kernel Overflow User:/:/sbin/nologin
if node.ubuntu?
FB::Users.initialize_group(node, 'nogroup')
end

0 comments on commit bf4d4e9

Please sign in to comment.