Task: Check if a Linux Group Exists and Add a User to It
Task: Check if a Linux Group Exists and Add a User to It: a task in Terminal-Lego-15k (Harbor dataset). Write a shell script that checks if a specified group exists on the system. If the group exists, add a specified user to it. If the group does not exist, create the group first, then add the…
Part of PrimeIntellect/Terminal-Lego-15k.