Discussion:
Copying to a new computer
(too old to reply)
@lbutlr
2018-01-15 23:12:10 UTC
Permalink
I am replacing an old machine with a newer machine and I want to be sure I can move the shell users to the new machine, especially since I am mostly going too be setting up the machine as new.

What are the minimal files that I need to copy over so that the users and groups from the old machine are on the new machine and without having to reset all the passwords?

(Most the users are in sql databases, so that's not an issue, but there are a few with shell accounts, those are the ones I'm concerned with.

I was intending to stick with v11.1 at this point.
--
We are born naked, wet and hungry; then it's all downhill.
Miroslav Lachman
2018-01-16 00:15:19 UTC
Permalink
Post by @lbutlr
I am replacing an old machine with a newer machine and I want to be sure I can move the shell users to the new machine, especially since I am mostly going too be setting up the machine as new.
What are the minimal files that I need to copy over so that the users and groups from the old machine are on the new machine and without having to reset all the passwords?
(Most the users are in sql databases, so that's not an issue, but there are a few with shell accounts, those are the ones I'm concerned with.
I was intending to stick with v11.1 at this point.
You can copy these files:

/etc/group
/etc/login.conf
/etc/master.passwd
/etc/passwd

And DB files

/etc/login.conf.db
/etc/pwd.db
/etc/spwd.db

Or you can recreate them with pwd_mkdb and cap_mkdb (see their man pages)

If you installed some shells like bash or zsh for users, then you must
installed them too and verify /etc/shells settings.

Additionally you may need a copy of /etc/profile and /etc/csh.cshrc if
you modified them.

Miroslav Lachman

Continue reading on narkive:
Loading...