Operating System - HP-UX
1834942 Members
2421 Online
110071 Solutions
New Discussion

Import users configuration

 
SOLVED
Go to solution
CSP_ALGERIA
Frequent Advisor

Import users configuration

hello ,

he have install a new L3000 running under HPUX 11.i .

we want to get from the old server D calss server running under 10.20 all users configurations and all printers configurations .

is it suffisant to copy the /home directory and the /etc/passwd?

and how about the printers?

thanks

Best regards
Nothing in the world can take the place of persistence.
7 REPLIES 7
G. Vrijhoeven
Honored Contributor

Re: Import users configuration

Hi,

For users that is the case. copy /etc/passwd/group and /homedirs. providing your system is not trusted. For printers i would suggest you to use addqueue to create the new printers on the second server. I tried copying once but that did not work for me.

Gideon
Karthik S S
Honored Contributor

Re: Import users configuration

Hi,

You need to take care of the following,

1. /etc/passwd
2. /etc/group
3. /etc/nsswitch.conf (hope u r not using NIS)
4. User home directories (they may not reside necessarily under /home for all the users. Be sure to check /etc/passwd for the locations)
5. /etc/lp

-Karthik S S
For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn
Mark Grant
Honored Contributor

Re: Import users configuration

You'll also want /etc/group, possibly all the cronjobs in /varspool/cron/crontabs. Maybe also /var/adm/cron/cron.allow and /etc/ftpusers if you have one.

Another useful one that could cause the odd problem is /etc/shells

For the printers, stop the scheduler with "lpshut" and copy across /var/spool/lp
and rather oddly, /etc/lp

There may be other things depending on what kind of services you have running.
Never preceed any demonstration with anything more predictive than "watch this"
Hoefnix
Honored Contributor

Re: Import users configuration

Yep, you can copy these passwd/group and home-dirs.
See if the D-system is a Trusted system, because then you have to look at the /tcb directory aswell, or reconfigure the system back to normal (tsconvert -r) and then copy passwd/group etc....

Check also the /etc/ftpd/ftpusers (if used)

The printer config you have to configure the same as on the D-system, we were not able to copy the printer config between systems in the past.

Regards,
Peter
G. Vrijhoeven
Honored Contributor
Solution

Re: Import users configuration

Hi,

After the addqueue command you can copy /etc/lp to copy evt. adjustments to interface scripts done.

Gideon
Mark Grant
Honored Contributor

Re: Import users configuration

In the name of balance. You have several people having problems copying printer configs across but I have to say, I have done this several times without issue. Just make sure you have both directories and the permissions remain the same. Make sure the FIFO file is still there at the end of your copy too. I think I once had to remove the SCHEDLOCK file but I don't realy know why.
Never preceed any demonstration with anything more predictive than "watch this"
Cheryl Griffin
Honored Contributor

Re: Import users configuration

To copy the printers, on the 10.20 system use SAM to save the printer configuration. Copy the saved file over to the 11.x machine and use SAM to restore the printer configuration.

SAM --> Printers & Plotters --> LP Spooler --> Save/Restore Spooler Configuration
"Downtime is a Crime."