INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS
Come Join Us!
Are you a
Computer / IT professional?
Join Tek-Tips now!
- Talk With Other Members
- Be Notified Of Responses
To Your Posts
- Keyword Search
- One-Click Access To Your
- Automated Signatures
On Your Posts
- Best Of All, It's Free!
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.
Partner With Us!
"Best Of Breed" Forums Add Stickiness To Your Site
(Download This Button Today!)
"...Really appreciate your site. Really good site for learning what others do when they run into problems. You guy's are great!!!..."
Where in the world do Tek-Tips members come from?
How can I transfer SCO accounts (passwd information) to Linux?
Posted: 16 Dec 01
From http://pcunix.com/SCOFAQ/scotec1.html#ilinuxpass :
If the SCO passwd file has the encrypted password in its second field (in other words, the system isn't using /etc/shadow), then this simple script will work:
cat scopasswdfile | while read line
useradd -c $5 -p $2 -s /bin/bash -d /home/$1 -m $1
This requires a current version of "useradd"; the older versions don't take encrypted passwords with -p
Normally, however, the encrypted passwords will be in /etc/shadow. This needs a little more work:
sort scopasswd > /tmp/p1
sort scoshadow > /tmp/p2
join -t: /tmp/p1 /tmp/p2 > /tmp/pscopass
cat /tmp/pscopass | while read line
useradd -c $5 -p $8 -s /bin/bash -d /home/$1 -m $1
Note that only the first 13 characters in the non-shadow passwd file are the encrypted password; the rest (stuff after the comma) is for password aging: see "man F passwd".
Back to SCO: SCO Unix FAQ Index
Back to SCO: SCO Unix Forum
Join Tek-Tips® Today!
Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.
Here's Why Members Love Tek-Tips Forums:
- Talk To Other Members
- Notification Of Responses To Questions
- Favorite Forums One Click Access
- Keyword Search Of All Posts, And More...
Register now while it's still free!
Already a member? Close this window and log in.
Join Us Close