LinuxSA Mailing list archives
Index:
[thread]
[date]
[subject]
[author]
[stats]
From: Freeman, Peter (ERHS) <Freeman.Peter@saugov.sa.gov.au>
To : Daryl Tester <dt@picknowl.com.au>
Date: Tue, 21 Nov 2000 00:00:00 +1030
RE:
Thanks Daryl
It's all working very well right now, I've strung a few scripts together to
make user & homedir creation a bit easier.
Webmin's custom commands are quite good, they allow you to put a parameter
(or 2 or 3) and pass them to scripts, so type in the username
& they get a home directory, permission changes to suit & get put in the
necessary groups, all in less than a second.
Last time I did all that with NT it took a liiiiittle bit longer!!
Cheers
Peter Freeman
Computing Support Officer
Eyre Regional Health Service
C/- Port Lincoln Health Services
Oxford Terrace
PORT LINCOLN SA 5606
Phone: 8683 2055
Fax: 8682 6947
Mobile: 0417 814 749
Email: Freeman.Peter@saugov.sa.gov.au
<mailto:Freeman.Peter@saugov.sa.gov.au>
____________________________________________________________________________
_
Information contained in this e-mail may be confidential and may also be the
subject
of legal professional privilege or public interest immunity.
If you are not the intended recipient, any use, disclosure or copying of
this e-mail is unauthorised.
If you have received this e-mail in error, please notify the sender
immediately.
____________________________________________________________________________
________
-----Original Message-----
From: Daryl Tester [mailto:dt@picknowl.com.au]
Sent: Saturday, 18 November 2000 2:37 PM
To: Freeman, Peter (ERHS)
Subject: Re:
Sorry Peter - I didn't see this until now, because of the
null
subject line (it got threaded with a really old message, and
I have ~2500 emails in my inbox at the moment).
"Freeman, Peter (ERHS)" wrote:
> Here's my modification to it, but it gives the following
errors:
> --Unexpected EOF while looking for `''
> --Line 9: syntax error
> It has me a bit confused, cause there's only 8 lines!
That's because it's looking for something, and fell of the
end of
the file looking for it.
> I'm sure the syntax is probably up the creek, but I'm not
sure where.
> (script newbies are a pain aren't they!)
> TIA
>
> #!/bin/sh
>
> awk -F:`
> {
> # Build the option line for useradd
> opt = "-u " $2 "" $1
> system("useradd -n -c -M -d /dev/null -s
/bin/false " opt)
> }' /home/fred/smbpasswd
Easy. "-F:`" should read "-F: '". No matching backtick
(which you
didn't want anyway). (and you've probably solved this by now
...)
--
Regards,
Daryl Tester, Software Wrangler and Bit Herder, IOCANE
Pty. Ltd.
"MS Linux is released under the provisions of the Gates
Private License, which
means you can freely use this Software on a single machine
without warranty
after having paid the purchase price and annual renewal
fees." -- mslinux.org
--
LinuxSA WWW: http://www.linuxsa.org.au/ IRC: #linuxsa on irc.linux.org.au
To unsubscribe from the LinuxSA list:
mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject
Index:
[thread]
[date]
[subject]
[author]
[stats]
Return to the LinuxSA Mailing List Information Page