Hi
exactly no but you can create script to this and use it on smb.conf as write
help:
preexec (S)
This option specifies a command to be run whenever the service is connected
to. It takes the usual substitutions.
An interesting example is to send the users a welcome message every time
they log in. Maybe a message of the day? Here is an example:
preexec = csh -c 'echo \"Welcome to %S!\" |
/usr/local/samba/bin/smbclient -M %m -I %I' &
Of course, this could get annoying after a while :-)
See also preexec close and postexec .
Default: none (no command executed)
Example: preexec = echo \"%u connected to %S from %m (%I)\" >>
/tmp/log
preexec close (S)
This boolean option controls whether a non-zero return code from preexec
should close the service being connected to.
Default: preexec close = no
Try use grep %u smbstatus combination to do this.
Bye.
----- Original Message -----
From: "Jos? M. Fandi?o" <samba@fadesa.es>
To: <samba@lists.samba.org>
Sent: Tuesday, June 17, 2003 2:05 PM
Subject: [Samba] number of login sessions
> Hello,
>
> I'd like to know if with the current version of samba it is
> possible to limit the number of simultaneous login sessions?
>
> I have a lot of users which share their passwords despite
> being warned against it, so I was told to stop them.
> Until now I haven't been able to find any form to do this,
> Does anyone have any idea about how to do it?
>
> regards.
> --
> -----BEGIN GEEK CODE BLOCK-----
> Version: 3.1
> GCS/IT d- s+:+() a- C+++ UBL+++$ P+ L+++ E--- W++ N+ o++ K- w---
> O+ M+ V- PS+ PE+ Y++ PGP+>+++ t+ 5 X+$ R- tv-- b+++ DI D++>+++
> G++ e- h+(++) !r !z
> ------END GEEK CODE BLOCK------
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: http://lists.samba.org/mailman/listinfo/samba