mount.cifs permission denied


[root@dev ~]# mount.cifs //192.168.9.155/APP /mnt/APP/ -o user=administrator,pass=dsff#$TTT

在檢查帳號密碼權限無問題時,請在命令后加上sec=ntlm 認證即可。

如果還不行,加上提交格式  iocharset=utf8

 

另外還有讀寫權限的問題,記得要加上uid以及gid參數

mount.cifs //192.168.9.155/APP /mnt/APP/ -o user=administrator,pass=dsff#$TTT,gid="",uid="",sec=ntlm

 

 

 

 

 

  1. sec=  
  2.      Security mode. Allowed values are:  
  3.   
  4.      ¡¤   none - attempt to connection as a null user (no name)  
  5.   
  6.      ¡¤   krb5 - Use Kerberos version 5 authentication  
  7.   
  8.      ¡¤   krb5i - Use Kerberos authentication and forcibly enable packet signing  
  9.   
  10.      ¡¤   ntlm - Use NTLM password hashing  
  11.   
  12.      ¡¤   ntlmi - Use NTLM password hashing and force packet signing  
  13.   
  14.      ¡¤   ntlmv2 - Use NTLMv2 password hashing  
  15.   
  16.      ¡¤   ntlmv2i - Use NTLMv2 password hashing and force packet signing  
  17.   
  18.      ¡¤   ntlmssp - Use NTLMv2 password hashing encapsulated in Raw NTLMSSP message  
  19.   
  20.      ¡¤   ntlmsspi - Use NTLMv2 password hashing encapsulated in Raw NTLMSSP message, and force  
  21.          packet signing  
  22.   
  23.      The default in mainline kernel versions prior to v3.8 was sec=ntlm. In v3.8, the default  
  24.      was changed to sec=ntlmssp.  
  25.   
  26.      If the server requires signing during protocol negotiation, then it may be enabled  
  27.      automatically. Packet signing may also be enabled automatically if it's enabled in  
  28.      /proc/fs/cifs/SecurityFlags. 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM