Tuesday, May 17, 2022

Linux shell restricting access and disable shell with nologin


Ref: https://www.cyberciti.biz/tips/howto-linux-shell-restricting-access.html

To block shell access for the user named ‘vivek’. Please note that an account named ‘vivek’ must exist on your system. Run the usermod command or chsh command:
usermod -s /sbin/nologin vivek
Debain or Linux Linux user modify above command as follows:
usermod -s /usr/sbin/nologin vivek


 

No comments:

Post a Comment

Install and use xorg-server on macOS via Homebrew

  The instructions to install and use xorg-server on macOS via Homebrew: Install Homebrew (if you haven't already): /bin/bash -c ...