Restrict/deny user to login in system

How to Restrict/disallowed user to login in system

[root@server ~]#touch /etc/nologin
[root@server ~]#useradd abc
[root@server ~]#passwd abc

Note :Now logout/restart machine.After creating nologin file only root can login in system. Again if you want to allow user to login in system then delete nologin file from root account.
Login with abc user


#####Thanks for Visiting on my blog, Have a good Luck !!#####

Post a Comment

Mới hơn Cũ hơn