[Samba] Windows 7 client not mounting 'HOME' share.
Hi, I'm running a samba server (3.5.6 on Debian Squeeze 64 bits) as a PDC with Windows 7 64 bits clients. Workstations successfully registered with the PDC, users can login, profiles are found and updated, network shares are all mounted during login (logon script = %G.bat) except for the home directory of the user. Yet, if I try to manually add it to windows (net use Z: /HOME), it succeeds without complaining. I don't really understand where the problem comes from. Anyone ? Thanks, Julien. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Windows 7 client not mounting 'HOME' share.
Hi, What do your logon scripts look like? Dennis On Tue, Jul 26, 2011 at 11:15 AM, Julien Celle julien.ce...@sivalex.comwrote: Hi, I'm running a samba server (3.5.6 on Debian Squeeze 64 bits) as a PDC with Windows 7 64 bits clients. Workstations successfully registered with the PDC, users can login, profiles are found and updated, network shares are all mounted during login (logon script = %G.bat) except for the home directory of the user. Yet, if I try to manually add it to windows (net use Z: /HOME), it succeeds without complaining. I don't really understand where the problem comes from. Anyone ? Thanks, Julien. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Windows 7 client not mounting 'HOME' share.
Le 26/07/2011 18:32, Dennis Dryden a écrit : Hi, What do your logon scripts look like? Dennis On Tue, Jul 26, 2011 at 11:15 AM, Julien Cellejulien.ce...@sivalex.comwrote: Hi, I'm running a samba server (3.5.6 on Debian Squeeze 64 bits) as a PDC with Windows 7 64 bits clients. Workstations successfully registered with the PDC, users can login, profiles are found and updated, network shares are all mounted during login (logon script = %G.bat) except for the home directory of the user. Yet, if I try to manually add it to windows (net use Z: /HOME), it succeeds without complaining. I don't really understand where the problem comes from. Anyone ? Thanks, Julien. Hi, HOME share is 'homes' and path is '/home/%U'. I tried it with '/home/%u', no difference. I also have difficulties running scripts at startup: if I do not modify the 'EnableLinkedConnections' registry setting to '1', scripts in netlogon share are not run. In fact, If I only modify registry setting as suggested in http://wiki.samba.org/index.php/Windows7, I can join the domain, a user can login, but shares are not automatically mounted. Manually calling the script in \\myserver\netlogon works. Manually calling 'net use Z: /HOME' works. Scripts are of the type %G.bat. Typical script is : @echo off net use Y: \\mypdc\theshare They used to work perfectly with Windows XP clients. Here is my smb.conf : [global] dos charset = 850 unix charset = UTF8 display charset = UTF8 workgroup = MYDOMAIN server string = %h server netbios name = mypdc interfaces = lo, eth0 bind interfaces only = Yes domain logons = Yes os level = 20 preferred master = Yes domain master = Yes local master = Yes security = user dns proxy = No wins support = Yes passdb backend = ldapsam:ldap://ldapserver.domain.local/ client NTLMv2 auth = Yes #log level = 3 #debug timestamp = yes log file = /var/log/samba/log.%m max log size = 1000 name resolve order = wins lmhosts host bcast time server = Yes #socket options = TCP_NODELAY IPTOS_LOWDELAY SO_REUSEADDR IPTOS_THROUGHPUT SO_RCVBUF=32768 SO_SNDBUF=32768 socket options = TCP_NODELAY SO_RCVBUF=32768 SO_SNDBUF=32768 #socket options = TCP_NODELAY IPTOS_LOWDELAY SO_REUSEADDR IPTOS_THROUGHPUT SO_RCVBUF=8192 SO_SNDBUF=8192 case sensitive = auto default case = lower preserve case = yes short preserve case = yes ldap ssl = start tls ldap passwd sync = Yes ldap admin dn = cn=admin,dc=domain,dc=local ldap delete dn = Yes ldap user suffix = ou=Users ldap group suffix = ou=Groups ldap idmap suffix = ou=Users ldap machine suffix = ou=Computers ldap suffix = dc=sivalex,dc=local add user script = /usr/sbin/smbldap-useradd -m %u delete user script = /usr/sbin/smbldap-userdel %u add group script = /usr/sbin/smbldap-groupadd -p %g delete group script = /usr/sbin/smbldap-groupdel %g add user to group script = /usr/sbin/smbldap-groupmod -m %u %g delete user from group script = /usr/sbin/smbldap-groupmod -x %u %g set primary group script = /usr/sbin/smbldap-usermod -g %g %u add machine script = /usr/sbin/smbldap-useradd -w %u logon path = \\%L\profiles\%U logon drive = Z: logon home = \\%L\homes\%U logon script = %G.bat panic action = /usr/share/samba/panic-action %d winbind use default domain = Yes winbind trusted domains only = Yes hosts allow = 127.0.0.1 192.168. hide unreadable = Yes [netlogon] comment = Network Logon Service path = /var/lib/samba/netlogon write list = Administrator writable = No guest ok = Yes browseable = No [profiles] comment = Users profiles path = /profiles create mask = 0700 directory mask = 0700 browseable = No writable = yes profile acls = yes [profiles.V2] copy = profiles [homes] comment = Home Directories path = /home/%u valid users = %u create mask = 0700 directory mask = 0700 browseable = No writable = yes [Theshare] comment = Documents for the share path = /mnt/theshare read only = No dos filemode = yes create mask = 0770 directory mask = 0770 map acl inherit = Yes inherit acls = Yes csc policy = disable dos filemode = Yes inherit owner = Yes hide special files = Yes map archive = No admin users = @Domain Admins force unknown acl user = Yes veto files = /.VFSTrash/ vfs objects = recycle recycle:repository = .VFSTrash
Re: [Samba] Windows 7 client not mounting 'HOME' share.
Please show the result of pdbedit -v a-user HomeDir Drive: is correctly set? From: Julien Celle julien.ce...@sivalex.com Date: Tue, 26 Jul 2011 18:59:26 +0200 (logon script = %G.bat) except for the home directory of the user. Yet, if I try to manually add it to windows (net use Z: /HOME), it succeeds without complaining. I don't really understand where the problem comes from. Anyone ? --- TAKAHASHI Motonobu mo...@samba.gr.jp -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Windows 7 client not mounting 'HOME' share.
# pdbedit -v jcelle ... Home Directory: \\svl1001\homes\jcelle ... Homedir is correctly set. And windows knows it (or at least it knows where to find the information): `net use Z: /HOME`without specifying where to find the share is working. This is really driving me nuts. Le 26/07/2011 19:17, TAKAHASHI Motonobu a écrit : Please show the result of pdbedit -v a-user HomeDir Drive: is correctly set? From: Julien Cellejulien.ce...@sivalex.com Date: Tue, 26 Jul 2011 18:59:26 +0200 (logon script = %G.bat) except for the home directory of the user. Yet, if I try to manually add it to windows (net use Z: /HOME), it succeeds without complaining. I don't really understand where the problem comes from. Anyone ? --- TAKAHASHI Motonobumo...@samba.gr.jp -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Windows 7 client not mounting 'HOME' share.
Workstations successfully registered with the PDC, users can login, profiles are found and updated, network shares are all mounted during login (logon script = %G.bat) except for the home directory of the user. I met the same problem more than once and I found that I have to remove the corresponding entries from the LDAP database (sambaHomePath and sambaHomeDrive attributes). If these attributes are set, the user does not connect to his home service. The homedir needs to be only in smb.conf. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Windows 7 client not mounting 'HOME' share.
On 2011-07-26 19:31, Miguel Medalha wrote: Workstations successfully registered with the PDC, users can login, profiles are found and updated, network shares are all mounted during login (logon script = %G.bat) except for the home directory of the user. I met the same problem more than once and I found that I have to remove the corresponding entries from the LDAP database (sambaHomePath and sambaHomeDrive attributes). If these attributes are set, the user does not connect to his home service. The homedir needs to be only in smb.conf. I must add that, according to documentation, the home directory LDAP attributes need only to be set for a particular user if they differ from the general setting. Quoting from The Official Samba 3.5 HOWTO: « 11.4.4.8 LDAP Special Attributes for sambaSamAccounts The sambaSamAccount ObjectClass is composed of the attributes shown in next tables: Part A, and Part B. The majority of these parameters are only used when Samba is acting as a PDC of a domain (refer to Domain Control, for details on how to configure Samba as a PDC). The following four attributes are only stored with the sambaSamAccount entry if the values are non-default values: • sambaHomePath • sambaLogonScript • sambaProfilePath • sambaHomeDrive These attributes are only stored with the sambaSamAccount entry if the values are non-default values. For example, assume MORIA has now been configured as a PDC and that logon home = \\%L\%u was defined in its smb.conf file. When a user named ‘becky’ logs on to the domain, the logon home string is expanded to \\MORIA\becky. If the smbHome attribute exists in the entry ‘uid=becky,ou=People,dc=samba,dc=org’, this value is used. However, if this attribute does not exist, then the value of the logon home parameter is used in its place. Samba will only write the attribute value to the directory entry if the value is something other than the default (e.g., \\MOBY\becky). » -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba