Adding/deleting users to/from ldap groups could be easier
Brought to you by:
matheny
The only way to add or delete users to/from ldap groups
is the -G swtich. It requires me to always list all
groups I want a user to be member of.
So, if I wanted to add user foo to the group bar, I had to:
getent group | grep foo
bar1:x:1234:foo,foo0
bar2:x:1235:foo
foo:x:2999:
cpu usermod -G bar,bar1,bar2 foo
I found gpasswd's interface much more convinient.
Thanks for you work,
- odin /dot/ kroeger /at/ univie /dot/ ac /dot/ at
Logged In: YES
user_id=55851
I found that if you use cpu usermod, and don't specify -G
at all, then the user is removed from ALL groups. It's too
easy to accidentally remove users from all groups this
way.
(This is on CPU 1.4.3)
Cheers, Chris.