Smokes your problems, coughs fresh air.

Tag: backports

Upgrading Samba from Lenny-backports

For some reason, after upgrading to the Samba version from Lenny-backports I needed to support Windows 7 profiles, the workstations suffered from severe problems. The entire profile seemed to be read-only, even though they weren’t on disk. I couldn’t change any setting and reverting profile configuration from backups didn’t help. In the end, the only thing that fixed it was recreating the user profile, both server and client side. This was an upgrade from 3.2.5 to 3.4.7.

Another issue I had is that the user database got a new backend and all the users were gone. You can import your existing smbpasswd file with pdbedit.

So, when doing this again, be sure to make workstation and server backups.

Installing Samba from lenny-backports

With our new Windows 7 machines, we need at least samba 3.3.7. However, our server with Debian stable doesn’t have that in its repository. So, I was forced to install samba with lenny-backports.

I included this line in my /etc/apt/sources.list:

deb http://www.backports.org/debian lenny-backports main contrib non-free 

Because backports are disabled by default, I needed to pin all the packages required for samba:

Package: samba
Pin: release a=lenny-backports
Pin-Priority: 999
 
Package: smbclient
Pin: release a=lenny-backports
Pin-Priority: 999
 
Package: smbfs
Pin: release a=lenny-backports
Pin-Priority: 999
 
Package: samba-common
Pin: release a=lenny-backports
Pin-Priority: 999
 
Package: samba-common-bin
Pin: release a=lenny-backports
Pin-Priority: 999
 
Package: libwbclient0
Pin: release a=lenny-backports
Pin-Priority: 999
 
Package: libtalloc2
Pin: release a=lenny-backports
Pin-Priority: 999

I haven’t actually installed it, but I will soon. So I don’t know if it will work or not. Aptitude -s suggests it does.

© 2024 BigSmoke

Theme by Anders NorenUp ↑