LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 07-14-2003, 12:06 PM   #1
Darick Ang
LQ Newbie
 
Registered: Jul 2003
Posts: 4

Rep: Reputation: 0
How to detect samba users when trying to shutdown linux server


Hi,

I have setup a linux server with 15 workstation (windows 98 os). when i try to shutdown the server after working hour, it will straight away down the server without warn me files are still using by workstation. is there any way i can detect that ? or is there anyway i can see the user activity from linux server ? i'm using RedHat 9.0

from Darick
 
Old 07-14-2003, 12:44 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Look at smbstatus.
 
Old 07-14-2003, 03:37 PM   #3
enigmasoldier
Member
 
Registered: Jul 2003
Location: Florence, Ky
Distribution: CentOS 3.3-4, OpenBSD 3.3, Fedora Core 4, Ubuntu, Novell Open Enterprise Server
Posts: 213

Rep: Reputation: 30
Why do you shut down the server after working hours? Why don't you just run samba through xinetd. With xintetd, you can restrict access by time if you want.

A great tutorial on configuring everything in xinetd (except time restrictions) is here:
http://www.openna.com/documentations...ndex.php?e=0,1

Just add something along the lines of:
access_times = 11:30-13:00 17:30-09:30

This will restrict access during lunch and from 5:30 to 9:30 in the morning

You should also check out this site:
https://www.linux-magazine.com/issue/20/xinetd.pdf
 
  


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
Users can save to Linux Suse 8.2 using Samba 2.2.7a-58 pompiang Linux - Newbie 4 09-26-2004 09:47 PM
howto detect shutdown in progress? gw1500se Mandriva 0 04-25-2004 01:00 PM
how to open port for Linux Samba for windows users 12345671 Linux - Security 6 03-08-2004 02:42 AM
using 2000 Server to authenticate users for Samba sharkcohen Linux - Networking 8 11-24-2003 06:57 AM
how can I remote shutdown other WinNT server from Linux Server? adelel Linux - Networking 2 01-06-2002 12:21 AM

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

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