KategorilerKali

Create a User By hand

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.

run vipw to write etc/passwd

Edit /etc/passwd

simple information about /etc/passwd

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

create a user in etc/passwd

Edit /etc/group

simple information about /etc/group

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

create a group in etc/group

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

create directory as named d

we copy etc/skel directory under d directory.

copy operation

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

change of belonging

we change file privileges

group and other is assigned all privilige except write

Add new password

new password for d