Author Topic: Set primary group  (Read 1403 times)

rcmarotz

  • Zen Apprentice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Set primary group
« on: January 26, 2009, 02:12:56 am »
Is there a way to set a user's primary group through the web interface?  And if not, then what is the easiest way to accomplish this.
Thanks in advance, Ryan

Javier Amor Garcia

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1225
  • Karma: +12/-0
    • View Profile
Re: Set primary group
« Reply #1 on: January 26, 2009, 03:10:04 pm »
There is no way to set the user's primary group thru the web interface.
All created user have as primary group the group '__USERS__'.
If you want to change the primary group you need to edit the user's LDAP attribute called 'gid'; it must be setted to the gid of the primary group.

Cheers,
  Javier

rcmarotz

  • Zen Apprentice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Set primary group
« Reply #2 on: January 26, 2009, 03:43:13 pm »
Javier,
Thank you for the quick reply.  I ended up using "smbldap-usermod -g" to change the primary groups of my users.  I hope that this does not cause any issues with ebox.
« Last Edit: January 26, 2009, 03:47:50 pm by rcmarotz »