- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Unable to add more groups for one user
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
07-25-2002 04:47 AM
07-25-2002 04:47 AM
Here what I did:
Run SAM
- Accounts for Users and Groups
- Users
- [select user (tspence)]
- Menu -> Actions -> Modify Group Membership...
- added 4 groups (staff,ddrs,ddds)
- all exit
# id tspence
uid=316(tspence) gid=204(staff) groups=3(sys)
groups said sys? Where is other groups??? Any idea?
Thanks for your help...
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2002 04:51 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2002 04:52 AM
07-25-2002 04:52 AM
Re: Unable to add more groups for one user
Can you check if you actually added the user to the groups ?
grep "ddrs" /etc/group
grep "ddds" /etc/group
...
Is tspence actually in them ?
Regards,
Tom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2002 04:53 AM
07-25-2002 04:53 AM
Re: Unable to add more groups for one user
what does your /etc/group look like?
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2002 04:55 AM
07-25-2002 04:55 AM
Re: Unable to add more groups for one user
please run a
pwck
and
grpck
to veryfy if all groeps are corectly.
if this doen't work
please atacht the group file and the passwd file for a closer look.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2002 04:58 AM
07-25-2002 04:58 AM
Re: Unable to add more groups for one user
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2002 04:58 AM
07-25-2002 04:58 AM
Re: Unable to add more groups for one user
What is the output of:
# groups tspence
Chris
----------------------------
Wow fast respond!
Ok the output:
#groups tspence
ddds ddrs staff sys
Thanks. BUT I can't access one file like this:
drxwrxw--- dspence ddrs ... [filename]
How can I read the file even though I am ddrs group? Any idea?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2002 05:02 AM
07-25-2002 05:02 AM
Re: Unable to add more groups for one user
# id -nG tspence
Does it list all the groups you added for this user?
Hai
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2002 05:04 AM
07-25-2002 05:04 AM
Re: Unable to add more groups for one user
# id -nG tspence
Does it list all the groups you added for this user?
Hai
---------------------
output:
#id -nG tspence
staff sys
3 miss groups? Any idea?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2002 05:16 AM
07-25-2002 05:16 AM
Re: Unable to add more groups for one user
Have you logged out and logged back in (assuming you added these groups while logged in)?
What did this do?
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2002 05:17 AM
07-25-2002 05:17 AM
Re: Unable to add more groups for one user
...
Thanks. BUT I can't access one file like this:
drxwrxw--- dspence ddrs ... [filename]
...
In order to access the file,
you need to do this:
# newgrp ddrs
# do your work here
# newgrp
The last command will bring you back to your default group.
Hai
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2002 05:20 AM
07-25-2002 05:20 AM
Re: Unable to add more groups for one user
Have you logged out and logged back in (assuming you added these groups while logged in)?
What did this do?
Chris
-----------------------------
I just login as root first before I log in my account.
$ groups tspence
ddds ddrs staff sys
$ id tspence
uid=316(tspence) gid=204(staff)
Is that strange? No ddds, ddrs, and sys. Also I don't see any /etc/logingroup.... Do I need to have /etc/logingroup? I don't use NIS...
-Tom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2002 05:25 AM
07-25-2002 05:25 AM
Re: Unable to add more groups for one user
Yes, you definately need this
# ln -s /etc/logingroup /etc/group
you should see:
dmc03:/etc# ll login*
lrwxrwxrwx 1 root root 10 Jul 7 1998 logingroup -> /etc/gro
up
Read the man pages on logingroup
Hope this helps
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2002 05:29 AM
07-25-2002 05:29 AM
Re: Unable to add more groups for one user
Yes, you definately need this
# ln -s /etc/logingroup /etc/group
you should see:
dmc03:/etc# ll login*
lrwxrwxrwx 1 root root 10 Jul 7 1998 logingroup -> /etc/gro
up
Read the man pages on logingroup
Hope this helps
Chris
----------------------------
Ahh, I see but after I made ln but error...
#ln -s /etc/logingroup /etc/group
ln: /etc/group exists
You mean:
#ln -s /etc/group /etc/logingroup?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2002 05:37 AM
07-25-2002 05:37 AM
Re: Unable to add more groups for one user
This is what happens when you sleep upside-down all night.
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2002 05:39 AM
07-25-2002 05:39 AM
Re: Unable to add more groups for one user
I appreciate it!!!
-Tom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2002 05:42 AM
07-25-2002 05:42 AM
Re: Unable to add more groups for one user
/etc/logingroup (for the old 10.20 and earlier opsystems) defines the multi-membership groups and users. If it does not exist, users must use the newgrp command (a pain but works fine). By linking logingroup to group, then all multiple group memberships in group will be activated.
NOTE: do not copy group to logingroup since any changes made to group will not be reflected in logingroup.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2002 05:52 AM
07-25-2002 05:52 AM
Re: Unable to add more groups for one user
Should I?
1) #ln -s /etc/logingroup /etc/group
OR
2) #ln -s /etc/group /etc/logingroup
I picked #2, if I am wrong then I'll remove logingroup then how can I make new logingroup? Once you said 'can't copy group to logingroup'. I tried 'newgrp' command but no new file 'logingroup'? Any idea?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2002 05:58 AM
07-25-2002 05:58 AM
Re: Unable to add more groups for one user
If you do an ll on /etc/logingroup, you should see the output I posted previously. As Bill said, This link removes the need to execute the newgrp command. Also, by having the link instead of copying /etc/group into /etc/logingroup, any changes made to /etc/group is reflected in /etc/logingroup. Copying will not reflect any changes until another copy is made.
In short, If you have the link now, you are fine.
Chris