how to new create and ID with tie to few groups and with expiry?

Can I know anyone knows how to create tie to few groups?Also the ID need to set the ID to expiry of 30 days.I only knows there are options of useradd and usermod.Will be appreciate is someone can help me.
[232 byte] By [dwarf007a] at [2007-11-26 17:38:28]
# 1

You can create an user with -g primary group and -G secondary group option to tie to few groups and you can do useradd -D -e 30 to expire it after 30 days.

# useradd -u uid -g primary-group -G sec-group1,sec-group2 -d home-dir user1

# useradd -D -e 30 --> to expire it after 30 days

or u can use

# usermod -e 30 to expire it after 30 days

Thanks,

Vasanth.

Vasanthana at 2007-7-9 0:06:37 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...