rmuser.sh (126398) | rmuser.sh (146556) |
---|---|
1#!/bin/sh 2# 3# Copyright (c) 2002, 2003 Michael Telahun Makonnen. All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions 7# are met: 8# 1. Redistributions of source code must retain the above copyright --- 10 unchanged lines hidden (view full) --- 19# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 20# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 21# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 23# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24# 25# Email: Mike Makonnen <mtm@FreeBSD.Org> 26# | 1#!/bin/sh 2# 3# Copyright (c) 2002, 2003 Michael Telahun Makonnen. All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions 7# are met: 8# 1. Redistributions of source code must retain the above copyright --- 10 unchanged lines hidden (view full) --- 19# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 20# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 21# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 23# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24# 25# Email: Mike Makonnen <mtm@FreeBSD.Org> 26# |
27# $FreeBSD: head/usr.sbin/adduser/rmuser.sh 126398 2004-02-29 09:54:15Z schweikh $ | 27# $FreeBSD: head/usr.sbin/adduser/rmuser.sh 146556 2005-05-24 04:50:07Z adamw $ |
28# 29 30ATJOBDIR="/var/at/jobs" 31CRONJOBDIR="/var/cron/tabs" 32MAILSPOOL="/var/mail" 33SIGKILL="-KILL" 34TEMPDIRS="/tmp /var/tmp" 35THISCMD=`/usr/bin/basename $0` --- 260 unchanged lines hidden (view full) --- 296if [ ! "$userlist" ]; then 297 if [ $fflag ]; then 298 err "($ffile) does not exist or does not contain any user names." 299 exit 1 300 elif [ $yflag ]; then 301 show_usage 302 exit 1 303 else | 28# 29 30ATJOBDIR="/var/at/jobs" 31CRONJOBDIR="/var/cron/tabs" 32MAILSPOOL="/var/mail" 33SIGKILL="-KILL" 34TEMPDIRS="/tmp /var/tmp" 35THISCMD=`/usr/bin/basename $0` --- 260 unchanged lines hidden (view full) --- 296if [ ! "$userlist" ]; then 297 if [ $fflag ]; then 298 err "($ffile) does not exist or does not contain any user names." 299 exit 1 300 elif [ $yflag ]; then 301 show_usage 302 exit 1 303 else |
304 echo -n "Please enter one or more user name's: " | 304 echo -n "Please enter one or more usernames: " |
305 read userlist 306 fi 307fi 308 309_user= 310_uid= 311for _user in $userlist ; do 312 # Make sure the name exists in the passwd database and that it --- 48 unchanged lines hidden --- | 305 read userlist 306 fi 307fi 308 309_user= 310_uid= 311for _user in $userlist ; do 312 # Make sure the name exists in the passwd database and that it --- 48 unchanged lines hidden --- |