1.Create a group in Linux
groupadd <groupname>
Ex: groupadd trial
2.Create a user.
useradd -c "test user " -m -d /home/test -g trial -G trial -u 1000 -s /bin/bash test
options explained -c for comments
-d home directory for the user
-g primary group
-G secondary groups
-u uid
-s shell
groupadd <groupname>
Ex: groupadd trial
2.Create a user.
useradd -c "test user " -m -d /home/test -g trial -G trial -u 1000 -s /bin/bash test
options explained -c for comments
-d home directory for the user
-g primary group
-G secondary groups
-u uid
-s shell
No comments:
Post a Comment
Your suggestions please