LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 04-26-2018, 04:19 PM   #1
alxreds
LQ Newbie
 
Registered: Dec 2017
Posts: 8

Rep: Reputation: Disabled
How find users without login 3 months ago or more and block it


Hello everyone

I have many Centos 7 Server and Need know
How I can find users without login 3 months ago or more
List and block

Thanks

Last edited by alxreds; 04-26-2018 at 04:20 PM. Reason: Updating
 
Old 04-26-2018, 05:54 PM   #2
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,748

Rep: Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222
last will show you the last login time for each user
Code:
man last
Not sure what you mean by block. If you want to prevent future logins there are several ways to do that.
Try "disable login linux" in your favorite search engine.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
disable/block the accounts of the users who have not accessed the it from 2 months aksharb Linux - Software 2 03-04-2011 01:58 PM
[SOLVED] Ubuntu 9.10: installed 3 months ago, started freezing randomly after last updates. emile salem Linux - Newbie 12 02-24-2010 02:49 AM
Webalizer help - analysis stopped 2 months ago jantman Linux - Server 2 10-12-2007 10:46 AM
Is Current FC3 Distro Same as 6 months ago rickh Fedora 4 05-06-2005 02:47 PM
Display troubles w/ Radeon 9000 + New MonitorHere's my scenario: Several months ago, Kujila Linux - Software 7 05-10-2004 01:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 05:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration