All pastes #991752 Raw Edit

Resto samba

public text v1 · immutable
#991752 ·published 2008-04-21 09:51 UTC
rendered paste body
#!/bin/sh
aptitude install samba smbclient smbfs smbldap-tools libnss-ldap libpam-ldap bind9
/etc/init.d/samba stop
rm -rf /var/lib/samba/*
rm -rf /var/cache/samba/*
cp -rf backupsamba/var /
cp backupsamba/etc/samba/smb.conf /etc/samba/
dos2unix /etc/samba/smb.conf
rm -rf /etc/smbldap-tools
cp -rf backupsamba/etc/smbldap-tools /etc/
dos2unix /etc/smbldap-tools/*
chmod 600 /etc/smbldap-tools/smbldap_bind.conf
cp backupsamba/etc/libnss-ldap.conf /etc/
dos2unix /etc/libnss-ldap.conf
cp backupsamba/etc/libnss-ldap.secret /etc/
dos2unix /etc/libnss-ldap.secret
cp backupsamba/etc/nsswitch.conf /etc/
dos2unix /etc/nsswitch.conf
cp backupsamba/etc/pam_ldap.conf /etc/
dos2unix /etc/pam_ldap.conf
cp backupsamba/etc/bind/named.conf.local /etc/bind/
dos2unix /etc/bind/named.conf.local
dos2unix /var/cache/bind/*
/etc/init.d/samba start
/etc/init.d/bind9 restart