Last active
May 2, 2017 19:56
-
-
Save marcelocmenezes/e40671c3eb0145ebfc1afb44a6c7c18b to your computer and use it in GitHub Desktop.
Configuração Samba Ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## Instalação do Samba. | |
apt-get install -y samba samba-common python-glade2 system-config-samba | |
## Backup do arquivo de configuação padrão e download das configurações pré-definidas em laboratório. | |
cd /etc/samba | |
mv smb.conf smb.conf.bak | |
wget --no-cache https://gist.githubusercontent.com/marcelocmenezes/e40671c3eb0145ebfc1afb44a6c7c18b/raw/106b91ac6ed87d0b5d8bb13c6793b6c27150cc02/smb.conf | |
## Criaçao e permissão da pasta compartilhada. | |
mkdir -p /samba/arquivos | |
chmod -R 0775 /samba/arquivos | |
chown -R nobody:nogroup /samba/arquivos | |
## Reiniciar o serviço. | |
service smbd restart |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[global] | |
workgroup = WORKGROUP | |
server string = Samba Server %v | |
netbios name = Servidor | |
security = user | |
map to guest = bad user | |
dns proxy = no | |
[Arquivos] | |
path = /samba/arquivos | |
browseable = yes | |
writable = yes | |
guest ok = yes | |
read only = no |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Configuração do Servidor Samba Intervozes
Compartilhamento básico, sem autenticação de usuário.