LoginSignup
1
4

More than 5 years have passed since last update.

Windows 10 に cifs 接続する

Posted at

Windows 10 に cifs で接続する時の備忘録です。
vers=2.0 がキモ。(debian 9 の man mount.cifs より)

vers=SMB protocol version. Allowed values are:
· 1.0 - The classic CIFS/SMBv1 protocol. This is the default.
· 2.0 - The SMBv2.002 protocol. This was initially introduced in Windows Vista Service Pack 1, and Windows Server 2008. Note that the initial release version of Windows Vista spoke a slightly different dialect (2.000) that is not supported.
· 2.1 - The SMBv2.1 protocol that was introduced in Microsoft Windows 7 and Windows Server 2008R2.
· 3.0 - The SMBv3.0 protocol that was introduced in Microsoft Windows 8 and Windows Server 2012.

/etc/fstab
#//接続先IPアドレス/共有名 マウント先ディレクトリ名 cifs vers=2.0,noperm,nounix,credentials=資格情報ファイル名
//server/share /mnt/win cifs vers=2.0,noperm,nounix,credentials=.credentials 0 0
.credentials
username=value
password=value
domain=value

(資格情報ファイルは chmod 0600 .credentials とかしておいた方がいいでしょう)

mount.cifs

1
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
4