Lines Matching refs:login
52 # rm_files login
53 # Removes files or empty directories belonging to $login from various
58 [ -n $1 ] && login=$1 || return
67 verbose && echo -n "Removing files owned by ($login) in $_dir:"
68 filecount=`find 2>/dev/null "$_dir" -user "$login" -delete -print |
76 # rm_mail login
78 # specified in the $login argument.
82 [ -n $1 ] && login=$1 || return
84 verbose && echo -n "Removing mail spool(s) for ($login):"
85 if [ -f ${MAILSPOOL}/$login ]; then
86 verbose && echo -n " ${MAILSPOOL}/$login" ||
88 rm ${MAILSPOOL}/$login
90 if [ -f ${MAILSPOOL}/.${login}.pop ]; then
91 verbose && echo -n " ${MAILSPOOL}/.${login}.pop" ||
93 rm ${MAILSPOOL}/.${login}.pop
98 # kill_procs login
99 # Send a SIGKILL to all processes owned by $login.
103 [ -n $1 ] && login=$1 || return
105 verbose && echo -n "Terminating all processes owned by ($login):"
107 proclist=`ps 2>/dev/null -U $login | grep -v '^\ *PID' | awk '{print $1}'`
116 # rm_at_jobs login
117 # Remove at (1) jobs belonging to $login.
121 [ -n $1 ] && login=$1 || return
123 atjoblist=`find 2>/dev/null ${ATJOBDIR} -maxdepth 1 -user $login -print`
125 verbose && echo -n "Removing at(1) jobs owned by ($login):"
134 # rm_crontab login
135 # Removes crontab file belonging to user $login.
139 [ -n $1 ] && login=$1 || return
141 verbose && echo -n "Removing crontab for ($login):"
142 if [ -f ${CRONJOBDIR}/$login ]; then
143 verbose && echo -n " ${CRONJOBDIR}/$login" || echo -n " crontab"
144 rm -f ${CRONJOBDIR}/$login
149 # rm_ipc login
150 # Remove all IPC mechanisms which are owned by $login.
156 awk -v i=$i -v login=$1 '$1 == i && $5 == login { print $2 }' |
162 # rm_user login
163 # Remove user $login from the system. This subroutine makes use
173 [ -n $1 ] && login=$1 || return
175 verbose && echo -n "Removing user ($login)"
182 ${PWCMD} userdel -n $login $pw_rswitch