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).

293 questions
158
votes
11 answers

How do you force a CIFS connection to unmount

I have a CIFS share mounted on a Linux machine. The CIFS server is down, or the internet connection is down, and anything that touches the CIFS mount now takes several minutes to timeout, and is unkillable while you wait. I can't even run ls in…
smoofra
  • 2,715
  • 2
  • 19
  • 23
53
votes
5 answers

Mount SMB/CIFS share within a Docker container

I have a web application running in a Docker container. This application needs to access some files on our corporate file server (Windows Server with an Active Directory domain controller). The files I'm trying to access are image files created for…
Kryten
  • 13,116
  • 3
  • 41
  • 61
43
votes
14 answers

What does cifs_mount failed w/return code = -22 indicate

I am trying sudo mount -t cifs /// -o username=user@domain,password=**** /mnt/ error message: mount: wrong fs type, bad option, bad superblock on //server/share, missing codepage or other error In some…
Adi Pandit
  • 649
  • 1
  • 6
  • 9
28
votes
2 answers

PHP file_exists sometimes returns false for a file on CIFS share

I have a CIFS share from Windows Server 2012 R2 mounted on Ubuntu 14.04.2 LTS (kernel 3.13.0-61-generic) like this /etc/fstab //10.1.2.3/Share /Share cifs…
Adam Michalik
  • 9,448
  • 11
  • 55
  • 89
17
votes
2 answers

Filesystem test suites

I wanted to ask about testing suites available for testing Linux file systems. I am looking for more of stress and load testing suites, which can stress the system, find corruptions by validating the data it wrote, among other things. Is there such…
Mark Lobo
  • 311
  • 2
  • 3
  • 8
16
votes
5 answers

Getting File Create Notifications for CIFS Mount in Linux

I have a windows share mounted via CIFS on an ubuntu server. I need to a way to know when a new file has been added to the Windows share. I tried this inotify program: http://www.thegeekstuff.com/2010/04/inotify-c-program-example/ Which works fine…
ofosho
  • 395
  • 1
  • 3
  • 15
16
votes
2 answers

mount remote windows share from centos

I am trying to setup a script that will: Connect to a windows share Using LOAD DATA LOCAL INFILE, upload the two files into their appropriate db tables Umount share Situation: I can currently vpnc into this remote machine Problem: I cannot mount…
richardwhitney
  • 448
  • 1
  • 5
  • 18
12
votes
2 answers

"mount error(126): Required key not available" with CIFS & Kerberos

My application needs to securely mount an Isilon share using CIFS and Kerberos. My mount attempt returns: Required key not available: mount -t cifs //fileserver.example.com/client123/files /mnt/client123/files -o…
a coder
  • 6,796
  • 19
  • 77
  • 121
11
votes
2 answers

KrbException "Message Stream Modified (41)" when connecting to SMB share using Kerberos

I'm having some issues with Kerberos authentication to perform file management with JCifs (Kerberos extension version 1.3.17) This is my current configuration of krb5.conf: [libdefaults] default_realm =
Dieter Hubau
  • 629
  • 2
  • 6
  • 17
10
votes
4 answers

SMB/samba support on iOS?

I check iOS document and also google it for a while and get the impression that iOS does not support samba (although there is a samba app for jailbreak iPhone). But then how do the app FileBrowser achieves that? Does that mean they implemented samba…
Qiulang
  • 5,733
  • 4
  • 47
  • 82
10
votes
3 answers

ANDROID: Accessing CIFS Shares in Java

I'm writing my first Android app, which is more or less going to be a mount point manager. Local mounts and NFS mounts have been easy, but I'm not sure of how to go about CIFS shares. Ideally, after selecting a host, a list of CIFS shares would be…
ecoutu
  • 1,882
  • 4
  • 20
  • 28
9
votes
2 answers

How to tell if a file is being written to a Windows CIFS share from Linux

I'm trying to write a script to take video files (ranging from several MB to several GB) written to a shared folder on a Windows server. Ideally, the script will run on a Linux machine watching the Windows shared folder at an interval of something…
Paul
  • 145
  • 1
  • 6
7
votes
1 answer

How to open files in Android with default viewer using jCIFS

I'm using the free jCIFS library to connect to my NAS device via CIFS, and it's working great. I can connect and get a list of filenames, etc. without any issues. Now I'd like to open one of the files in the default Android application - i.e. a…
Michell Bak
  • 12,857
  • 11
  • 60
  • 121
7
votes
0 answers

Specify CIFS vs NFS for UNC in Windows?

On Windows 2008 Server R2 (acting as a client) I have the Client from Windows Services for NFS installed and a server mounted as Y: with NFS. That server also supports CIFS. When I open a UNC path to the server with start/run it connects using…
kmarchand
  • 103
  • 4
7
votes
1 answer

'cabal copy' failed during `stack build` in cifs directory

I'm following these instructions. I successfully did stack new and stack setup but stack build fails. I found a git issue that this may be due to extra files listed in the cabal file, but removing them didn't fix the issue (and I'm just using the…
Xodarap
  • 11,101
  • 8
  • 49
  • 87
1
2 3
19 20