From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96109831930989.tru64-unix-managers.marc@archive.invalid> From: Larry Griffith Date: Thu, 15 Jun 2000 19:43:51 +0000 To: tru64-unix-managers Subject: [SUMMARY]Locating flex and migration of accounts from Tru64 to Solaris X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96109831930989 Dear Managers, The original post is at the end. There were lots of responses! I was given three locations for flex: ftp://ftp.gnu.org/non-gnu/flex/ (Missed that!) http://www.sunfreeware.com ftp://gatekeeper.dec.com/pub/BSD/NetBSD/packages/distfiles/flex-2.5.4a.tar.gz Apparently flex is not covered by the GNU Public License, so it's "non-gnu". The response on accounts was mixed. Several people told me that Solaris uses a different "crypt" than Tru64, so there is no shortcut (because the Alpha chip is little-endian). I received a couple of recommendations to use a null password and force people to change their passwords at first login (this worries me since at a college during the summer some people don't log in frequently; accounts with no password could be a target). Several people claimed to have scripts that do it; I've included one from Paul Yahnig which he attributes to Michael Matthews. Allen Carpenter recommended looking at http://docs.sun.com. I'll file a second summary on this when I actually try it next week. I also received one warning from William Magill that Solaris is considerably different than Tru64 and that I should prepare users for this. I expected that, but I have no management experience with Solaris so I have to educate myself first. Here's the script: #!/usr/local/bin/perl open(EDAUTH,"/usr/tcb/bin/edauth -d p -g |") || die "can't open edauth: $!\n"; while () { /:u_name=([^:]+):/ && do { $prpname=$1; }; /:u_pwd=([^:]+):/ && do { $prpasswords{$prpname} = $1; }; /:u_lock:/ && do { $locked{$prpname} = 1; }; }; close(EDAUTH); $filter = "root"; while (($name, $pwd, $uid, $gid, $quota, $comment, $gcos, $dir, $shell) = getpwent) { $tmpname = $name . ":"; if ($tmpname !~ $filter) { $added++; $password = "*"; $names{$name} = $name; $uids{$name} = $uid; $gids{$name} = $gid; $quotas{$name} = $quota; $comments{$name} = $comment; $gcosii{$name} = $gcos; $dirs{$name} = $dir; $shells{$name} = $shell; if (!$locked{$name}) { $passwords{$name} = $prpasswords{$name}; } else { print "NOTICE: ${name}'s account is locked\n"; $passwords{$name} = "*"; }; }; }; foreach $key (sort keys(%names)) { print "$key:$passwords{$key}:$uids{$key}:$gids{$key}:$comments{key}$gcosii{$key}:$dirs{$key}:$shells{$key}\n"; }; Paul warns that this script will not move the root account (no problem there for me) so the output must be appended to the password file. Responses were received from: John P Speno "William H. Magill" Frank Wortner Bob Bumpus Paul A Sand Chad Price Allen Carpenter Paul Yahnig Anthony A. D. Talltree Thanks to all of them and to anyone else who is still sending me mail. Original post: Dear Managers, After 10 largely happy years in the DEC world (Ultrix/OSF1) we're moving to SUN next week. I'm trying to prepare for the migration. Two problems have arisen (so far!). 1) We're currently running Tru64 v4.0D with C2. Is there any way to migrate the user accounts to Solaris 7 Server without simply recreating them? We have a small number of accounts right now (about 50) because of the summer break, but I don't want to change everybody's password. 2) I've been trying to collect all the open source software we've used on Tru64 for installation on Solaris. One package that I couldn't find, rather to my surprise, is GNU flex (no problem with bison). It isn't on the GNU site and an altavista search only turned up an old version. As far as I'm aware, the current version is 2.5.4a. If someone has it, would you send the .tgz file; if you know where it is, please let me know. Thanks for a great list! I'll stayed tuned in because you've given me many useful general UNIX tips and because we still hope to make the retiring 3000s some student's project. Larry ============================================================================ Larry Griffith Dept. of Computer & Info Science larry@cs.wsc.ma.edu Westfield State College (413) 572-5294 Westfield, MA 01086 USA PGP public key available at: http://cs.wsc.ma.edu/dcis/griffith.html ============================================================================