Sunday, November 10, 2019

Users and Groups



Ø  groupadd groupName -: to create a group
Ø  useradd -G groupName userName -: to add a user to the related group
Ø  passwd userName  -: set a password to the related user
Ø  usermod -a -G  groupName userName -: to add a existing user to a existing group
Ø  login
press “Enter”
give username and password -: to login as related user
Ø  logout -: logout from the user
Ø  grep groupName /etc/group -: to search a group
Ø  userdel userName  -: to remove a user
Ø  groupdel groupName -: to remove a group


No comments:

Post a Comment

fork() - Theory

fork() is used create a new child process. Ø   No arguments Ø   Process ID of the child process Ø   After the execution of fork() command ...