Can the logon script know username?

M.Sapsed m.sapsed at bangor.ac.uk
Fri Feb 19 09:20:44 GMT 1999



Steve Snyder wrote:
> 
> I use a common logon script when a user logs in.  The assignment of a home
> directory is done within smb.conf by using the %U parameter, but I don't
> see a way to pass that name to the script.
> 
> Is it possible for the Samba logon script to know the ID of the user who is
> currently logging in?  If so, how is it done?

Don't think this is possible in a batch file. Check out Kixtart from
http://netnet.net/~swilson/kix.html or I believe now included in the NT4
resource kit? It's a login script processor with access to lots of system
type variables and a whole lot more.

Cheers

Martin

-- 
Martin Sapsed                                Tel: +44 (0)1248 382409
Computing Lab                                Fax: +44 (0)1248 383826
University of Wales, Bangor             m.sapsed at bangor.ac.uk
North Wales, LL57 2DG
       Unexpected Application Error: (A)bort, (R)etry, (G)et a beer.


More information about the samba mailing list