Newgrp fails on only 1 group


 
Thread Tools Search this Thread
Operating Systems Solaris Newgrp fails on only 1 group
# 1  
Old 04-11-2014
Oracle Newgrp fails on only 1 group

I have a handful of users who can't 'newgrp' to one specific group from Solaris 9 and 10 nodes and always get this prompt:
Code:
newgrp: Password:

We never get prompted by 20+ other groups and this group never prompts for a password from Red Hat Linux nodes. Authentication comes from AD and there's password set there.
Code:
<cardinal-root># adquery group|grep dg.azsd01.clearcase.mpp
dg.azsd01.clearcase.mpp:x:387698:


Last edited by Corona688; 04-11-2014 at 07:36 PM..
# 2  
Old 04-12-2014
Perhaps the group has more members than newgrp can take?
Or the users are members of more than 16 groups?
# 3  
Old 04-12-2014
Also, the group id is quite high, perhaps that could play a role somehow? Or do the other groups also use gids that high?

Quote:
UIDs and GIDs over 60000 do not have full functionality and are incompatible with many Solaris features, so avoid using UIDs or GIDs over 60000.
Using Large User IDs and Group IDs (System Administration Guide, Volume 1)
# 4  
Old 04-14-2014
Thanks for the input. We know that newgrp only works for the first 16 groups which are output by the groups command (sans this one problem group). The GID is in fact over 60000, but we have working groups in the 6-figure range above this group.
This problem group has a huge number of members. Can someone point me to a doc which covers the max members that Solaris can handle in a group? As I mentioned, Red Hat is fine with this group. THX
# 5  
Old 04-15-2014
I think the problem is the limit in /usr/include/
Code:
nss_dbdefs.h:#define    NSS_BUFSIZ              1024
nss_dbdefs.h:#define    NSS_LINELEN_GROUP       ((NSS_BUFSIZ) * 8)
nss_dbdefs.h:#define    NSS_BUFLEN_GROUP        NSS_LINELEN_GROUP

So I guess the text line of one group line cannot exceed 8191 characters.
Workarounds:
1. You can split the group. Two group names with the same GID, and distribute the users on them.
2. You can download the newgrp.c from Opensolaris, it seems to not adhere to this limit, instead uses malloc() to store even the biggest lines.
This User Gave Thanks to MadeInGermany For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Programming

Sql ORA-00937: not a single-group group function

I'm trying to return only one row with the highest value for PCT_MAX_USED. Any suggestions? When I add this code, I get the ORA-00937 error. trunc(max(decode( kbytes_max, 0, 0, (kbytes_alloc/kbytes_max)*100))) pct_max_used This is the original and returns all rows. select (select... (3 Replies)
Discussion started by: progkcp
3 Replies

2. Shell Programming and Scripting

How to set up newgrp on .profile?

Hello all, I am having an issue setting up an environment on .profile. I want to set up my .profile in that way that everytime I login to the host, it should automatically set up my group. I tried the folllowing but it doesn't work. It is on the solaris OS. HOSTNAME=$(hostname) if ] || ]... (14 Replies)
Discussion started by: Pateltiger
14 Replies

3. Shell Programming and Scripting

How to use newgrp or sg in user mode without password prompt?

Hi, Is it possible to call newgrp or sg from user mode without password prompt in a Linux script? Thank you. hce (2 Replies)
Discussion started by: hce
2 Replies

4. Shell Programming and Scripting

need a one liner to grep a group info from /etc/group and use that result to search passwd file

/etc/group tiadm::345:mk789,po312,jo343,ju454,ko453,yx879,iy345,hn453 bin::2:root,daemon sys::3:root,bin,adm adm::4:root,daemon uucp::5:root /etc/passwd mk789:x:234:1::/export/home/dummy:/bin/sh po312:x:234:1::/export/home/dummy:/bin/sh ju454:x:234:1::/export/home/dummy:/bin/sh... (6 Replies)
Discussion started by: chidori
6 Replies

5. Shell Programming and Scripting

what is the right way to use newgrp in script

my requirement is $ id user o/p for the above command $ uid=1(user) gid=2(x) a user is involved in 3 groups x,y,z whenever the user try to execute a script, script should ask for the group as input from user ,assume the group he wants to change as Y and the rest of the... (3 Replies)
Discussion started by: ram_unx
3 Replies

6. Shell Programming and Scripting

Automating 'newgrp' command - how?

Hi, I have to add the 'newgrp' command to my login (.cshrc) script. The problem is that if I add it, it comes to infinite look, since newgrp opens new shell again and again. How to automate the newgrp when I have to login, and avoid that loop? Currently I'm thinking of a condition that... (2 Replies)
Discussion started by: moshmosh
2 Replies

7. UNIX for Dummies Questions & Answers

Touch fails for group member

Hello all, I have a group - grpchg - which has 2 members 1) grpmem1 2) chgmem1 The first member creates a dir and gives write permission to itself and for the group - and reads like this: drwxrwsr-x However the other member is unable to create files in the dir. I even gave drwxrwxr-x... (1 Reply)
Discussion started by: mohanprabu
1 Replies

8. UNIX for Dummies Questions & Answers

newgrp in a script

I want to do these commands in a script: if the user name is 'toto' then the user switch to the group toto_group and then 2 others scripts are launched. Unfortunately, after the command 'newgrp' the 2 scripts are not launched correctly. But if I do the same, by hand, one line per one line, it... (11 Replies)
Discussion started by: Nathe
11 Replies

9. UNIX for Advanced & Expert Users

newgrp command

I'd like to make an alias of commands which contains the command newgrp. exple: alias my_cmde newgrp toto; my_pg & this line doesn't work. why ? Thanks for your help (2 Replies)
Discussion started by: Nathe
2 Replies
Login or Register to Ask a Question