

NFS is most useful for external hard drives connected via Ethernet, and virtual cloud storage. This may sound like NFS is distinctively inferior to CIFS, but they are actually meant for a different purpose. In that respect, it is similar to FTP or WebDAV, but with the ability to read/write arbitrary subsets of a file, as well as a couple of other features related to locking. It is up to the client to actually manage the permissions of which user is allowed to access which files.ĬIFS, on the other hand, manages users on the server side, and may provide a per-user view and access of files. The client actually receives a naked view of the shared subset of the filesystem, including (at least as of NFSv4) a description of which users can access which files. NFS is essentially a tiny step up from directly sharing /dev/sda1. The difference between the two might not initially be obvious. So I think we can't use mount -t nfs with credentials.ĬIFS is a file sharing protocol. I couldn't find a mount -t nfs option example with username /password.

Mount.nfs: an incorrect mount option was specified mount -t nfs -o nfsvers=3,domain=mydomain,username=svc_account,password=password,noserverino :/share/folder /opt/testnas Mount.nfs: remote share not in 'host:dir' formatīelow command doesnt' seem to work either. mount -t nfs -o nfsvers=3,domain=mydomain,username=svc_account,password=password,noserverino ///share/folder /opt/testnas So just trying to find out whether using nfs or cifs will make any difference. I have been told that we should use nfs option instead of cifs. I can mount on container startup mount -t cifs -osec=ntlmv2,domain=mydomain,username=svc_account,password=password,noserverino ///share/folder /opt/testnas The below command works fine on a share supporting Unix/Windows. So the only alternate solution I have is mounting this nas folder during container startup with a username /password. So this linux to linux mounting will not work for me. I am using containerized application and this file system export to the host machine will be a security issue as any container running on the host will be able to use the share. The Storage team has exported it to the host server and I can access it at /nas/data. I am trying to mount a NAS using nfs for an application.
