we can add user with “useradd” command but also it is possible to create a user by hand. Therefore I try to add a user by hand.
firstly we edit /etc/passwd file with vipw. “vipw” provides secure editing.

Edit /etc/passwd

we create user as named d and we assign group id as its id 1007.

Edit /etc/group

we write group id /etc/group. We open the file to write operations with vigr that edit /etc/group

we create directory that used for new user d with mkdir command in under the home directory.

we copy etc/skel directory under d directory.

With chown command, we change the users and groups of those under the d file.

we change file privileges


Add new password
