-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

>>>>> "Ritesh" == Ritesh Raj Sarraf <[EMAIL PROTECTED]> writes:

    Ritesh> Hello all,

    Ritesh> a generic problem.. a user foo is made member of a, b, c,
    Ritesh> d, e groups.  well, now i need to add him to the z group
    Ritesh> too. usermod says us to bring all previous group names the
    Ritesh> user is the member of..  now how do i query what groups a
    Ritesh> user is member of?

Something like,

usermod -G $group,`id $user | sed -e 's/.*groups=//' -e 's/([^)]*)//g' $user

Regards,

- -- Raju
- -- 
Raj Mathur                [EMAIL PROTECTED]      http://kandalaya.org/
       GPG: 78D4 FC67 367F 40E2 0DD5  0FEF C968 D0EF CC68 D17F
                      It is the mind that moves
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.6 and Gnu Privacy Guard <http://www.gnupg.org/>

iD8DBQE/Rd3DyWjQ78xo0X8RAmbwAJwPv5pUR+E90Z/rBvnR0fAkcOBwsACeKfVT
dXip29fXC/lIei+0tbq+Ajw=
=E2Cr
-----END PGP SIGNATURE-----


-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to