Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //myserver/myfolder /mnt/backup cifs credentials=home/myfolder/.Smbcredentials
- username=myaccount
- password=mypassword
- domain=mydomain
- $ sudo ls -l /etc/smb_credentials.txt
- -rw-------. 1 root root 54 Mar 24 13:19 /etc/smb_credentials.txt
- $ sudo mount -v -t cifs //server/share /mnt
- -o credentials=/etc/smb_credentials.txt
- mount.cifs kernel mount options: ip=192.168.1.14,unc=\servershare,credentials=/etc/smb_credentials.txt,ver=1,user=someuser,domain=somedom,pass=********
- sec=
- Security mode. Allowed values are:
- · none - attempt to connection as a null user (no name)
- · krb5 - Use Kerberos version 5 authentication
- · krb5i - Use Kerberos authentication and forcibly enable packet
- signing
- · ntlm - Use NTLM password hashing
- · ntlmi - Use NTLM password hashing and force packet signing
- · ntlmv2 - Use NTLMv2 password hashing
- · ntlmv2i - Use NTLMv2 password hashing and force packet signing
- · ntlmssp - Use NTLMv2 password hashing encapsulated in Raw NTLMSSP
- message
- · ntlmsspi - Use NTLMv2 password hashing encapsulated in Raw
- NTLMSSP message, and force packet signing
- The default in mainline kernel versions prior to v3.8 was sec=ntlm.
- In v3.8, the default was changed to sec=ntlmssp.
- $ sudo mount -t cifs //172.16.1.5/myshare/ /mnt/myshare
- -osec=ntlmv2,domain=MYDOMAIN,username=myusername,password=mypassword
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement