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
3
votes
1 answer

python fsync() on network drive hangs

I write some data to a file using the following function: def WriteTo1File(self, output_file, text): output_file.write(text) output_file.flush() os.fsync(output_file.fileno()) The fsync() call is mandatory to handle IOError: if I don't…
Mickael_86130
  • 183
  • 1
  • 1
  • 8
3
votes
1 answer

jCIFS can't seem to authenticate

I was starting to benchmark how much performance we'd lose by using jCIFS instead of requiring our users to map drives manually themselves, but then I found that I couldn't even pass the first basic test of reading data from a file using jCIFS. I…
Hakanai
  • 12,010
  • 10
  • 62
  • 132
3
votes
1 answer

Debian 7, fstab, mount.cifs Invalid argument

I try to mount cifs, but i have got following error and i don't find the error. ~# mount -a ~# mount error(22): Invalid argument I try if in my /etc/fstab //192.168.0.1/ShareRep /home/user/share cifs…
Phane
  • 201
  • 3
  • 11
3
votes
0 answers

Set up permissions on file in mounted CIFS share - NIO.2

I am trying to add a set of attributes at creation time as in the following example. This code creates a new file on a POSIX file system with specific permissions ("rw-rw-r--") in mounted CIFS share. public static void main(String[] args) { …
mariusz117
  • 151
  • 1
  • 4
3
votes
1 answer

Locking file in distributed system

I have a distributed application; that is, I have a homogeneous process running on multiple computers talking to a central database and accessing a network file share. This process picks up a collection files from a network file share (via CIFS),…
3
votes
1 answer

Alfresco 4.2c CIFS configuration issue

I got a fresh installation of Alfresco 4.2 on Ubuntu 12.04. I had "successfully" configured CIFS and modified iptables to include (NAT) ports(1445 TCP -- 445 TCP and 1137-1139 TCP/UDP to 137-139 TCP/UDP) for SMB and NetBios. Also the machine is an…
carlosgmercado
  • 284
  • 6
  • 17
3
votes
2 answers

PHP file_put_contents not truncating file in CIFS mount

I have a weird problem where PHP's file_put_contents() and fwrite() (after opening file handle with fopen('filename', 'w');) functions are not truncating the target file as stated by the PHP docs for fwrite(). The file resides on a Seagate…
2
votes
1 answer

Content Provider for Network Storage

With most Android devices, mounting CIFS or NFS is only possible when the devices is rooted. The question is, if it is possible to create a Android Content Provider which offers Pictures and Videos from the Network Storage (Samba) with the URIs as…
user979931
  • 21
  • 2
2
votes
1 answer

Using a mounted CIFS volume with docker compose

I have mounted a Hetzner storage box CIFS volume to my server to /mnt/sbox1, and now I want to make a docker container use it to store downloads on it. My/etc/fstab mounts the drive on startup using the following…
Stelios Papamichail
  • 955
  • 2
  • 19
  • 57
2
votes
0 answers

How to configure timeout in mount cifs (smb)

The command i am using right now is: mount -t cifs //192.168.0.1/g /mnt/network -o user=user,pass=pass,vers=3,domain Now i have to configure timeout in it, by reading the documentation i have figured out "handletimeout" command option but it seems…
2
votes
1 answer

How to grant non root user wrote permissions on kubernetes SBM flexvolume mount?

Please help! I'm struggling with this for a few days now... I'm trying to write to a mount in a Kubernetes pod with a non-root user and getting access denied. In the Kubernetes manifest, I am mounting a windows shared folder like this: kind:…
Eyal Azran
  • 379
  • 1
  • 3
  • 14
2
votes
1 answer

Git error when attempting to push across SMB share

I am developing code on a Ubuntu VM, and have a Windows Repository on a common shared server my team uses. Git is installed on the Ubuntu machine and not on Windows, currently. I was receiving errors when trying to do a "git init" in Ubuntu on the…
JWorkin
  • 31
  • 5
2
votes
2 answers

Failed to open VScode within Samba Share

In my Ubuntu system: Linux aldebaran 5.8.0-50-generic #56~20.04.1-Ubuntu SMP Mon Apr 12 21:46:35 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux Normally I go to the directory where the C++ source is located and start VS Code with user-prompt> code . On…
Jesko
  • 85
  • 11
2
votes
3 answers

Apache2 modifies the files that are download from a CIFS mounted repository by adding a header. The file are corrupted

My directory /var/www/html/ (which contains files that can be downloaded) contains a soft link to a directory contained on CIFS mounted file system (/mnt/netappIllumina/). When files are downloaded from this directory, they are corrupted as a header…
2
votes
0 answers

anaconda3 install error: raise Exception("dst exists: %r" % dst)

I am trying to install anaconda3 in a CIFS drive (Azure File Share in my case) but i keep getting this error: PREFIX=/monsoondrive/central/anaconda3 installing: python-3.7.3-h0371630_0 ... Python 3.7.3 installing: conda-env-2.6.0-1 ... installing:…
BlimBlam
  • 336
  • 3
  • 11