Last active
August 4, 2016 17:37
-
-
Save wellington1993/0ed414cb7c3efe8e17ddf707945cefa5 to your computer and use it in GitHub Desktop.
Montar Compartilhamento Windows CIFS no FSTAB
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
sudo apt-get install cifs-utils smbclient samba samba-common | |
# em sudo gedit ~/.smbcredentials | |
#username=msusername | |
#password=mspassword | |
#Criar a pasta de destino | |
sudo mkdir -p /mnt/publico | |
#No fstab adicionar e edicar conforme dados abaixo: | |
//srvdearquivos/publico/ /mnt/publico cifs defaults,_netdev,rw,user,users,auto,nofail,x-systemd.automount,x-systemd.requires=network-online.target,x-systemd.device-timeout=10,workgroup=workgroup,nounix,credentials=/home/ubuntuusername/.smbcredentials,x-gvfs-show,sec=ntlm,noperm,comment=systemd.automount,uid=usuariolinux,soft,iocharset=utf8,comment=gvfs-show 0 0 | |
# troque ubuntuusername pelo seu usuario | |
# O que precisa ser alterado | |
#Caminho na rede: //srvdearquivos/publico/ | |
#Pasta onde será montado no linux: /mnt/publico | |
#sua pasta de usuario sem abreviacao: credentials=/home/ubuntuusername/.smbcredentials | |
#Montar | |
sudo mount -a | |
# From | |
# https://wiki.ubuntu.com/MountWindowsSharesPermanently |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment