groupadd --gid 600 friendCreate a user with a specific gid 'friend':
useradd -g friend -m usernameAdd a existing user 'username' to a group 'friend'
usermod -a -G friend usernameChange username's primary group to 'friend'
usermod -g friend username
Fedora, Red Hat, CentOS, Linux
groupadd --gid 600 friendCreate a user with a specific gid 'friend':
useradd -g friend -m usernameAdd a existing user 'username' to a group 'friend'
usermod -a -G friend usernameChange username's primary group to 'friend'
usermod -g friend username
No comments:
Post a Comment