Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 10-27-2006, 12:37 PM   #1
LQ Newbie
Registered: Oct 2006
Location: St. Louis, MO
Distribution: Debian
Posts: 1

Rep: Reputation: 0
Force logoffs of XP machines

My NT4 server is reaching end of life and I do not think the school I work for will be buying a new one anytime soon. I would like to use Linux to run the student side of the network and I have used Samba before and can manage that. However is their a package that will force users off after their time has expired. We are a residential school so students should not be on after 10 pm so they can get some sleep. Is their anyway to set logon and logoff times so students cannot logon before 8 AM and are forced off at 10 pm?

Thanks for your help


Last edited by wasmsb; 10-27-2006 at 01:35 PM.
Old 10-28-2006, 05:06 AM   #2
Senior Member
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 46
You could use a combination of cron and iptables to block incoming connections at 10pm and drop the rule again at 8pm. That could then work for whatever service you offer on that machine, not just Samba.

If your server is not always up, use anacron rather than cron.

If other people, such as you as the admin, still need access during off-times, then you need additional rules which could make it a little bit more difficult.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
can see other machines, but other machines can't see me with TPC/IP egomez Linux - Networking 8 04-28-2006 02:08 AM
need help to force fsck muxman Linux - Software 3 03-05-2006 03:49 PM
someone trying to brute force me stitchman Slackware 8 12-16-2005 03:02 PM
Want to force use of squidgaurd buttshill Linux - Networking 0 10-13-2003 05:24 PM
Force user ust Linux - General 1 10-09-2003 12:03 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:25 AM.

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