Monday, April 27, 2009

Unix groups, users

On ubuntu (if you don't have access to the gui):

To create a user:
useradd -m -s /bin/bash *username*
passwd *username*
To create a group:
groupadd *groupname*
To add users to that new group:
usermod -a -G *groupname* *username*

No comments:

Post a Comment