Public feed
#722083
#!/bin/bash
echo "Instalando samba y winbind"
apt-get --force-yes -y install samba winbind
echo "backupeando archivos de configuracion"
mkdir /backup
cp /etc/login.defs /backup/
mv /etc/nsswitch.conf /backup/
mv /etc/samba/smb.conf /backup/
mv /etc/pam.d/common-account /backup/
mv /etc/pam.d/common-auth /backup/
mv /etc/pam.d/common-password /backup/
mv /etc/pam.d/common-session /backup/
read
echo "modificando archivos pam.d"
cp common-account /etc/pam.d/
cp common-auth /etc/pam.d/
cp common-session /etc/pam.d/
cp common-password /etc/pam.d/
cp nsswitch.conf /etc/
cp pam.conf /etc/
cp smb.conf /etc/samba
read
echo "uniendo pc al dominio"
net rpc join -D COLEGIO -U root
getent passwd
wbinfo -t
wbinfo -u
wbinfo -g
read
echo "instalando pam-mount"
apt-get --force-yes -y install libpam-mount smbfs
cp pam_mount.conf /etc/security/
echo UserAuthDir=/tmp >> /etc/gdm/gdm.conf
#echo export ICEAUTHORITY=/tmp/.ICEauthority.$USER >> /etc/profile
#echo export XAUTHORITY=/tmp/.Xauthority >> /etc/profile
#echo export KDEHOME=/tmp/$USER/.kde/ >> /etc/profile
#echo export KDE_HOME_READONLY=/home/$USER/.kde >> /etc/profile
#echo export KDETMP=/tmp/$USER/.kdetmp/ >> /etc/profile
#echo export KDEVARTMP=/tmp/$USER/.kde-tmp/ >> /etc/profile
#echo export KDEHOMEREADONLY=/home/$USER/.kde >> /etc/profile
/etc/init.d/samba restart && /etc/init.d/winbind restart
exit