Try
The -G will print all group IDs and -n will print in human readable format.
Here is an example:
Code:
useradd rocky
id -Gn rocky
Create a secondary group called ftp
Add rocky to secondary group called ftp
Code:
usermod -a -G ftp rocky
Now print all membeship
You should see rocky as primary and ftp as secondary group.
__________________
Rocky Jr.
You may have my body & soul, but you will never touch my pride!
If you have knowledge, let others light their candles at it.
Certified to work on
HP-UX /
Sun Solaris /
RedHat