Variable substitution in smb.conf

Joshua Colson jcolson at giant.com
Wed Dec 26 10:55:03 GMT 2001


Hello everyone,

  I have approx. 1000 users accessing a samba server, each with there own
user dir. Currently I have samba set up to map users to 
/basedir/%u
but because there are so many users, I want to break up the directory
structure.  I would like to take the first two letters of each username
connecting, and map their directories to a subdir.  If I've been confusing
in this request, then maybe an example is in order.

Two users, john, and billy.
John connects and gets mapped to:
/basedir/jo/john
and Billy connects and gets mapped to:
/basedir/bi/billy

Can this be done with samba?

Joshua Colson
Systems Administrator
Giant Industries, Inc.
(480) 585-8714
jcolson at giant.com

-------------- next part --------------
HTML attachment scrubbed and removed


More information about the samba mailing list