Ceci est une ancienne révision du document !
Bloquer les accès SSH pour PlcmSpIp
mkdir -p /etc/e-smith/templates-custom/etc/ssh/sshd_config echo "DenyUsers PlcmSpIp" >> /etc/e-smith/templates-custom/etc/ssh/sshd_config/99DenyUsers expand-template /etc/ssh/sshd_config sv t /service/sshd mkdir -p /var/lib/phone/polycom/ mkdir -p /etc/e-smith/templates-custom/etc/dhcpd.conf/ cat <<EOF > /etc/e-smith/templates-custom/etc/dhcpd.conf/80polycom option boot-server code 66 = string; group \{ option boot-server "ftp://PlcmSpIp:p4PLcPr0v1510ning@{ $LocalIP }"; host phone-1 \{ hardware ethernet 00:04:f2:1d:fe:44; fixed-address 192.168.7.22; \} \} EOF mkdir -p /etc/e-smith/templates-custom/etc/proftpd.conf/ cat <<EOF > /etc/e-smith/templates-custom/etc/proftpd.conf/04polycomRoot DefaultRoot /var/lib/phone/polycom PlcmSpIp EOF cat <<EOF > /etc/e-smith/templates-custom/etc/proftpd.conf/50polycomShare <Directory /var/lib/phone/polycom> GroupOwner PlcmSpIp Umask 047 AllowOverwrite on <Limit READ WRITE> AllowUser PlcmSpIp </Limit> </Directory> EOF mkdir -p /etc/e-smith/templates-custom/etc/e-smith/pam/users.allow/ cat <<EOF > /etc/e-smith/templates-custom/etc/e-smith/pam/users.allow/30polycom PlcmSpIp EOF