in reply to Scripting Help

Your "groupadd" code uses $group_id which does not seem to be defined.

The linux command for deleting groups is "groupdel", not "delgroup".

Error-checking Linux return codes (use $? >> 8) would certainly help.

        "I can cast out either one of your demons, but not both of them." -- the XORcist

Replies are listed 'Best First'.
Re^2: Scripting Help
by dustin.brown1 (Initiate) on Dec 14, 2015 at 20:13 UTC
    I corrected the groupdel part. Not sure where group_id should be defined.
      Just take out the "-g $group_id" from the groupadd command.

      Let the system generate a new gid for you.

              "I can cast out either one of your demons, but not both of them." -- the XORcist

        Thank you, at least that portion is fixed. Now to figure out what the above users are teaching me =D