Não consigo instalar o samba. Quando tento instalar o samba com este comando 'sudo apt-get install samba4', ocorre o erro abaixo.
ERROR: Invalid smb.conf
/var/lib/dpkg/info/samba4.postinst: 14: /var/lib/dpkg/info/samba4.postinst: /usr/share/samba/setoption.pl: Permission denied
dpkg: error processing samba4 (--configure):
subprocess installed post-installation script returned error exit status 126
No apport report written because MaxReports is reached already
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
samba4
E: Sub-process /usr/bin/dpkg returned an error code (1)"
Estou usando o Ubuntu Tiguin.
Responder1
Tente renomear seu smb.conf atual para smb.conf.bak e tente instalar novamente.
Depois disso, eu recomendaria comparar o novo smb.conf com o smb.conf.bak para manter as configurações anteriores.
sudo mv /etc/samba/smb.conf /etc/samba/smb.conf.bak