conditional logon scripts

David Collier-Brown David.Collier-Brown at
Thu Jul 27 12:25:44 GMT 2000

You wrote:
[...]				would like to know if it is possible 
| to setup Samba to check if a %U.bat exists for user %U.  If no such
| file exists, default.bat should be used.  This would less of a pain
| creating a seperate batch file for a user that only requires generic
| scripts.

	You can do the equivalent with (root) preexec, 
	by looking to see if user fred has a fred.bat,
	and putting in a link if not.

	Of course, the preexec will run every time,
	causing an initial delay when connecting to
	the share.

David Collier-Brown,  | Always do right. This will gratify some people
185 Ellerslie Ave.,   | and astonish the rest.        -- Mark Twain
Willowdale, Ontario   | //
Work: (905) 415-2849 Home: (416) 223-8968 Email: davecb at

More information about the samba mailing list