Questions tagged [cifs]

The Common Internet File System (CIFS), also known as Server Message Block (SMB), is a network protocol whose most common use is sharing files on a Local Area Network (LAN).

The Common Internet File System (CIFS), also known as Server Message Block (SMB), is a network protocol whose most common use is sharing files on a Local Area Network (LAN).

330 questions
5
votes
3 answers

Detect SMB vs SMB2 for network share

Given a UNC path like \\server\share, is there any way to determine, using the Win32 API, whether the local and remote computers are connecting using SMB or SMB2?
Zoë Peterson
  • 13,094
  • 2
  • 44
  • 64
5
votes
2 answers

PHP is_readable() fails on readable samba directory

Calls to PHP's is_readable() function are returning false on a directory that is readable from the command prompt. I have changed permissions to most-permissible and still no luck. ls -lad /remote/samba_share drwxrwxr-x 13 me users 0 May 29 15:49…
moodboom
  • 6,225
  • 2
  • 41
  • 45
4
votes
0 answers

Mounting cifs share using kerberos fails with 'Operation not supported'

I'm trying to mount a network share using cifs and kerberos on a CentOS 8 distro. I am able to mount the share correctly using my explicit credentials, but passing the option of sec=krb5 doesn't work. The response from the operation says: 'mount…
4
votes
1 answer

How to set a password variable via a script for mounting a cifs share

I have the following bash script to mount a couple of shared directories in a NAS drive: sudo mount -t cifs //server/dir1 /mnt/nas/dir1 -o username=raf sudo mount -t cifs //server/dir2 /mnt/nas/dir2 -o username=raf sudo mount -t cifs //server/dir3…
Raf
  • 1,628
  • 3
  • 21
  • 40
4
votes
0 answers

SMB or WebDAV protocol?

I am trying to understand the differences between WebDAV and SMB. What are the advantages and disadvantages of both and is there any rule of thumb when to implement which of the two.
user9051123
  • 41
  • 1
  • 1
  • 2
4
votes
1 answer

Kubernetes cluster has oplock (samba) on file in Azure storage account

I'm running the bradbeck/nexus-https container using kubernetes in Azure Container Service and mounting the /nexus-data volume against an Azure storage account File Share. On the k8s-agents I installed cifs-utils to access the file share. When the…
Niel de Wet
  • 7,806
  • 9
  • 63
  • 100
4
votes
1 answer

Defeating CIFS file caching on Windows / forcing "refresh"

I'm modifying files on a UNIX system and accessing them on a Windows box. The server runs samba and there is some amount of caching done by the client. When I modify the file on the UNIX side, the only reliable way to see the new version of the…
Ben Jackson
  • 90,079
  • 9
  • 98
  • 150
4
votes
1 answer

How To Tell What Version Of SMB Is Being Used?

I recall from a while ago, I used a command that enabled me to see what version of SMB (CIFS/SMB1/SMB2) active mounts were using. For the life of me I can't remember the command nor can I find it anywhere online. What is the command line command to…
Ted Wilmont
  • 463
  • 2
  • 9
  • 20
4
votes
2 answers

mount -t nfs vs cifs

I had a requirement to mount a NFS. After several trial and errors, I could mount a NFS file system from NAS on my Linux system. We were also evaluating if cifs can be used when NFS does not work. man pages were too confusing and could not find any…
Rockoder
  • 746
  • 2
  • 11
  • 22
4
votes
1 answer

cifs mount cause processes to enter uninterruptible sleep

Given CentOS 6.3 box (2.6.32). I compile sources in the Linux. The source tree is located on Windows 7 box, which is CIFS mounted. Everything was ok, till recently compilation time started to grow to some unreasonble times (e.g. several minutes to…
dimba
  • 26,717
  • 34
  • 141
  • 196
4
votes
2 answers

Attempt to access remote folder mounted with CIFS hangs when disconnected

This question is an extension for that question. Yet again: I'm working under CentOS 6.0 and I have a remote win7 folder, mounted with: mount -t cifs //PC128/mnt /media/net -o…
don_pardon
  • 103
  • 2
  • 12
3
votes
3 answers

File sharing over the internet - WebDAV / SMB / FTP

We are developing a web based application which provides a repository of users case files. Would like the user to be able to access these from their web browser with full read write capability. For an earlier generation of our system, which was…
Conor
  • 31
  • 1
  • 1
  • 2
3
votes
1 answer

Cannot mount azure fileshare from kubernetes pod (works fine from local machine)

I am running kubernetes in Azure where I have created a storage account and an azure file (file share) From my local Ubuntu machine I can successfully mount the share with: $ sudo mount -t cifs //mystorage.....windows.net/data /home/demo/azureshare…
u123
  • 15,603
  • 58
  • 186
  • 303
3
votes
1 answer

Can a windows network share be mounted within a docker container?

Google is turning up some bizarre results, including questions here at SO. I am aware that this isn't a supported/recommended configuration. However is this even an undocumented option? If it is difficult, it's something I'll continue to pursue,…
John O
  • 4,863
  • 8
  • 45
  • 78
3
votes
1 answer

Unable to mount cifs filesystem in Docker container

I'm on Docker 17.06.0-ce and I'm attempting to mount a CIFS share in a container and only having some luck. If I use --privileged, it works, but that's not desirable for me. I've tried using --cap-add as well as suggested in this answer (even…
Matt Zuba
  • 1,603
  • 14
  • 8
1 2
3
21 22