Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security, Veeam & DevOps

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form

User account and process management in Linux

Posted on 03/11/202031/08/2026 Christian By Christian No Comments on User account and process management in Linux
  1. Home
  2. Linux
  3. User account and process management in Linux
Linux user management

The process is a program in execution. The process is created when a command is to be executed so, it can be called a running instance of a program in execution. Tuning or controlling a process is called Process Management. Please see How to install Windows Server 2022 on VMware Workstation, and How to Install Windows 10 on VMware Workstation.

There are two types of Linux processes, normal and real-time. Real-time processes have a higher priority than all of the other processes. If there is a real-time process ready to run, it will always run first. Real-time processes may have two types of policy, round-robin and first in first out

A user account is a technique for connecting a user and information service or computer network. A user account is comprised of a username, password and any information related to the user.

Locking a users’ password

Nevertheless, You can check the status of a user’s account with passwd –S username. To lock the password, use the command passwd –l username

Process management in Linux
Linux account administration

Similarly, You can also use grep username /etc/shadow to check the status of a user accounts password.

User privileges in Linux

The presence of the exclamation mark (!) as shown above means the password is locked. To unlock the password, use usermod –U username

Linux user management
Process management in Linux

Expire an account

Therefore, The above methods for locking a password or a user account will still allow a user to access his account by SSH authentication.

Nonetheless, other PAM modules even if the account is locked. To completely disable a user’s account, use the chage command.

chage –E0 username

Additionally, This will prevent every access to the account

Setting an account expiration date

In addition, You can use the chage command to set an account to expire at a particular date. The format will be chage –E “year-mm-dd” username. Consequently, The date within the quotation mark represents the expiry date.

Terminal command showing 'chage' usage to change the expiry date of a user account.

you can now check the new account settings by using chage –l username

Terminal output displaying account password change and expiration details including last password change date, password expiration date, and warning days before password expires.

Kill a users session

You can use the kill command to ‘kill’ a particular process after identifying the process i.d. As always, when running such a command, you have to be absolutely certain that is the process you want.

Furthermore, To effectively manage user accounts and process management in Linux, you will need the tty and pid component. To do this, you can use the who command or just w.

Terminal display showing system information including logged-in users, load average, and user activity.

However, After getting the tty, use it to get the matching pid component with the command ps –ft tty as shown below

Terminal output displaying processes with their details such as UID, PID, PPID, C, STIME, TTY, TIME, and CMD.
c
Now, you can kill the session using the pid. The command to use;
kill PID
For example;
kill 2757
or you can forcefully kill the process by using kill -9 2757

I hope you found this blog post on “User account and process management in Linux” helpful. Moreover, If you have any questions, please let me know in the comment section.

Thank you for reading this post. Kindly share it with others.

  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Facebook (Opens in new window) Facebook
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Telegram (Opens in new window) Telegram
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Bluesky (Opens in new window) Bluesky
Linux Tags:users

Post navigation

Previous Post: Set PowerShell Execution Policy via Windows Settings
Next Post: How to Disable HTTP TRACE Method for Apache, IIS, sunOne, and Lotus Domino

Related Posts

  • image 10
    Change Visual Studio Code UI language JIRA|Confluence|Apps
  • apache ubuntu 20 04
    How to Install Apache HTTP Server on Ubuntu 20.04 LTS Linux
  • HOW TO AUTOMATE A PROCESS IN LINUX@
    Shell Scripting: How to Automate a Process in Linux Linux
  • Locate Find and Grep Required 1
    A Brief Introduction to Linux and How to Create Disk Partition in Ubuntu Linux Linux
  • FEATURE IMAGE IMAGE
    Install and configure Prometheus for Monitoring on a Linux Linux
  • TERRAFORM ON LINUX FEATURE IMAGE
    How to Install Terraform on Linux Linux

More Related Articles

linux w640 h400 How to install and configure Ubuntu Linux on VirtualBox Linux
Webp.net resizeimage 1 Automate Infrastructure Deployments in the Cloud with Ansible and Azure Pipelines AWS/Azure/OpenShift
Linux basic commands: Master the ‘ifconfig’ Utility Linux
featurekube How to Install and Use Minikube on a Linux System Containers
SSL on WAMPServer Setup VirtualHost with SSL on WAMP Server Linux
Install Packages to Amazon Virtual Machine Using Terraform How to Install Packages to Amazon VM using Terraform AWS/Azure/OpenShift

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

vexpert-badge-stars-5

Virtual Background

VEEAMLEGEND

Categories

Top 30 Sysadmin blog

veeaam100

Veeam Vanguard

  • Screenshot 2022 04 02 at 23.18.48
    CVE-2022-26503 Veeam Agent for Microsoft Windows Vulnerability Backup
  • maxresdefault
    Install and manage IP Address Management on Windows Server Windows
  • edge7
    How to enable Adblocker on Microsoft Edge Windows
  • Azure Resource Locks protection e1778595941743
    Azure Resource Locks: Protecting Critical Cloud Resources from Accidental and Malicious Deletion AWS/Azure/OpenShift
  • sync
    AD Connect Sync Service Not Running: Start ADSync to Continue AWS/Azure/OpenShift
  • screenshot 2020 02 07 at 20.59.01
    How to use the utility “Whoami” in windows Windows
  • Dellupdate 1
    Fix for security vulnerabilities in the BIOS firmware for some Intel Processors Windows
  • Rules of Delegation
    Assign users with rights to reset password in Active Directory Windows Server

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,746 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Contact
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon
  • Bsky

Tags

Active Directory Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2026 TechDirectArchive

Loading Comments...

You must be logged in to post a comment.