1833776 Members
2191 Online
110063 Solutions
New Discussion

Re: Passwd & group file

 
rajeshk
Advisor

Passwd & group file

Hi,
I took the backup copy of passwd file,group file and home directory tar file from old system HP-UX 11.00.
Now i need to use the same users/password and home directories which they already used. Can i replace the current one to old which i took backup. Does it face any problem. But when i use untar the home directories it shows the UID & GID somes numbers.

How to proceed on this?
Help me.

Thx
K.Rajesh
2 REPLIES 2
John Payne_2
Honored Contributor

Re: Passwd & group file

If the users can get in and the only problem is that they do not own their own home directory, might I suggest that you just chown -R on the ones that need it? (And be done with it...)

It should not have done that if everythings really happy. Do most of the gid's and uid's match up?

John
Spoon!!!!
T G Manikandan
Honored Contributor

Re: Passwd & group file

Rajesh,

when you untar the home dir files it will show the UID and GID as numbers as these files on the source system has a owner of UID (that value) and group with GID (that number value).
If you want to copy the passwd and group files from the source machine.
Copy /etc/passwd into /tmp on the source system.
vi /tmp/passwd and remove all the system users root,sys,adm,etc.
Then just ftp it to the target machine.
Take a backup of the existing passwd file and then just append this file to the existing passwd file.
Do the same to /etc/group

Make sure that you open a session for root and keep that alive until everything works successfully.

Thanks