[Samba] How to prevent creation of user profiles which they don't logon locally

Mehmet Özgün mehmetozgun at gmail.com
Fri Apr 1 10:43:20 GMT 2005

Hi all,

We're using NT4.0 server as a PDC.

I can easily logon the domain on Mandrake 10.1 with samba and winbind.
There is no problem with domain logons.

But sometimes some domain user profiles are created at /home/NTDOMAIN
directory even if they did't logon the computer locally or din't
access any shared resource remotelly.

How can prevent the creation of the user profiles which didn't logon
the computer locally.

All I want is the user profiles should be created if the user logons
the system locally.

My smb.conf file is below.



   workgroup = NTDOMAIN
   netbios name = LNX01
   domain master = no
   local master = no
   preferred master = no
   os level = 0
   server string = %L 
   log file = /var/log/samba/log.%m
   log level = 7 
   local master = no
   max log size = 50
   security = domain
   password server = nt1, nt2
   encrypt passwords = yes
   smb passwd file = /etc/samba/smbpasswd
   winbind uid = 10000-20000
   winbind gid = 10000-20000
   winbind use default domain = yes
   winbind enum users = yes
   winbind enum groups = yes
   winbind enable local accounts = yes
   template homedir = /home/%D/%u
   obey pam restrictions = yes
   template shell = /bin/bash
   socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
   idmap uid = 10000-20000
   idmap gid = 10000-20000
   wins server =
   dns proxy = no
   dos charset = 857
   unix charset = ISO8859-9


More information about the samba mailing list