Samba Gurus, How can the number of concurrent connections to a Samba share be limited. Say for example you have an article of software for which you only have 5 licences. When all five seats are used and 6th connection is attempted the user cannot connect. Regards, Paul Ketelaar Paul Ketelaar, Assoc. Dip. Eng. (Elec) paulk@ketelaar.com.au http://www.ketelaar.com.au http://www.wlansolutions.net
----- Original Message ----- From: "Paul Ketelaar" <paulk@ketelaar.com.au> To: <samba@lists.samba.org> Sent: Sunday, December 01, 2002 9:55 PM Subject: [Samba] Share Concurrency> Samba Gurus, > How can the number of concurrent connections to a Samba share > be limited. > Say for example you have an article of software for which you only have > 5 licences. When all five seats are used and 6th connection is attempted > the user cannot connect. > > Regards, > Paul Ketelaar > > Paul Ketelaar, Assoc. Dip. Eng. (Elec) > paulk@ketelaar.com.au > http://www.ketelaar.com.au > http://www.wlansolutions.net > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba >Perhaps using PAM... If you force a username for that share to say LICENCE then using PAM limit concurrent usage of that username to 5 it should solve the problem Regards Shaolin .: http://www.security-forums.com :.
On Sunday, December 1, 2002, at 03:55 PM, Paul Ketelaar wrote:> Samba Gurus, > How can the number of concurrent connections to a Samba > share > be limited. > Say for example you have an article of software for which you only have > 5 licences. When all five seats are used and 6th connection is > attempted > the user cannot connect.You can limit the number of concurrent connections to a share using the 'max connections' option in smb.conf, which is set on a per-share basis. I actually use this to arbitrate access to an old DOS application in use at one site, which can only operate with one user at a time - if two run, data corruption can occur. This application is on a special share by itself, with the setting 'max connections = 1' for that share. I use a setting of 'deadtime = 1', which is a very low setting, to kill clients that no longer have open files on the share. That way a user cannot lock other users out of the share indefinitely once they have closed the application and no longer have open files. Normally though, a batch file is run (from an icon on the user's desktop) that maps the share (using 'net use'), runs the app, and then unmaps the share when done (net use /d). -- Jim Morris (Jim@Morris-World.com)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Mon, 2 Dec 2002, Paul Ketelaar wrote:> How can the number of concurrent connections to a Samba share > be limited. Say for example you have an article of software for which > you only have 5 licences. When all five seats are used and 6th > connection is attempted the user cannot connect.See "max connections" in smb.conf(5). cheers, jerry ---------------------------------------------------------------------- Hewlett-Packard ------------------------- http://www.hp.com SAMBA Team ---------------------- http://www.samba.org GnuPG Key ---- http://www.plainjoe.org/gpg_public.asc ISBN 0-672-32269-2 "SAMS Teach Yourself Samba in 24 Hours" 2ed "You can never go home again, Oatman, but I guess you can shop there." --John Cusack - "Grosse Point Blank" (1997) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (GNU/Linux) Comment: For info see http://quantumlab.net/pine_privacy_guard/ iD8DBQE97ASNIR7qMdg1EfYRAk61AKCH33Cn8LAkRl4UjLIBdftD0n1nywCgq63t dTx8MfWA/6+lxR4XOpfVVUo=jXuE -----END PGP SIGNATURE-----