srv/usrmgr and DC

Andrew Perrin - Demography aperrin at demog.Berkeley.EDU
Wed Mar 17 17:36:51 GMT 1999


I use a very simple logon/logoff script attached to the [homes] service,
which (in our site at least) approximates login time, since users
generally neither manually connect nor disconnect the share.  Agreed it's
not foolproof, but it works:

  root preexec = echo %u > /opt/samba/status/%m
  root postexec = rm -f /opt/samba/status/%m

this just puts the logged in username in a file named after the
workstation name; I can do

cd /opt/samba/status
grep . *

and get a nice list in the form of

Hope this helps-

Andrew J. Perrin - aperrin at - NT/Unix Admin/Support
Department of Demography    -    University of California at Berkeley
2232 Piedmont Avenue #2120  -    Berkeley, California, 94720-2120 USA --------------------------SEIU1199

On Thu, 18 Mar 1999, Michael Stockman wrote:

> Hello,
> I'm running samba, head branch from 99-03-17 14:00, and would like to point out that both usrmgr and srvmgr in W95 complains about not being able to find the domain controller (DC). The problem, which seems to be the same as once before, appears to be the reply to PIPE\NET\GETDC000 and the use of wide characters. Is this a conscious favour of NT(?) prior to W95 and is it known how NT replies (both to a NT and a W95 client)?
> Also I would like to know if anyone has tried to run scrips on the unix side at logon/logoff (if there at all is a clear notion of logoff in the smb world)? I would like to do this in order to configure my firewall settings for any computer depending on who is logged on.
> Best regards
>   Michael Stockman
>   pgmtekn-micke at

More information about the samba-ntdom mailing list