Friday 28 August 2015

Adding Users In Kali Linux

For my work purpose, I need to use Kali Linux now. Been experimenting with it a little bit, I applied my experience to add user within the OS but it seems not to go through at all.

Had quite a hard time and around half an hour spent thinking on the solution, here are the steps for the unfortunate :P

First, by default, you should be logging into Kali Linux as a root user. I am using Kali with the below version output:

root@XOX-LINUX:~# uname -a
Linux XOX-LINUX 4.0.0-kali1-amd64 #1 SMP Debian 4.0.4-1+kali2 (2015-06-03) x86_64 GNU/Linux

root@XOX-LINUX:~# lsb_release -a
No LSB modules are available.
Distributor ID: Kali
Description: Kali GNU/Linux 2.0
Release: 2.0
Codename: sana

And here are the steps for new user creation:

root@XOX-LINUX:~# adduser xoxuser
Adding user `xoxuser' ...
Adding new group `xoxuser' (1001) ...
Adding new user `xoxuser' (1000) with group `xoxuser' ...
Creating home directory `/home/xoxuser' ...
Copying files from `/etc/skel' ...
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Changing the user information for xoxuser
Enter the new value, or press ENTER for the default
Full Name []: Bob Nuxi
Room Number []:
Work Phone []:
Home Phone []:
Other []:
Is the information correct? [Y/n] y

Verification of new user:

root@XOX-LINUX:/etc# cat passwd | grep xoxuser
xoxuser:x:1000:1001:Bob Nuxi,,,:/home/xoxuser:/bin/bash

I'll edit this posting if any future changes are seen, but for now, hope it helps!

No comments:

Post a Comment