tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY: How to copy the security database from 4.0x to 5.0?
@ 2000-02-23 11:19 Thomas Leitner
  0 siblings, 0 replies; only message in thread
From: Thomas Leitner @ 2000-02-23 11:19 UTC (permalink / raw)
  To: tru64-unix-managers


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@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@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@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@keys.pgp.net
--------------------------------------------------------------------------
    Before we have the paperless office, we have the paperless toilet!

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-02-23 11:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-02-23 11:19 SUMMARY: How to copy the security database from 4.0x to 5.0? Thomas Leitner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox