Bluehost.com Web Hosting $6.95

Re: [Samba] disconnect users after a timeout period?

This is a discussion on Re: [Samba] disconnect users after a timeout period? within the Samba forums, part of the Networking and Network Related category; > Instead of going and looking at like 40 some machines, is there any > way to drop them off? &...


Go Back   Usenet Forums > Networking and Network Related > Samba

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-16-2006
Adam Nielsen
 
Posts: n/a
Default Re: [Samba] disconnect users after a timeout period?

> Instead of going and looking at like 40 some machines, is there any
> way to drop them off?
> or.. close the files they have open?
> We need at least one machine logged in because it does processing on
> this database at night,
> so we cannot have all machines logged out.
>
> Is this possible?


You could write a script to run 'smbstatus' and get a list of logged in
users and the PID of the smbd process they're using, then use 'kill' to
close that smbd process. Providing you don't kill the smbd your
overnight process is connected to it should run without problems.

Alternatively you could just restart Samba (killing all the smbd
processes) because Windows boxes will usually just automatically
reconnect when they next need to use the network (so your overnight
process should reconnect without problems.)

Cheers,
Adam.
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 08:14 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0