- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Unlimited number of group members
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
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
08-08-2002 05:00 AM
08-08-2002 05:00 AM
We have an application that runs with its own group ID and all users of that application have to be member of that group to be able to access its files. The number of users is steadily growing...
Editing /etc/group by hand (which seems to work locally) is no option since we're using NIS and ypxfr starts complaining when the maximum line length is exceeded.
The most obvious solution (making the application's group ID the default group ID for all its users in /etc/passwd) is also no option in this case since we have two such applications.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2002 05:07 AM
08-08-2002 05:07 AM
Re: Unlimited number of group members
Alternatively, have you contacted the application vendor to see if they can change the group requirement to make it a range of groups, or at least more than one?
HTH
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2002 05:07 AM
08-08-2002 05:07 AM
Re: Unlimited number of group members
Does
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xfed7f841489fd4118fef0090279cd0f9,00.html
HELP
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2002 06:07 AM
08-08-2002 06:07 AM
Re: Unlimited number of group members
The link posted by steeve seems to be the answer but I'm not sure about this:
grp1:101:user1,user2
grp1:101:user3
When logged in as user3 (HP-UX 10.20) and giving the commands
$ groups -g
users grp1
$ newgrp grp1
Sorry
$
This is not what I would expect.
On HP-UX 11.00 this works fine, though.
However, when using SAM two entries in /etc/group for the same group are combined to one if the lenght of both user lists do not exceed the maximum line length.
Also, when adding users with SAM to a second entry for the same group, SAM still complains about the lenght of the first line. Probably adding the second group entry before the first will do the trick, but I cannot test this thouroughly since it might result in our production system being unavailable...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2002 06:29 AM
08-08-2002 06:29 AM
Solutione.g.
bsp::125:tom,dick,harry
bsp2::125:mickey,donald,goofy
Only the first bsp entry will be displayed by ypcat groups but all those in the second bsp entry will still have gid 125 so that file permissions work.
If you have users which must be members of multiple groups via /etc/logingroup then you must make sure that they are listed in the first of the duplicate group entries since only that one will be known to NIS.
This is not a perfect solution but it does work given the maximum size of any NIS map (1024 bytes) entry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2002 06:37 AM
08-08-2002 06:37 AM
Re: Unlimited number of group members
I had this same issue before with the NIS setup. What I did was exactly as Clay mentioned. I had to split the users to different group names, but with the same GID. Infact this was recommended by HP support too.
The reason is that when you assign same GID to different names, you will get the same permissions, plus you will have the restrictions about max. limit. This is a small eg: I had a group called dbuser which has 100 users in it. I created dbuser with GID 2600, then created dbuser1, dbuser2 and dbuser3 with same GID. This setup works well till now!
gl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2002 02:32 AM
08-12-2002 02:32 AM
Re: Unlimited number of group members
I've tested it with SAM and NIS and it worked all right.
Thanks a lot.
Timo