From: Jamie C. <jca...@we...> - 2001-11-18 11:09:16
|
Secondary groups can be gotten from $ENV{'USERADMIN_SECONDARY'}, and on systems where a new group is created for the new user, it's name will be the same as $ENV{'USERADMIN_USER'} and it's GID will be $ENV{'USERADMIN_GID'} - Jamie Terry Davis wrote: > > Yes, I am seeing stuff in: > $action = "$ENV{ 'USERADMIN_ACTION' }"; > $username = "$ENV{ 'USERADMIN_USER' }"; > $uid = "$ENV{ 'USERADMIN_UID' }"; > $name = "$ENV{ 'USERADMIN_REAL' }"; > $home = "$ENV{ 'USERADMIN_HOME' }"; > $shell = "$ENV{ 'USERADMIN_SHELL' }"; > $pass = "$ENV{ 'USERADMIN_PASS' }"; > > Sorry about the assignments, I am being lazy, you get the point though. :) > > I am seeing values in all of those fields. I do see the members of the group > though as you said. > > Here is what I was looking for. When I create a new user, under Redhat, you > create a new group of that username. I want that stored in an ENV var somehow > as well as any secondary groups that are selected on that screen as well. > > Thank you! > > -- > Terry Davis > Systems Administrator > BirdDog Solutions, Inc. > (402) 829-6059 > > Quoting Jamie Cameron <jca...@we...>: > > > Terry Davis <td...@bi...> wrote .. > > > Hello! > > > > > > When I create a new user, there is a new group field that I want an > > > environment variable for. I know there are these: > > > $ENV{ 'USERADMIN_GROUP' } > > > $ENV{ 'USERADMIN_SECONDARY' } > > > $ENV{ 'USERADMIN_GID' } > > > > > > But none of those seem to contain anything when I create a new user. > > > > > > I am using version 0.88 on Redhat 7.1. > > > Any ideas? > > > > Assuming you are writing a perl script that is set in the module config to > > be run after changes are made, $ENV{'USERADMIN_GID'} should contain the gid > > of the new users primary group. Are you seeing anything in any of the > > environment > > variables? > > > > - Jamie |