LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-27-2006, 11:37 AM   #1
wasmsb
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

WASMSB

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

Rep: Reputation: 47
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.
 
  


Reply

Tags
networking


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 01:08 AM
need help to force fsck muxman Linux - Software 3 03-05-2006 02:49 PM
someone trying to brute force me stitchman Slackware 8 12-16-2005 02:02 PM
Want to force use of squidgaurd buttshill Linux - Networking 0 10-13-2003 04:24 PM
Force user ust Linux - General 1 10-09-2003 11:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:36 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