Ashley GC <[EMAIL PROTECTED]> writes:
> The rg option works well for restricting a queue to a set of users 
> according to their primary group, but would it be possible to check 
> the user's additional groups, for example, I have:
> 
> [EMAIL PROTECTED] ~]$ id
> uid=1200(ashley) gid=1300(admin) groups=1300(admin),1301(staff),1302(tech)
> 
> If I have :rg=admin: then I can print to the queue, but if I have 
> :rg=staff: then I cannot.

I run Solaris 8 systems with NIS+, and our nsswitch.conf contains
  group: files nisplus
which seems to cause getgrnam() to stop when it has found a match with
the /etc/group file.  So, to use rg=staff on a given system, I just remove
the staff line from the /etc/group file.  This lets the NIS+ database entry
for staff be revealed to LPRng.  Since the /etc/group line for staff has
no members, and our NIS+ database does, this works for us.  I suppose you
could also change the ordering in the nsswitch.conf file, at the risk of
other side effects....

Regards,
-- James Dugal, N5KNX
Director                        Internet: [EMAIL PROTECTED]
Computing Support Services      US Mail: PO Box 42770   Lafayette, LA  70504
U. of Louisiana at Lafayette    Tel. 337-482-6417       U.S.A.

-----------------------------------------------------------------------------
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:                           | example:
subscribe LIST <mailaddr>       |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr>     |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------

Reply via email to