HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Passwd & group file
Operating System - HP-UX
1833828
Members
2464
Online
110063
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2003 05:01 AM
03-04-2003 05:01 AM
Passwd & group file
Hi,
I took the backup copy of passwd file,group file and home directory tar file from 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 UID & GID show's somes numbers.
How to proceed this? Help me.
Thx
K.Rajesh
I took the backup copy of passwd file,group file and home directory tar file from 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 UID & GID show's somes numbers.
How to proceed this? Help me.
Thx
K.Rajesh
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2003 05:31 AM
03-04-2003 05:31 AM
Re: Passwd & group file
Hi,
Are you sure that is the same files structure?
If not try untaring them in other directory!
To ensure same UID and GID of these files, first make a "tar -tvf" and look if stored UID and GID correponding with your current UID and GID of your /etc/passwd and /etc/group files. To show your currents UID and GID values use:
#ll -n /etc/passwd /etc/group
Then, third and fourth columns show you the current owner a group ID's of these files. These numbers must match with third and fourth fiels (":" separated)of owner definition into /etc/passwd file. And fourth column (GID) of /etc/passwd file must match with third column (GID) into /etc/group file.
In any case, I suggest you that make a copy of these **important** files and compare them before overwite them, of course, to do this you need untar stored files into anoter dir. To compare current files with stored files you can use diff command (man diff). In case of "go back" action will be needed, just rename your previous copies to original names.
Rgds.
Are you sure that is the same files structure?
If not try untaring them in other directory!
To ensure same UID and GID of these files, first make a "tar -tvf
#ll -n /etc/passwd /etc/group
Then, third and fourth columns show you the current owner a group ID's of these files. These numbers must match with third and fourth fiels (":" separated)of owner definition into /etc/passwd file. And fourth column (GID) of /etc/passwd file must match with third column (GID) into /etc/group file.
In any case, I suggest you that make a copy of these **important** files and compare them before overwite them, of course, to do this you need untar stored files into anoter dir. To compare current files with stored files you can use diff command (man diff). In case of "go back" action will be needed, just rename your previous copies to original names.
Rgds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2003 06:06 AM
03-04-2003 06:06 AM
Re: Passwd & group file
If you follow post 1 guidelines you can get away with the transfer.
It's far easier to add the groups in new and then the users with a temporary password.
Set them up to require password change at next login(with sam or passwd command line). You also want to make sure the id is only good for a limited time period. I'd go trusted system to make this stuff easier.
When you go live you notify the user community that there will be a forced password change and they must log in and use their id's within say 5 business days.
Though I rarely discuss PR, such a move shows you and your department as security conscious, and makes it known that a new system is going into production. A little positive visibility never hurts at salary and budget time.
* Note: A friend trying to reach me at work had to speak to six people before he found anyone that knew me. With no production downtime in two years my users don't know who I am or what I do at all any more.
SEP
It's far easier to add the groups in new and then the users with a temporary password.
Set them up to require password change at next login(with sam or passwd command line). You also want to make sure the id is only good for a limited time period. I'd go trusted system to make this stuff easier.
When you go live you notify the user community that there will be a forced password change and they must log in and use their id's within say 5 business days.
Though I rarely discuss PR, such a move shows you and your department as security conscious, and makes it known that a new system is going into production. A little positive visibility never hurts at salary and budget time.
* Note: A friend trying to reach me at work had to speak to six people before he found anyone that knew me. With no production downtime in two years my users don't know who I am or what I do at all any more.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP