Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

Login time restriction

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
5 posts • Page 1 of 1
Author
Message
LukynZ
Apprentice
Apprentice
User avatar
Posts: 230
Joined: Fri Dec 19, 2008 11:56 am
Location: The Czech Republic

Login time restriction

  • Quote

Post by LukynZ » Wed Dec 11, 2013 8:25 pm

By editing /etc/security/time.conf I should restrict user login/whatever only for times I want. However, this never works here. Maybe I do something wrong, maybe I need anything more?

the line is:

Code: Select all

*;*;xxx;Al1000-2100
That means user xxx can do anything on my system only from 10:00 to 21:00 every day....if I understand right. However I can login as xxx before and after this time restrict.
What is wrong here?
Top
LukynZ
Apprentice
Apprentice
User avatar
Posts: 230
Joined: Fri Dec 19, 2008 11:56 am
Location: The Czech Republic

  • Quote

Post by LukynZ » Sat Dec 14, 2013 11:14 am

I see no one use this :(
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56088
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Sat Dec 14, 2013 12:49 pm

LukynZ,

Code: Select all

       services;ttys;users;times
...
       The first field, the services field, is a logic list of PAM service
       names that the rule applies to.
You need to be using pam for authentication, so services needs to be whatever the pam login service is called.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
LukynZ
Apprentice
Apprentice
User avatar
Posts: 230
Joined: Fri Dec 19, 2008 11:56 am
Location: The Czech Republic

  • Quote

Post by LukynZ » Thu Dec 19, 2013 12:20 pm

yes, but * means all services
Top
py-ro
Veteran
Veteran
User avatar
Posts: 1734
Joined: Tue Sep 24, 2002 11:55 am
Location: Velbert
Contact:
Contact py-ro
Website

  • Quote

Post by py-ro » Thu Dec 19, 2013 12:49 pm

But you need to activate the pam_time modul in your PAM Service Files, it is not in there by default.
Top
Post Reply

5 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic