Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form
Home » Linux » User account and process management in Linux
  • jmeterlogo 3
    Install and conduct performance testing using Apache JMeter on your Web App Configuration Management Tool
  • Featured image BSOD
    How to troubleshoot and fix Windows 11 blue screen Windows
  • maxresdefault 2 7
    How to record your screen with PowerPoint and make slide shows Mac
  • Featured image RAM requirement for PC
    How much RAM does your Windows PC really need? Windows
  • wds
    What are the differences between Lite-Touch and Zero-Touch installation? Windows
  • Preventing Attacks on Cisco Switches Blog Header
    How to enable ssh via ASDM on Cisco ASA Network | Monitoring
  • screenshot 2020 04 26 at 19.14.07
    Windows 2016 Servers do not show up on the WSUS console Windows Server
  • remove Windows PC from you iCloud Account completely
    How to remove Windows PC from your iCloud Account completely Mac

User account and process management in Linux

Posted on 03/11/202008/09/2023 Christian By Christian No Comments on 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. 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.

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

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.

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

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.

Rate this post

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

  • Click to share on X (Opens in new window) X
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Telegram (Opens in new window) Telegram
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Mastodon (Opens in new window) Mastodon
  • Click to share on Bluesky (Opens in new window) Bluesky
  • Click to share on Threads (Opens in new window) Threads
  • Click to share on Nextdoor (Opens in new window) Nextdoor
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

  • cryptsetup
    How to encrypt a partition with Cryptsetup Linux
  • parttt
    Adding a new partition to an existing Linux server Linux
  • Slide4
    How to install Let’s Encrypt on Apache Web Server Linux
  • FimageUbuntuUpgrade
    How to Upgrade From Ubuntu 20.04 LTS to 22.04 LTS Linux
  • sdf
    Creating an offline local repository in Linux Linux
  • ssh
    How to disable RC4 Cipher Algorithms support in SSH Server Linux

More Related Articles

cryptsetup How to encrypt a partition with Cryptsetup Linux
parttt Adding a new partition to an existing Linux server Linux
Slide4 How to install Let’s Encrypt on Apache Web Server Linux
FimageUbuntuUpgrade How to Upgrade From Ubuntu 20.04 LTS to 22.04 LTS Linux
sdf Creating an offline local repository in Linux Linux
ssh How to disable RC4 Cipher Algorithms support in SSH Server Linux

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

sysadmin top30a

  • jmeterlogo 3
    Install and conduct performance testing using Apache JMeter on your Web App Configuration Management Tool
  • Featured image BSOD
    How to troubleshoot and fix Windows 11 blue screen Windows
  • maxresdefault 2 7
    How to record your screen with PowerPoint and make slide shows Mac
  • Featured image RAM requirement for PC
    How much RAM does your Windows PC really need? Windows
  • wds
    What are the differences between Lite-Touch and Zero-Touch installation? Windows
  • Preventing Attacks on Cisco Switches Blog Header
    How to enable ssh via ASDM on Cisco ASA Network | Monitoring
  • screenshot 2020 04 26 at 19.14.07
    Windows 2016 Servers do not show up on the WSUS console Windows Server
  • remove Windows PC from you iCloud Account completely
    How to remove Windows PC from your iCloud Account completely Mac

Subscribe to Blog via Email

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

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

Tags

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

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.