Example, There are 150 ids with a GID of 500. I have been given a list of 100 ids that need to be deleted within this group (500). Rather than go into admintool and do each one individually, is there a script I could use?
The script would ask what GID?
Once the GID was entered it would pull up each id within that GID one at a time, prompting me with a choice to delete "Y" or "N"
If "Y" is selected, it would remove that id from /etc/passwd and /etc/shadow and perhaps give me the choice to also delete their home directory.
The script would ask what GID?
Once the GID was entered it would pull up each id within that GID one at a time, prompting me with a choice to delete "Y" or "N"
If "Y" is selected, it would remove that id from /etc/passwd and /etc/shadow and perhaps give me the choice to also delete their home directory.