How to add remove user (standard user/non-root) in Kali Linux?
2017-04-22 21:31
686 查看
Add a user with all user directories already in place (thereby avoiding “Could not update .ICEauthority var/lib/gdm3/.ICEauthority” or any error containing .ICEauthority or
permission in general.
Add user to sudo group to allow him to use root commands. You can also
add user to ‘lpadmin’ group to allow printing for Canon or HP and
such. See Linux printing guide
Change default shell from chsh to bash. Or any shell like Bourne Shell (sh), Bourne-Again Shell (bash),
C Shell (csh) or Korn shell (ksh) etc.
Login as that user and demonstrate there were no errors.
Be able to use sudo and show groups affinity.
Delete that user safely.
Few benefits you have as non-root or standard user in Kali
Install and run Google Chrome
Install and run Gnome User and Groups manager (Install gnome-system-tools)
Use Kali as Primary Operating System without worrying about breaking it all the time.
Now let’s move onto actual guide.
First of all let’s confirm which version of Linux and Kernel I’m running.In command prompt type in
Now let’s add user. Open terminal and type following to create new user (replace user1 with your desired user name)
(Note: -m means create home directory which is usually /home/username)
Now set password for this user
Enter desired password twice
Add user to sudo group (to allow user to install software, allow printing, use privileged mode etc.)
(Note: -a means append or add and –G mean
to specified group/groups)
Change default shell of previously created user to bash
(Note: chsh mean change login shell, -s is the name of the specified shell
you want for the user, in this case /bin/bash)
Nice, all worked out as expected.
Let’s logout and login back as our new Standard Non-root user (user1)
permission in general.
Add user to sudo group to allow him to use root commands. You can also
add user to ‘lpadmin’ group to allow printing for Canon or HP and
such. See Linux printing guide
Change default shell from chsh to bash. Or any shell like Bourne Shell (sh), Bourne-Again Shell (bash),
C Shell (csh) or Korn shell (ksh) etc.
Login as that user and demonstrate there were no errors.
Be able to use sudo and show groups affinity.
Delete that user safely.
Benefits of Standard User in Kali:
Few benefits you have as non-root or standard user in KaliInstall and run Google Chrome
Install and run Gnome User and Groups manager (Install gnome-system-tools)
Use Kali as Primary Operating System without worrying about breaking it all the time.
Now let’s move onto actual guide.
Add user in Kali Linux:
First of all let’s confirm which version of Linux and Kernel I’m running.In command prompt type inuname –a lsb_release –a
Now let’s add user. Open terminal and type following to create new user (replace user1 with your desired user name)
useradd -m user1
(Note: -m means create home directory which is usually /home/username)
Now set password for this user
passwd user1
Enter desired password twice
Add user to sudo group (to allow user to install software, allow printing, use privileged mode etc.)
usermod -a -G sudo user1
(Note: -a means append or add and –G mean
to specified group/groups)
Change default shell of previously created user to bash
chsh -s /bin/bash user1
(Note: chsh mean change login shell, -s is the name of the specified shell
you want for the user, in this case /bin/bash)
Nice, all worked out as expected.
Let’s logout and login back as our new Standard Non-root user (user1)
相关文章推荐
- How To Use A Launchpad PPA (Add, Remove, Purge, Disable) In Ubuntu
- How to add user in gerrit
- How to disable button in Add/Remove Programs?
- How to hide an entry in the Add/Remove Programs applet?
- Linux: How to enable root user in Gnome for VirtualBox Fedora?
- How to log in with root user in ubuntu - sudo -s
- Linux: How to enable root user in Gnome for VirtualBox Fedora?
- How to Add a User and Grant Root Privileges on CentOS 6.5
- How to add a new user in linux and add it to a new group
- How to modify non-customizable entity in MS Dynamics CRM 4.0 (Add Product price column to Price List Item view)
- How to set a MySQL root user password in MAC OSX
- ABAP - REPORT - How to add user-pushbutton in selection screen
- How to enable the root user in Mac OS X Lion
- How to add icons to a SiteMap Menu in ASP .NET
- How to create a user in PostgreSQL
- How to create a read-only user in TFS source control
- How to restore deleted user accounts and their group memberships in Active Directory
- How to properly uninstall VERITAS Backup Exec (tm) 9.x if problems occur using Add/Remove Programs
- How to add a user and set environments for the user?
- HOW-TO: Remove embedded HTML in CQWP roll-ups