LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-04-2020, 10:23 PM   #1
amteguia
LQ Newbie
 
Registered: Apr 2020
Location: Quebec, Canada
Distribution: Red Hat
Posts: 1

Rep: Reputation: Disabled
pam_time time limitation not working


Hi Everybody,

I am trying to restrick loggin for some hours , but my settings are not applied.

/etc/pam.d/sshd id as follows

account required pam_nologin.so
account include password-auth
account requisite pam_time.so
password include password-auth


/etc/security/time.conf is as follows

sshd;*;aauteguia;Su1400-2300


I also tried this but not working

*;*;aauteguia;Su1400-2300


Please can you help me solve this issue ?

Thanks
 
Old 04-06-2020, 05:07 PM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
I have never used it, but I would try the module's debug option.
 
  


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
[SOLVED] squid time and traffic limitation mmhs Linux - General 1 08-22-2013 12:37 PM
is my pam_time.so broken or am I using it incorrectly (to restrict http access) ? max.b Linux - Networking 1 02-27-2013 01:09 PM
pam_time pbwalker Linux - Security 5 10-20-2010 10:31 AM
how to understand user time, sys time, wait time, idle time of CPU guixingyi Linux - Server 1 08-24-2010 10:10 AM
PAM problem with module pam_time.so giacomolg Linux - Security 1 11-27-2004 07:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:34 PM.

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