- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- useradd/usermod and number of groups they accept
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
Discussions
Discussions
Forums
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
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
тАО03-10-2011 02:27 PM
тАО03-10-2011 02:27 PM
useradd/usermod and number of groups they accept
- refuses to accept more than just 20, whether listing the longer text names, or when command length is reduced with group numbers (so it is not ling length at work here). Is there a fix somewhere for this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-10-2011 04:00 PM
тАО03-10-2011 04:00 PM
Re: useradd/usermod and number of groups they accept
Far as I know there is a hard limit of 20 groups a single user can be a member of for 11.11 and 11.23.
I believe the limit may be changeable in 11.31.
root@dxp12nfs# kctune | grep group
ngroups_max 20 Default Immed
Please post the version of the OS you are using.
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
тАО03-11-2011 04:47 AM
тАО03-11-2011 04:47 AM
Re: useradd/usermod and number of groups they accept
Try the command as a shell script, so you can eliminate the shell's command-lenght limit. What is the output?
Unix operates with beer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2011 08:48 AM
тАО03-11-2011 08:48 AM
Re: useradd/usermod and number of groups they accept
I initially tried the command from a script using group names in text form, and its cryptic error message led me to believe that the command line was too long; converted to group numbers. However, usermod now states specifically "Too many groups specified":
useradd -u 1600 -g 20 -G 114,120,864,117,804,112,182,104,200,170,115,121,1117,118,1119,110,181,105,134,135,1121,136,184,137,178,133,20,1109,116,122,1118,119,173,111,183,107,167 -s /bin/ksh -c "fake e user" fakeuser
Too many groups specified
# getconf NGROUPS_MAX
256
AFAIK, I am correctly entering the parms, but it is not working. What might I be missing?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2011 11:59 AM
тАО03-11-2011 11:59 AM
Re: useradd/usermod and number of groups they accept
what was the command you used to change the parareter? did you check the kclog afterwards for any indications?
what does the command kctune show it as now
#kctune ngroups_max
you shuldnt have needed to, but did you reboot afterwards? if changed with the -h option?
There was a patch to install for this feture as well, you obviously have this, or a later release of 11.31, but there are alot of patches that need to go along side of it as well, dont know if you have though about this side of things
see
ftp://g1u1297.austin.hp.com/hp-ux_patches/11.X/PHKL_38095.txt
All long shots from me, but just a few things I would start with, you may have already
Andy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-11-2011 02:30 PM
тАО03-11-2011 02:30 PM
Re: useradd/usermod and number of groups they accept
kctune shows ngroups_max 255 255 Immed
Yes, we did reboot as we were applying maintenance. This was the early 2011 patching, and we do it 2x a year. Been on 11.31 for awhile.
It will take awhile to sort through all the superceeded patches, but we *ought* to have all we need on there. Famous last words, of course. Will pursue the details next week.
Thanks.