Carsten Springenberg
2003-Aug-18 08:18 UTC
[Samba] logon script won't start anymore after update 2.2.3a -> 2.2.8.a
Dear list, last friday I had a frustrating experience during the update of my samba server. I've been running samba since 1998, now there are 50 users with win2k-boxes attached - the samba server acting as PDC. Becauce of a swap of the old server I finally decided to update to 2.2.8a. What I did (in general): - installed the new server with suse 8.2 prof - Installed the suse-rpms for 2.2.8a on the new server. - shut down smdb/nmdb on the old server and changed ip and name - copied smb.conf, smbpasswd, secrets.tdb to the new server - added all the unix users - changed ip and name on the new server to the values of the old server - started smdb/nmdb on the new server Everything seemed to work. I could logon and got my samba-shares - but as I found out I got my samba-shares because they have been mapped previously and not because of my logon script. Further experiments brought up that the logon scripts didn't run at all at logon-time. I tried a lot concerning "logon script" (%u instead %U, changed it to a f. e. to "logon.bat") but without success. The logon script just sets the time and maps the shars. The [netlogon]-share doesn't seem to be the problem either. I read all in the archives concerning this point (and also googled) but couldn't find something usefull. I am not that new to samba but am at a loss anyway. So I reversed the changes and fired up my old samba server and am looking for ideas now. Here my smb.conf: [global] workgroup = <workgroup-name> netbios name = SAMBA01 server string = SambaPDC 2.2.3a interfaces = <ip-address>/24 security = DOMAIN encrypt passwords = Yes map to guest = Bad User passwd program = /usr/bin/passwd username map = /etc/user.map log level = 1 log file = /var/log/log.%m name resolve order = host wins bcast lmhosts socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY character set = ISO8859-1 add user script = /usr/sbin/useradd -g machines -c Machine -d /dev/null -s /bin/false %m$ logon script = %U.bat logon path = \\%L\profiles\%U logon drive = U: domain logons = Yes os level = 65 domain master = True wins proxy = Yes wins support = Yes kernel oplocks = No winbind uid = 10000-20000 winbind gid = 10000-20000 winbind separator = + admin users = root <otheruser> force create mode = 022 directory mask = 0777 force directory mode = 0777 nt acl support = No printing = lprng [profiles] comment = Admins Profiles path = /data/smbprofiles read only = No nt acl support = No guest ok = Yes browseable = No [homes] comment = Heimatverzeichnis path = /data/user/%u read only = No create mask = 0750 [netlogon] path = /data/netlogon read only = No guest ok = Yes ... some share-defs ... Any ideas would be welcome, thanks, Carsten
Sistemas
2003-Aug-20 11:39 UTC
[Samba] logon script won't start anymore after update 2.2.3a ->2.2.8.a
Hello Carsten: I am a newbie to linux and samba, so maybe what I say is stupid, but I use Suse linux, and when I upgraded to Samba 2.2.8a and rebooted (I configured Samba to use the startup script smb that comes with the binaries), I cood not access Samba anymore. At last I realized that the script was only starting smbd and not nmbd, so I modified the script so it starts nmbd too, and had no more problems. Hope its useful to you. Regards, LauZ ----- Original Message ----- From: Carsten Springenberg <springenberg@bwv-zk.de> To: <samba@lists.samba.org> Sent: Monday, August 18, 2003 5:18 AM Subject: [Samba] logon script won't start anymore after update 2.2.3a ->2.2.8.a> Dear list, > > last friday I had a frustrating experience during the update of my samba > server. I've been running samba since 1998, now there are 50 users with > win2k-boxes attached - the samba server acting as PDC. Becauce of a swap > of the old server I finally decided to update to 2.2.8a. What I did (in > general): > > - installed the new server with suse 8.2 prof > - Installed the suse-rpms for 2.2.8a on the new server. > - shut down smdb/nmdb on the old server and changed ip and name > - copied smb.conf, smbpasswd, secrets.tdb to the new server > - added all the unix users > - changed ip and name on the new server to the values of the old server > - started smdb/nmdb on the new server > > Everything seemed to work. I could logon and got my samba-shares - but > as I found out I got my samba-shares because they have been mapped > previously and not because of my logon script. Further experiments > brought up that the logon scripts didn't run at all at logon-time. > > I tried a lot concerning "logon script" (%u instead %U, changed it to a > f. e. to "logon.bat") but without success. The logon script just sets > the time and maps the shars. The [netlogon]-share doesn't seem to be the > problem either. I read all in the archives concerning this point (and > also googled) but couldn't find something usefull. > > I am not that new to samba but am at a loss anyway. > > So I reversed the changes and fired up my old samba server and am > looking for ideas now. > > Here my smb.conf: > > [global] > workgroup = <workgroup-name> > netbios name = SAMBA01 > server string = SambaPDC 2.2.3a > interfaces = <ip-address>/24 > security = DOMAIN > encrypt passwords = Yes > map to guest = Bad User > passwd program = /usr/bin/passwd > username map = /etc/user.map > log level = 1 > log file = /var/log/log.%m > name resolve order = host wins bcast lmhosts > socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY > character set = ISO8859-1 > add user script = /usr/sbin/useradd -g machines -c Machine -d /dev/null > -s /bin/false %m$ > logon script = %U.bat > logon path = \\%L\profiles\%U > logon drive = U: > domain logons = Yes > os level = 65 > domain master = True > wins proxy = Yes > wins support = Yes > kernel oplocks = No > winbind uid = 10000-20000 > winbind gid = 10000-20000 > winbind separator = + > admin users = root <otheruser> > force create mode = 022 > directory mask = 0777 > force directory mode = 0777 > nt acl support = No > printing = lprng > > [profiles] > comment = Admins Profiles > path = /data/smbprofiles > read only = No > nt acl support = No > guest ok = Yes > browseable = No > > [homes] > comment = Heimatverzeichnis > path = /data/user/%u > read only = No > create mask = 0750 > > [netlogon] > path = /data/netlogon > read only = No > guest ok = Yes > > ... some share-defs ... > > > Any ideas would be welcome, thanks, > > Carsten > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba