[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: user/3481: adduser(8) not honouring 'other_groups' in /etc/adduser.conf



The following reply was made to PR user/3481; it has been noted by GNATS.

From: jared r r spiegel <jrrs_(_at_)_ice-nine_(_dot_)_org>
To: "Todd C. Miller" <Todd_(_dot_)_Miller_(_at_)_courtesan_(_dot_)_com>
Cc: gnats_(_at_)_openbsd_(_dot_)_org
Subject: Re: user/3481: adduser(8) not honouring 'other_groups' in /etc/adduser.conf
Date: Sat, 20 Sep 2003 12:35:25 -0600

 On Sat, Sep 20, 2003 at 11:04:30AM -0600, Todd C. Miller wrote:
 > What makes you think you should be able to use an "other_groups"
 > variable in /etc/adduser.conf?
  
   i got that impression after seeing the 'sub new_users_groups {'
   section; and what i interpreted ( perhaps wrongly ) as it
   checking for the existance of the 'other_groups' parameter.
 
 > There is no global variable by that
 > name in adduser, so by removing the local declaration you effectively
 > add one. 
 
   i was also looking for this due to adduser asking about 
   "invite $name into other groups:", and hoping there was a mechanism
   to define what other groups one would like to have as a default
   listing.
 
   it seems i need to re-read the script and get to clearly understand
   the differences between global variable and local declarations.
 
 > In fact, you can put just about anything you want in
 > /etc/adduser.conf and it will set a variable with that name...
 
   fwiw, my rationale was that perhaps 'other_groups' was a vestigal
   variable that had code existing to handle it.   this is in contrast
   to something like setting a variable of
 
 create_smbpass = yes
 
   and expecting adduser to prompt me to setup a user's samba password...
   in this case, there is no existing code in adduser to expect to deal
   with that, so i wouldn't assume to think that it was something adduser
   was expecting to handle; however since the 'other_groups' section
   seemed to me to be saying "look for an 'other_groups' var in adduser.conf,
   and if it is set, use that as $other_groups; if it is unset, set $other_groups
   to "no", then prompt the administrator for other groups to add this user to."
   which could certainly be my fault at in interpreting it wrong.
 
   sorry for the faulty report.
 
   jared.



Visit your host, monkey.org