Logo

dev-resources.site

for different kinds of informations.

Manage Those Users

Published at
1/30/2024
Categories
linux
ubuntu
debian
kalilinux
Author
odoth4kz
Categories
4 categories in total
linux
open
ubuntu
open
debian
open
kalilinux
open
Author
8 person written this
odoth4kz
open
Manage Those Users

Peace,

Linux is an amazing kernel to work with thus far. Learning more and more about the system and each time I think I know something, another topic becomes interesting. Today I wanted to speak about User Management which is quite important if you are a studying for cybersecurity. Why O? Well I learned that if you are running your system as root, it might not be a great idea. Great security practices recommend that you create a sub user that will have 'root' aka 'sudo' privileges. Let's speak on how to work with the user management in detail so you can gain understanding.

First off, let's define what a 'user' is. A 'user' is referred as individuals or entities that interact with the OS by logging in and performing various tasks. There are two types of users as well, System and Regular. A 'System User' is created by the system during installation and are used to run system services and applications. A 'Regular User' is created by the admin and can access the system and it's resources based on their permissions. Yes, you as the admin can make the 'regular user' gain access to certain files on the system which is great! I mean eh, there are those who can be trusted, but may not need ALL the access ya dig?! When users are created there are many properties that make of a such. The properties are the following: User ID, Group ID, Home Directory, Default Shell and Password.

Now that we have that out of the way, let's speak on how to manage these users using a few commands. Remember if you need any assistance when using the commands, always refer to the manual built within Linux.

User Management Commands

Creating a User
useradd <username>

  • When using the command you may be prompted to add details to the user. It's a common practice to fill as much as needed for the user as possible. I don't typically fill it out because I'm the sub user who just want my system to be secure.

Delete a User
userdel <username>

See all user accounts on system
sudo nano /etc/passwd

Sudoers file config
sudo nano /etc/sudoers

Change user password
passwd <username>

Give user the sudo (root) privilege
`sudo usermod -aG sudo

Switch users
su - <username>

Add users to a group
`sudo usermod -a -G '

Add users to multiple groups
sudo usermod -a -G group1,group2 username

There are many additional commands to execute user management, but these are just a few to start. Be sure to practice using a regular user with root privileges. This is recommended on just about every cybersec tutorial videos studied and it makes much sense. I'll provide resources for the commands and why user management is important in cybersec.

Until next post.

Peace

Resources

User Management

Don't use Root as a User if Possible

kalilinux Article's
30 articles in total
Favicon
Comprehensive Guide: Setting Up Gestures on Linux (Debian-Based Distributions)
Favicon
Master Password Attacks in Minutes! Ethical Hacking Guide πŸ”“
Favicon
How Hackers Use SS7
Favicon
Endpoint Security Bypass EXPOSED! Hackers Don't Want You to Know This!
Favicon
How to Set Up an Access Point with a Fake Captive Portal
Favicon
Kali Linux Basics: Your Gateway to Ethical Hacking
Favicon
Instalar BeEF en Kali Linux 2024
Favicon
Happy birthday #linux
Favicon
Linux OS & Basic Commands
Favicon
Getting Started with Kali Linux A Beginners Guide
Favicon
Kali Linux For Beginner
Favicon
Is Your PC Safe? How to Block Password Unlockers Like Chntpw in 2024πŸ’»πŸ”
Favicon
Automatically Change IP Address Ψͺغير اي بي Ψ¨Ψ΄ΩƒΩ„ ΨͺΩ„Ω‚Ψ§Ψ¦ΩŠ ΩƒΨ§Ω„ΩŠ Ω„ΩŠΩ†ΩƒΨ³
Favicon
Manage Those Users
Favicon
What is File Manipulation?
Favicon
Installing Essential Software on Kali Linux: Browsers, Office Suite, Code Editors, and More
Favicon
How to Change Linux Password Quickly and Easily
Favicon
Advance Free Debugger
Favicon
Hack WiFi using Kali Linux
Favicon
[Help me] Linux in the Virtual Machine
Favicon
Web simulation of Kali Linux
Favicon
Is hacking only done in Linux?
Favicon
Install Kali Linux 2022.2 On Your Android Device
Favicon
How to Install VirtualBox on Kali OS(2022)
Favicon
KALI LINUX: Common Commands that you should know : PART ONE
Favicon
Setting up and Using BloodHound in Kali Linux
Favicon
Configuring AWS EFS to work with Kali Linux running on AWS EC2
Favicon
Black-Tool
Favicon
How to vs code in Kali linux
Favicon
How to install nuclei in any linux ☠️

Featured ones: