- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /etc/groups & /etc/passwd is missing user informat...
Categories
Company
Local Language
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
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
Community
Resources
Forums
Blogs
- 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
09-14-2008 11:26 PM
09-14-2008 11:26 PM
/etc/groups & /etc/passwd is missing user information.
I find this strange situation on one of the HPUX box.
there is a user 'prakashg' existing on this machine. But its user and groups are not visible in /etc/groups/ & /etc/passwd files.
But that user can enter the machine using his password.
also he can execute commands as a normal user (not super user).
when i give id prakashg below are the entries i can see....
id prakashg
uid=11512(prakashg) gid=36(cer) groups=605(cvsusers1)
i tried to delete the user in command promt...but it did not delete with the below output.
userdel prakashg
Login 'prakashg' does not exist
Strange is...this system doesn not have a groups as it specifies above for the user.
Even SAM doesnt display the user and its groups.
I tried to manually recreate the user by making an entry into the passwd and groups file in /etc/ then tried to delete using the userdel command. the new entries were deleted, but the old user again reappeared.
Can you help here?
Regards,
Shyam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2008 11:40 PM
09-14-2008 11:40 PM
Re: /etc/groups & /etc/passwd is missing user information.
Really its a strange problem, you can do one thing create the same user by SAM and change the passwd, check with id command is it same what you are mentioned there ? then try to login with old passwd see what is happening, if you are not able to login with old passwd then delete the user through SAM.
I donâ t know it will work or not just try
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2008 11:45 PM
09-14-2008 11:45 PM
Re: /etc/groups & /etc/passwd is missing user information.
check the user with logins command.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2008 11:45 PM
09-14-2008 11:45 PM
Re: /etc/groups & /etc/passwd is missing user information.
give the output of below
grep username /etc/passwd
id username
more /etc/group
You can delete the user with
userdel -r username
Thanks
SKR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2008 12:49 AM
09-15-2008 12:49 AM
Re: /etc/groups & /etc/passwd is missing user information.
as you said... i tried to
1) grep prakashg /etc/passwd (none found)
2) more /etc/groups (no groups as by name in the id command was found).
3) create the same user with SAM. (user already exists it said).
In all the above cases it failed, reasons as in paranthesis above.
id prakashg
gave me the details as below....
uid=11512(prakashg) gid=36(cer) groups=605(cvsusers1)
the groups cer and cvsusers1 does not exists in the system.
after all this i went on to recreate them all and then delete them. but i did not succeed in recreating the groups. wonder where they came from.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2008 12:53 AM
09-15-2008 12:53 AM
Re: /etc/groups & /etc/passwd is missing user information.
logins command output for prakashg(user) is as below...
logins -l prakashg
prakashg 150 users 20 ,,,
logins for cer group is quite large, since there are many user associated with that group. not the same case for cvsusers1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2008 01:10 AM
09-15-2008 01:10 AM
Re: /etc/groups & /etc/passwd is missing user information.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2008 01:14 AM
09-15-2008 01:14 AM
Re: /etc/groups & /etc/passwd is missing user information.
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1224883
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2008 01:28 AM
09-15-2008 01:28 AM
Re: /etc/groups & /etc/passwd is missing user information.
Yes, It seems that you have a NIS server there. Please check this that NIS is existing or not on your Setup.
Once you logged there pls run pwd to see where is the home directory of the user and also check the bdf command.
Pls check /etc/auto.master, and other file s inside the /etc start with auto*.
Check /etc/nsswitch.conf and /etc/nsswitch.nis file
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2008 02:24 AM
09-15-2008 02:24 AM
Re: /etc/groups & /etc/passwd is missing user information.
prakashg:QOIh.0L/GEMGs:11512:36:Ashok Prakash#11111111#,Bangalore,N/A,prakashg,:/h/prakashg:/bin/csh
there is specific home directory created for this user and its been hardly used.
the home directory points to / location.
first few lines of the file /etc/rc.config.d/namesvrs looks as below...
NIS_MASTER_SERVER=0
NIS_SLAVE_SERVER=0
NIS_CLIENT=1
NISPLUS_SERVER=0
NISPLUS_CLIENT=0
I feel there is no NIS master and slave associated to here. Correct me if i am wrong.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2008 03:00 AM
09-15-2008 03:00 AM
Re: /etc/groups & /etc/passwd is missing user information.
> prakashg:QOIh.0L/GEMGs:11512:36:Ashok Prakash#11111111#,Bangalore,N/A,prakashg,:/h/prakashg:/bin/csh
This confirms that your system is setup as an NIS client. NIS is a service that provides another password and group file that is not on your computer. Normally, when NIS is setup, most all users are documented on the NIS master.
> NIS_CLIENT=1
> I feel there is no NIS master and slave associated to here. Correct me if i am wrong.
Indeed you are setup to be a client and it is working correctly.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2008 04:00 AM
09-15-2008 04:00 AM
Re: /etc/groups & /etc/passwd is missing user information.
you have not assigned the points to any these Gurus who have given their precious time to resolve your problem.
assign them proper points..