Hi,
I've got no replies to my posting, so I sat down and played with "edauth"
and came up with the following script which can be used to copy the
databases to both, 4.0x and 5.0 systems:
(WARNING: Script may only be used at your own risk!!)
#!/bin/sh
if [ $# -eq 0 ]; then
echo "Usage: copyconfig alpha-host-name"
exit 1
fi
T=$1
echo "** WARNING: about to copy sys-config to $T"
echo "Return to continue:"
read a
PATH=$PATH:/usr/tcb/bin
edauth -d d -g >/tmp/d.auth
edauth -d f -g >/tmp/f.auth
edauth -d p -g >/tmp/p.auth
edauth -d t -g >/tmp/t.auth
edauth -d v -g >/tmp/v.auth
TAR=/tmp/cc$$.tar
tar cf $TAR /etc/passwd /etc/hosts /tmp/d.auth /tmp/f.auth /tmp/p.auth \
/tmp/t.auth /tmp/v.auth
rcp $TAR $T:$TAR
rsh $T "cd /; tar xvf $TAR; rm $TAR"
rsh $T "(cat /tmp/d.auth | /usr/tcb/bin/edauth -d d -s)"
rsh $T "(cat /tmp/f.auth | /usr/tcb/bin/edauth -d f -s)"
rsh $T "(cat /tmp/p.auth | /usr/tcb/bin/edauth -d p -s)"
rsh $T "(cat /tmp/t.auth | /usr/tcb/bin/edauth -d t -s)"
rsh $T "(cat /tmp/v.auth | /usr/tcb/bin/edauth -d v -s)"
rsh $T "rm /tmp/*.auth"
rm /tmp/*.auth
rm $TAR
echo Ready .....
#
# end of file
Tom
Here's my original posting.
> Hello,
>
> We are running a mix of 4.0x and 5.0 installations here with enhanced
> security but without NIS. I'm managing user accounts on one machine and
> simply copying the user account data (files in /tcb/files, /var/tcb/files,
> /etc/auth) to the other machines with a small shell script.
>
> This works great between 4.0x machines. However under Tru64 5.0, the
> format of the files apparently have changed.
>
> I've tried "convauth -d p" but this does not work. I think that one
> possible way would be to export all user profiles with edauth on the 4.0
> machines and import them with edauth on the 5.0 machine.
>
> Has anyone already come up with a method (or probably a small script) how
> to copy the user account data from a 4.0x to a 5.0 machine?
>
> Thanks // Tom
> --
> --------------------------------------------------------------------------
> Dr. Tom Leitner Dept. of Communications
> Graz University of Technology,
> e-mail : tom_at_radar.tu-graz.ac.at Inffeldgasse 12
> Phone : +43-316-873-7455 A-8010 Graz / Austria / Europe
> Fax : +43-316-463-697
> Home page : http://wiis.tu-graz.ac.at/people/tom.html
> PGP public key on : ftp://wiis.tu-graz.ac.at/pgp-keys/tom.asc or send
> mail with subject "get Thomas Leitner" to pgp-public-keys_at_keys.pgp.net
> --------------------------------------------------------------------------
> Before we have the paperless office, we have the paperless toilet!
>
>
--
--------------------------------------------------------------------------
Dr. Tom Leitner Dept. of Communications
Graz University of Technology,
e-mail : tom_at_radar.tu-graz.ac.at Inffeldgasse 12
Phone : +43-316-873-7455 A-8010 Graz / Austria / Europe
Fax : +43-316-463-697
Home page : http://wiis.tu-graz.ac.at/people/tom.html
PGP public key on : ftp://wiis.tu-graz.ac.at/pgp-keys/tom.asc or send
mail with subject "get Thomas Leitner" to pgp-public-keys_at_keys.pgp.net
--------------------------------------------------------------------------
Before we have the paperless office, we have the paperless toilet!
Received on Wed Feb 23 2000 - 11:20:15 NZDT