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