We have to delete about 100 users from our directory of around
1000. I need
to delete the OD user records as well as the home folders. Given a
text file
with short names does anyone have a script that could accomplish
this task?
Deleting users of a system is generally not recommended.
POSIX permissions are based on UID/GID and a recycled UID or GID can
lead to security issues. Any user anywhere could have file(s)
permitting the current UID/GID owners to access files.
Instead consider disabling dead accounts rather than removing the
account. Then remove *all* files owned by them *everywhere*, not just
in /their/ HOMEs.