[Samba] Local and Roaming profiles

Chris Wright cwright at softpixel.com
Thu Mar 8 15:54:54 GMT 2007


We're trying to implement a mixed environment with both roaming and local 
profiles.  To differentiate between local and roaming profiles, we use the 
documented

    logon path =

path for local accounts and

    logon path = /some/path

for roaming accounts.

for the logon path to be different, we use include files, since many people 
have indicated success using this setup.  However, we have found that this 
doesn't work in our configuration.  We're trying to figure out if we've missed 
something, or if there are bugs with the include implementation.

our abbreviated smb.conf is as follows:

  [global]
  workgroup = DomainName
  server string = ServerName
  netbios name = servername

  unix charset = UTF8

  name resolve order = host

  smb ports = 139

  wins support = yes

  domain logons = yes
  domain master = yes
  local master = yes
  preferred master = yes
  os level = 65

  security = user
  encrypt passwords = yes
  passdb backend = tdbsam:/path/to/passdb.tdb
  username map = /path/to/smbusers

  # default is local profile...
  logon path =
  login script = login.bat

  # ... unless their config says otherwise
  include /path/to/userconf/%U.conf

  log level = 2

  # netlogon share stuff
  # ipc share stuff

  [Profiles]
  comment = User Profiles
  path = /path/to/profile


  [homes]
  comment = Home Directories
  path = /path/to/profile/data



our include files look like this:

  logon path = //servername/Profiles/%U



>From our testing, we know that the user configs are parsed (parse errors 
in the configs get logged), but the logon path is never applied.

We've also discovered that having a user config for both local and roaming 
profiles, and striking the logon path = [blank]  in smb.conf doesn't seem to 
work either.

We're using samba 3.0.24.

Just wondering if anyone's had success with mixed environments, or if we're 
missing something with configuration.

Thanks!

-- 
[ chris wright ]
cwright at softpixel.com
http://softpixel.com/~cwright/


More information about the samba mailing list