LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   How to detect samba users when trying to shutdown linux server (https://www.linuxquestions.org/questions/linux-networking-3/how-to-detect-samba-users-when-trying-to-shutdown-linux-server-72633/)

Darick Ang 07-14-2003 12:06 PM

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

david_ross 07-14-2003 12:44 PM

Look at smbstatus.

enigmasoldier 07-14-2003 03:37 PM

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


All times are GMT -5. The time now is 07:04 PM.