Provider
Florian Lohoff
flo at rfc822.org
Sat Jan 22 21:57:33 CET 2000
On Sat, Jan 22, 2000 at 09:31:11PM +0100, Florian Lohoff wrote:
> -----------------------------------------
> #!/bin/sh -e
>
> NAME=$1
> PW=$2
>
> LOGIN=`printf uu ; echo $NAME | sed -e 's/\..*$//' | cut -c 1-6`
>
> useradd -s "/usr/sbin/uucico -l" -d "/var/spool/uucppublic" $HOST
>
> echo $LOGIN $PW >>/etc/uucp/passwd
>
> echo $1 uucp:$1 >>/etc/postfix/transport
> postmap hash:/etc/postfix/transport
> -----------------------------------------
Und ein handwritten diff ...
-- uucpconfig
++ uucpconfig.net
@@ -6,9 +6,9 @@
LOGIN=`printf uu ; echo $NAME | sed -e 's/\..*$//' | cut -c 1-6`
- useradd -s "/usr/sbin/uucico -l" -d "/var/spool/uucppublic" $HOST
+ useradd -s "/usr/sbin/uucico -l" -d "/var/spool/uucppublic" $LOGIN
Flo
--
Florian Lohoff flo at rfc822.org +49-5241-470566
"Technology is a constand battle between manufacturers producing bigger and
more idiot-proof systems and nature producing bigger and better idiots."
More information about the Linux
mailing list