Michael Treacy hath declared on Tuesday the 13 day of April 2004 :-:
> >Could he not just add the users and groups change the uid and gids in the
> >/etc/passwd and /etc/groups to suit the old system and mount the old drives
> >/home as /home ??
>> Only problem is, I have a few hundred users, 'cos its a server in a school
> lab! I'd rather not have to add them all again if I didn't have to....
Yeah... you will probably get away with just copying over the old
password files... however you should take care doing it, there may
be new important system accounts in the defailt password files in 9
Things might go a little screwy if they are missing or there are
incorrect entries....
I've done this numerous times and got bitten by the missing mailman user
problem* where cron jobs would fail and eventually fill up /var with
zillions of error logs (what the frik is wrong with one error log ??).
The files you need to copy would be:
/etc/passwd
/etc/shadow
/etc/group
/etc/gshadow (perhaps)
Just take some time to check that all the system accounts/groups exist
and that their shell / home directory / group entries are correct...
You could use something ugly like the following to check for missing
accounts...
awk -F: '{print "^" $1 ":"}' old_passwd | fgrep -vEf - new_passwd
Other things that you have re-configured yourself may need some looking
into... random services, global shell rc scripts, global configs, etc...
- bobb
* Alternatively called, accidentally installed the mailman package as
"Install Everything" is considerably easier on ReadHat.... :)
--
Mr. Rogers could explain shoe-tying and make it seem like the coolest
thing in the world. He was our Uncle and older brother. He told us we
were special, and we knew he'd be there for us.
A cult leader, right down to the sneakers.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!