- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- gid incorrect as user
Categories
Company
Local Language
Forums
Discussions
- Integrity Servers
- Server Clustering
- HPE NonStop Compute
- HPE Apollo Systems
- High Performance Computing
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Knowledge Base
Forums
Discussions
- Cloud Mentoring and Education
- Software - General
- HPE OneView
- HPE Ezmeral Software platform
- HPE OpsRamp Software
Knowledge Base
Discussions
Forums
Discussions
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
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-17-2003 08:54 PM
09-17-2003 08:54 PM
gid incorrect as user
I struggled to get it restored and finally ended up doing a lot of editing and praying.
Non of the users have complained .... yet, but one of the dbas says that a user they use does not have the correct gid. But if I do an id on the user as root it comes up correct.
user$ id
uid=5017(user) gid=400(usergroup) groups=1000(dba),422(othergrp),192(othergrp2)
root# id user
uid=5017(user) gid=1000(dba) groups=400(usergroup),422(othergrp),192(othergrp2)
The passwd file entry states that 1000 (dba) is the user's group.
I've done a pwck on the passwd file and all it seems to be fine.
I've done a grpck on the group file and it seems fine too.
And yes, logingroup is linked to group.
What have I done?
What do I do?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2003 09:28 PM
09-17-2003 09:28 PM
Re: gid incorrect as user
Can u post
# grep user /etc/passwd /etc/groups
I know this might sound stupid but check for newgrp command in the user profile
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2003 01:17 PM
09-18-2003 01:17 PM
Re: gid incorrect as user
/etc/passwd:user::5017:1000:user:/home/dirs/user:/bin/sh
/etc/group:usergroup::400:user
/etc/group:dba::1000:oracle,user
/etc/group:othergrp::422:user
/etc/group:othergrp2::192:user
No newgrp command in the user profile.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2003 01:20 PM
09-18-2003 01:20 PM
Re: gid incorrect as user
pwck
grpck
They will help you validate your errors.
Might I suggest regular fbackups and ignite backups.
Attaching the ignite script.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2003 01:39 PM
09-18-2003 01:39 PM
Re: gid incorrect as user
The newgrp command changes your group ID without changing your user ID and replaces your current shell with a new one.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2003 01:46 PM
09-18-2003 01:46 PM
Re: gid incorrect as user
As mentioned in my previous reply, there is no newgrp command in the user's profile.
We do ignite backups once a month, should I try restore the passwd file from there rather than from the OBII backups?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2003 08:24 PM
09-18-2003 08:24 PM
Re: gid incorrect as user
Try to create a new user, i.e "user2" with the same groups that "user". What happens? If the new user2 has the correct gid, check again "passwd" and "group" files and look for a clue.
Try also to remove "user" from the "groups" file, in the line "/etc/group:dba::1000:oracle,user"
Only an idea.
Hope this helps.
Kind regards,
Zigor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2003 08:38 PM
09-18-2003 08:38 PM
Re: gid incorrect as user
The users are added automatically and a passwd file is pushed out to my server when a new user is added. We're using something called KEON.
So I don't seem to have any control over my passwd file - thankfully I don't have to say the same about the group file.
I just got the guys who administer the KEON system to push a new passwd file to my server and everything seems to be OK.
I'm still not sure how it works because root seems to read the passwd file in /etc (as you can see from the id user output) but when you su into the user it doesn't read the right data.
I'll have to look into it some more
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2003 08:48 PM
09-18-2003 08:48 PM
Re: gid incorrect as user
Backup your current passwd file
#cp /etc/passwd /etc/passwd.
Just insert your ignite tape
#cd /tmp
#mt -f /dev/rmt/0mn rewind
#mt -f /dev/rmt/0mn fsf 1
#tar tvf /dev/rmt/0m passwd
#tar xvf /dev/rmt/0 passwd
"Make sure you have atleast one session with root logged in" for
Any password problems with the old file.