{"id":1272,"date":"2015-06-04T12:57:58","date_gmt":"2015-06-04T19:57:58","guid":{"rendered":"http:\/\/jim-zimmerman.com\/?p=1272"},"modified":"2015-08-17T10:16:41","modified_gmt":"2015-08-17T17:16:41","slug":"mount-smbcifs-share-at-boot-in-centos-7","status":"publish","type":"post","link":"https:\/\/jim-zimmerman.com\/?p=1272","title":{"rendered":"Mount SMB\/CIFS share at boot in CentOS 7."},"content":{"rendered":"<p>Mounting a Windows (CIFS) file share in CentOS 7 has changed a little when using a Windows domain to authenticate.<\/p>\n<p>First, you need to have the cifs-util package installed.  This will allow you to mount cifs\/smb filesystems.<\/p>\n<p>The syntax in the \/etc\/fstab has not changed, but the way the credential options are stored for domains is a little different.  I use a hidden file that is read only to store the Windows credentials.<\/p>\n<p>\/etc\/fstab:<\/p>\n<blockquote><p>\/\/winserver\/sharename\t\/mntpoint\t\tcifs\tcredentials=\/usr\/local\/etc\/.myfile,iocharset=utf8,file_mode=0774,dir_mode=0774\t0\t0<\/p><\/blockquote>\n<p>Here is the change.  In the past, I was able to specify the domain with the username in the credential file like so:<br \/>\n\/usr\/local\/etc\/.myfile:<\/p>\n<blockquote><p>username=mydomain\\myusername<br \/>\npassword=mypassword\n<\/p><\/blockquote>\n<p>Now, the domain needs to be specified on its own line like so:<\/p>\n<blockquote><p>username=myusername<br \/>\npassword=mypassword<br \/>\ndomain=mydomain\n<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Mounting a Windows (CIFS) file share in CentOS 7 has changed a little when using a Windows domain to authenticate. First, you need to have the cifs-util package installed. This will allow you to mount cifs\/smb filesystems. The syntax in the \/etc\/fstab has not changed, but the way the credential options are stored for domains [&#038;hellip<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[217,403,48,402],"class_list":["post-1272","post","type-post","status-publish","format-standard","hentry","category-documentation","tag-cifs","tag-fstab","tag-linux","tag-smb"],"share_on_mastodon":{"url":"","error":""},"_links":{"self":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/1272","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1272"}],"version-history":[{"count":2,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/1272\/revisions"}],"predecessor-version":[{"id":1318,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=\/wp\/v2\/posts\/1272\/revisions\/1318"}],"wp:attachment":[{"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1272"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1272"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jim-zimmerman.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1272"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}