Initialize for shadow
This commit is contained in:
commit
d72194c6a5
29 changed files with 3462 additions and 0 deletions
29
userdel-post.local
Normal file
29
userdel-post.local
Normal file
|
@ -0,0 +1,29 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Here you can add your own stuff, that should be done for every user
|
||||
# which we deleted.
|
||||
#
|
||||
# If you delete a user with userdel, this script will be called
|
||||
# with the login name as parameter after the account and optional
|
||||
# home directory was removed from the system.
|
||||
#
|
||||
|
||||
case "$1" in
|
||||
--help|--version)
|
||||
echo Usage: $0 username uid gid home
|
||||
exit 0
|
||||
;;
|
||||
esac
|
||||
|
||||
# Check for the required argument.
|
||||
if [ $# != 1 ]; then
|
||||
echo Usage: $0 username
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Rebuild NIS database to remove the account from it.
|
||||
# make -C /var/yp
|
||||
|
||||
# All done.
|
||||
exit 0
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue