星期三, 11月 24, 2010

Add group(s) to user in Linux or FreeBSD

Add group(s) to user in Linux or FreeBSD

FreeBSD :
pw usermod username -G grouplist
* grouplist is a comma(逗號) separated list of group to be assign to the username.
* Exit & login again for the group permission to take effect.

Linux :
usermod -G groupname username

沒有留言: