The Computer Oracle

Is there a way to only allow a login to happen only at a specific time?

--------------------------------------------------
Hire the world's top talent on demand or became one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Cool Puzzler LoFi

--

Chapters
00:00 Is There A Way To Only Allow A Login To Happen Only At A Specific Time?
00:21 Accepted Answer Score 21
00:40 Thank you

--

Full question
https://superuser.com/questions/775560/i...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#linux #ssh #login

#avk47



ACCEPTED ANSWER

Score 21


See this manpage for time.conf

user1 ; * ; Wd0000-2400 | Wk1800-0800

would allow the user user1 evenings on weekdays (wk), and all days on weekends (wd), and deny them the rest of the time.

yours would be something like

* ; * ; Al0800-0900