Re: removing a list of users

2007-11-18 Thread Mic J
#!/bin/sh - or #!/bin/ksh - But are there any places in the man page i can find this? something about it, maybe, at ~26% in man sh(in the section: Search and Execution). regards cognacc

Re: removing a list of users

2007-11-18 Thread Otto Moerbeek
On Sun, Nov 18, 2007 at 06:52:16PM +0100, Mic J wrote: #!/bin/sh - or #!/bin/ksh - But are there any places in the man page i can find this? something about it, maybe, at ~26% in man sh(in the section: Search and Execution). Or execve(2). -Otto

Re: removing a list of users

2007-11-16 Thread Siju George
On Nov 16, 2007 2:14 AM, Darrin Chandler [EMAIL PROTECTED] wrote: On Thu, Nov 15, 2007 at 09:23:45PM +0100, Andreas Andersson wrote: -BEGIN PGP MESSAGE- Charset: ISO-8859-1 Version: GnuPG v2.0.4 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

Re: removing a list of users

2007-11-15 Thread Serge Basterot
On Thu, Nov 15, 2007 at 11:47:09AM -0500, Piet Slaghekke wrote: Hello everyone, Hello, How can I remove a list of users in OpenBSD. Something like that, or with the -r option : while read uid; do userdel $uid; done userlist.txt -- Serge

removing a list of users

2007-11-15 Thread Piet Slaghekke
Hello everyone, I am breaking my head over this one. I have list of users userlist.txt and I want to remove their accounts. OpenBSD does not seem to have the rmuser -f -y function were you can I remove a list of users without having to answer yes multiple times. How can I remove a list of

Re: removing a list of users

2007-11-15 Thread Piet Slaghekke
Ok thanks now it works! so If I want to remove the user account and all the user files on the system I use userdel -r Can I also use the rmuser command for this? How do I write a script to do this and run it from a csh shell, in other words what line do I need in the script to tell the system

Re: removing a list of users

2007-11-15 Thread Cristiano Deana
On Nov 15, 2007 7:06 PM, Piet Slaghekke [EMAIL PROTECTED] wrote: while: Expression Syntax. are you using ksh shell? if not: # ksh # while read uid; do userdel $uid; done userlist.txt -- Cris, member of G.U.F.I Italian FreeBSD User Group http://www.gufi.org/

Re: removing a list of users

2007-11-15 Thread Piet Slaghekke
Thanks Serge, When I do: while read uid; do userdel $uid; done userlist.txt I get: while: Expression Syntax. On Nov 15, 2007 11:59 AM, Serge Basterot [EMAIL PROTECTED] wrote: On Thu, Nov 15, 2007 at 11:47:09AM -0500, Piet Slaghekke wrote: Hello everyone, Hello, How can I remove a list

Re: removing a list of users

2007-11-15 Thread William Boshuck
On Thu, Nov 15, 2007 at 01:06:57PM -0500, Piet Slaghekke wrote: Thanks Serge, When I do: while read uid; do userdel $uid; done userlist.txt I get: while: Expression Syntax. The foregoing command was written in Bourne shell syntax. The error message you report suggests that you are using

Re: removing a list of users

2007-11-15 Thread Darrin Chandler
On Thu, Nov 15, 2007 at 09:23:45PM +0100, Andreas Andersson wrote: -BEGIN PGP MESSAGE- Charset: ISO-8859-1 Version: GnuPG v2.0.4 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org hQIOA3JHLODoc6ABEAf/QtOL5xonPKEmfNLk5P5Th+BOAceBZJ1VsTcjk2t5BA7y

Re: removing a list of users

2007-11-15 Thread Paul de Weerd
On Thu, Nov 15, 2007 at 01:57:50PM -0500, Piet Slaghekke wrote: | Ok thanks now it works! | so If I want to remove the user account and all the user files on the system | I use userdel -r | | Can I also use the rmuser command for this? | | How do I write a script to do this and run it from a

Re: removing a list of users

2007-11-15 Thread Andreas Andersson
-BEGIN PGP MESSAGE- Charset: ISO-8859-1 Version: GnuPG v2.0.4 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org hQIOA3JHLODoc6ABEAf/QtOL5xonPKEmfNLk5P5Th+BOAceBZJ1VsTcjk2t5BA7y lJic+p5m+/2Ej7BlX8Fwxsa0U+9KxAMf2ifkE3XBPVp2Zi2Ulp8Ja1UAE/ft0+0w