Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision |
linux:samba [2019/10/02 09:03] – [Configure Samba] tmade | linux:samba [2020/02/20 18:24] – [Permanent Mount] tmade |
---|
mount -t cifs -o lfs //10.6.7.67/temp/ /home/samba -o username=myuser | mount -t cifs -o lfs //10.6.7.67/temp/ /home/samba -o username=myuser |
mount -t cifs -o lfs //10.6.7.67/temp/ /home/samba -o dom=DOMAIN,username=myuser,password=PASSWORD | mount -t cifs -o lfs //10.6.7.67/temp/ /home/samba -o dom=DOMAIN,username=myuser,password=PASSWORD |
mount -t smbfs -o lfs //172.22.49.111/share/ /mnt -o dom=DOMAIN,username=myuser,password=PASSWORD #"dom" can be a workgroup as well | mount -t smbfs -o lfs //172.22.49.111/share/ /mnt -o dom=DOMAIN,username=myuser,password=PASSWORD #"dom" can be a workgroup as well |
mount -t cifs -o lfs //IP/c$/folder /mnt/backup/ -o username=Administrator | mount -t cifs -o lfs //IP/c$/folder /mnt/backup/ -o username=Administrator |
mount -t cifs -o vers=3.0 //test.local/linux_images /mnt/backup/ -o username=testuser,domain=TESTDOMAIN -o sec=ntlmssp #Mount Win 2012/ 2016 Share - option "-o sec=ntlmssp" is required! | mount -t cifs -o vers=3.0 //test.local/linux_images /mnt/backup/ -o username=testuser,domain=TESTDOMAIN -o sec=ntlmssp #Mount Win 2012/ 2016 Share - option "-o sec=ntlmssp" is required! |
| mount -t cifs //test.local/linux_images /mnt/backup/ -o username=testuser,domain=TESTDOMAIN -o sec=ntlmssp #Mount Win 2012/ 2016 Share - option "-o sec=ntlmssp" is required! |
| |
Linux to Linux: | Linux to Linux: |
//Servername_or_IP/share /Path/to/mountpoint cifs ro,codepage=850,iocharset=iso8859-15,credentials=/Path/to/smbcreds.txt 0 0 | //Servername_or_IP/share /Path/to/mountpoint cifs ro,codepage=850,iocharset=iso8859-15,credentials=/Path/to/smbcreds.txt 0 0 |
//Servername_or_IP/share /Path/to/mountpoint cifs rw,codepage=850,iocharset=utf8,domain=DOMAIN_NAME,credentials=/Path/to/smbcreds.txt 0 0 | //Servername_or_IP/share /Path/to/mountpoint cifs rw,codepage=850,iocharset=utf8,domain=DOMAIN_NAME,credentials=/Path/to/smbcreds.txt 0 0 |
| //Servername_or_IP/share /Path/to/mountpoint cifs uid=user,gid=group,file_mode=0775,dir_mode=0775,credentials=/Path/to/smbcreds.txt 0 0 |
| |
Credentials: | Credentials: |
/Path/to/smbcreds.txt | /Path/to/smbcreds.txt |