Re: removing all users

2003-02-05 Thread Marc Silver
Hi there,

On Tue, Feb 04, 2003 at 02:31:55PM -0900, Jon Reynolds wrote:
 Probably a stupid question but I have a lot of users on a freebsd
 box and I want to remove them all at once. Is there any problem with
 just issueing this command in the /home directory: 'rm -i *'. Or is
 there a better way to do this?
 
 Thanks for any suggestions,

You could try something like:

cd /home/
for i in * ; do /usr/sbin/rmuser -y $i ; done

That should do what you're asking for, and will do a lot more than just
remove the directories.  Man rmuser(8) for more info on what it does if
you're interested.  :)

- Marc

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: removing all users

2003-02-04 Thread Scott M. Nolde
Jon Reynolds([EMAIL PROTECTED])@2003.02.04 14:31:55 +:
 Probably a stupid question but I have a lot of users on a freebsd
 box and I want to remove them all at once. Is there any problem with
 just issueing this command in the /home directory: 'rm -i *'. Or is
 there a better way to do this?
 
 Thanks for any suggestions,
 
 Jon
 
 

use pw(8): pw  [-V etcdir] userdel [name|uid] [-n name] [-u uid] [-r] [-Y]

-- 
Scott Nolde
GPG Key 0xD869AB48

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message