Questions tagged [cifs]

The Common Internet File System (previously known as SMB) is a layer 7 networking protocol providing file and device sharing across local networks. It was originally designed and implemented by Microsoft as part of the Windows operating system.

126 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
11 votes
2 answers
2k views

Disable file locks on a read-only Windows File Share

Case On a Windows Server (2012R2 or 2016), I want to configure a file share offering a following functionality some users, publishers group, have a write access to the share; these users are ...
Michał Sacharewicz's user avatar
5 votes
0 answers
3k views

`ls` command hangs indefinitely in some directory in an azure File Storage share

I have an azure File Storage share mounted in a Ubuntu 16.04 VM following this how-to. Everything seems to work fine. So I run some process that produces a lot of data, e.g. 10k files for each run, ...
petrux's user avatar
  • 151
4 votes
0 answers
3k views

Strange STATUS_ACCESS_DENIED issue with SMB2 client and Freenas CIFS SHARE

I've recently started seeing some strange SMB2 Errors on Windows 10 PCs (all of them version 1903). The Fileserver is running FreeNAS-11.1-U7 (with ZFS Volumes) and CIFS Shares with Active Directory ...
arpan's user avatar
  • 41
4 votes
0 answers
5k views

Are the in-built sharesmb / sharensfs options in ZFS on Linux special/better?

While reading through the man page of zfs I noticed the sharesmb and sharenfs options. Are they thin wrappers over samba/smb/cifs/nfs provided by the underlying Linux system, or special/optimised code ...
Saurabh Nanda's user avatar
4 votes
1 answer
3k views

Filename encoding switched to UTF-8 by tar when untaring to Windows share

We have different Magento installations (webshop) that allows images to be added to a product freely. When an image is added to a product, the file is named in a specific way that sometimes ...
Dabu's user avatar
  • 359
4 votes
0 answers
2k views

How can I improve performance over SMB/CIFS for an application that has poor write speeds?

I have a third party application that reads several large files and generates a third large file. Its performance is quite good when the generated file is stored on "local storage", i.e. either a ...
Jeremy's user avatar
  • 661
3 votes
0 answers
601 views

Remote filesystem, performance and caching (davfs vs cifs vs sshfs)

I'm hosting files on a Hetzner Storage Box. As for mounting those remotely, i have the choice between WebDAV, CIFS or sshfs. Once mounted, those files will be accessed by liquidsoap. The problem here ...
Domovoy's user avatar
  • 31
3 votes
0 answers
796 views

How to use systemd as automount for cifs when uids and paths needs to be set up on demand?

I'm trying to convert an autofs setup to systemd for user home dirs through cifs. In essence the problem is to provide the mount command with uid, gid, cruid and UNC per user account when the mount is ...
dragz's user avatar
  • 51
3 votes
0 answers
2k views

How to run kinit as root before automounting mutiuser cifs mounts?

Goal I'm setting up multi-user CIFS mounts in an Active Directory environment under CentOS 8.2. The storage server supports SMB3.1.1 protocol. Prerequisites I could easily integrate the system to the ...
MauvaisJoueur's user avatar
3 votes
0 answers
685 views

Must `kinit` user's ticket manually before PAM can mount SMB home directory at login

Ubuntu 14.04 file server Ubuntu 14 Active directory (AD) server running Samba 4 Ubuntu 18 client (fresh install) I've configured for Ubuntu user home directories to be mounted via PAM and SMB/CIFS. ...
BurningKrome's user avatar
3 votes
0 answers
2k views

"Mount error 13" on CIFS connection w/o Domain Admin

Scenario I have following clients in my network: Quartz I2S scanner with embedded Linux firmware Windows client (not domain-joined) for comparison These will be trying to access a network share on ...
Michał Sacharewicz's user avatar
3 votes
0 answers
3k views

Mount CIFS-share with users Kerberos-Ticket

we want to mount shares through autofs. Nothing special we thought. But: this must be done in some complex active directory circumstances. What we have: integrated Ubuntu 14.04 workstations on which ...
cbuchey's user avatar
  • 41
3 votes
0 answers
2k views

Mount Windows 7 share using mount.cifs: Symlinks staying inside the share cannot be created

We have multiple Windows systems using Windows 7 (64bit). For web development, we want a project workspace directory that can be shared with a VM (Oracle VirtualBox). The solution included in ...
Dabu's user avatar
  • 359
3 votes
0 answers
3k views

Windows Server 2008 R2 Shared folders are very slow when uploading files

I have a little problem, I have a server with Windows Server 2008 R2 Enterprise edition with the File Service installed, and a client with Windows 7 Pro. Everything works fine but the file transfert ...
Kedare's user avatar
  • 1,786
2 votes
1 answer
10k views

smbclient NT_STATUS_BAD_NETWORK_NAME with server OS SpinStream2

I'm trying to use Samba smbclient to connect to a file server managed by my technology partner, and I'm consistently getting this error message about tree connect failed. The exact details have been ...
Nic's user avatar
  • 13.5k
2 votes
1 answer
3k views

Mounting a cifs share dir_mode and file_mode are being ignored

I have an Ubuntu Server that is trying to mount a Windows Server shared folder. Firstly, what I'm trying to do here is mount the share as the person in the credentials file and all actions take place ...
Ryan Mortier's user avatar
2 votes
1 answer
6k views

Cannot access SMB share hosted on Ubuntu from Windows 10

Attempting to access SMB share on Ubuntu from my Windows 10 host fails with "session setup failed: NT_STATUS_NOT_SUPPORTED". Windows 10 has SMB1 disabled: PS C:\> Get-...
Flowneee's user avatar
  • 159
2 votes
0 answers
573 views

Cannot see mounted CIFS directory from FTP client

I have two servers, a Windows fileserver and a Linux FTP server. I've mounted the directory from the Windows server into my home directory on the Linux server using CIFS: mount -t cifs -o user=user,...
Agung Wahyudiono's user avatar
2 votes
0 answers
180 views

Difference between Level 1 Oplock and Filter Oplock

As I know, there are 4 types of Opportunistic Locks: Level 1, Level 2, Filter, and Batch. For me, Level 1, Level 2 and Batch Oplock are not so difficult to understand, but I still don't understand ...
Waveter's user avatar
  • 574
2 votes
0 answers
821 views

One slow SMB/CIFS share causes slow and laggy network performance to or from fast ones in Windows 7

Windows 7 SP1+ (Ultimate), connected to both local network Samba (latest stable versions) over Gigabit Ethernet, as well as a VPN'ed Samba share that goes out over my ISP link (1200 kbps uplink). All ...
Romulus Remoraz's user avatar
2 votes
0 answers
2k views

Any way to have wildcards in fstab?

My goal is to allow any user to mount a cifs share to /media/networkshare or even better /media/networkshare/share_* Is there any way to allow wildcards in fstab such that they can do that? I can't ...
Trel's user avatar
  • 121
2 votes
0 answers
3k views

Powerbroker Open : Cannot automount CIFS share, where is the kerberos ticket?

I am using Powerbroker Open (formerly Likewise Open) to join CentOS 7 machines to a Windows 2012 R2 domain. Login etc. works fine. Now I am trying to use the automatic mount of home directories via ...
trapperjohn's user avatar
2 votes
0 answers
2k views

mounting subdirectory with mount.cifs gives permission denied, but gvfs works

On a windows file share we have a user "drone" who is given read write permissions to ONLY access a subfolder "child": /SHARE/parent/child But is not given read/write access to "parent" (however is ...
FizxMike's user avatar
  • 121
2 votes
2 answers
2k views

Windows 7 versus 8 Access CNAME'd Share

Here's a situation that came up yesterday: we have a share on a machine we have to access using an alias (CNAME). The machine is running Windows Server 2012 R2, and services Windows 7 and 8 clients. ...
Fred Woodbridge's user avatar
2 votes
0 answers
203 views

Rsnaphost "works" when tested but not when run

I have set up rsnapshot successfully a couple of times, and maybe because everything was rather painless (except for the vi tab fiasco of 2013) I am now out of ideas. I have a cifs mounted remote ...
horacv's user avatar
  • 21
2 votes
0 answers
6k views

How to setup/overcome file size limitation/"file too large" error in samba/cifs 2.1 on Synology DS214 with DSM 5

I'm mounting a samba share with some sparse files over cifs with -o username=user,gid=999,uid=999,rw,vers=1.0. The NAS has 3TB capacity and 500 GB free disk space, creating a 4TB sparse file with ...
Kalle Richter's user avatar
2 votes
0 answers
650 views

CIFS slashes changed to backslashes after upgrade

I am working on linux server which does its backup via rsync to a cifs-mounted share on an external NAS (D-Link DNS-320). Everything worked fine on opensuse 11.4. After upgrade to opensuse 12.2, the ...
Marie Fischer's user avatar
2 votes
0 answers
112 views

Prioritize One Network Share Over Another And/Or Cap Network Share Traffic? (Windows Server 2008 R2 Enterprise)

One of my fileservers is a hyper v VM running Windows Server 2008 R2 Enterprise. The NIC in the VM maps to a 1 GB NIC on the host that is dedicated just to this VM. I have two shares on the file ...
FullTimeCoderPartTimeSysAdmin's user avatar
2 votes
1 answer
2k views

EMC Celerra and Access-based Enumeration

I have a few CIFS shares for Windows on our Celerra, and I've run the EMCABE tool (in enable mode) on one of our CIFS virtual servers. When I check if ABE is enabled using the same tool, it comes back ...
ARivera3483's user avatar
1 vote
0 answers
754 views

How to set up remote home folders on Ubuntu 22.04 using CIFS

I'm trying to set up remote home folders for Ubuntu 22.04 workstations. These workstations are joined to an AD domain using sssd and krb5, and users sign in using their AD credentials. I'm also using ...
maxdownunder's user avatar
1 vote
0 answers
207 views

Finding resources about switching CIFS from soft to hard mount

We have some NFS shares and smb CIFS shares mounted over TCP/IP on our RHEL 7 machine. The shares are part of a HNAS that sits on a VSP. As per default the NFS shares are mounted with the "hard&...
DZet's user avatar
  • 121
1 vote
0 answers
149 views

Samba server issue with mount point being owned by root instead of 'force user' specified in smbd.conf

I've created a samba share on an ubuntu server called teslausb with the following lines specified in smbd.conf: [teslausb] comment = John's home share on Ubuntu path = /mnt/sdb1/teslausb ...
gyrex's user avatar
  • 11
1 vote
0 answers
405 views

Kerberos ticket timeouts with sssd and cifs shares

We are integrating Linux machines into our Active Directory infrastructure. It works quite fine, users are logging in with their AD-credentials, and get access to cifs-network-shares via PAM-mount. ...
Niels Jespersen's user avatar
1 vote
0 answers
382 views

Linux mount to FSx using AD user disconnects after interval; initial mount works but message HOST IS DOWN occurs after some time

When I run the mount command I’m able to connect/ls to the share until, what appears to be the ticket renewal, timing occurs. Then I get host is down. I have looked through all the suggested similar ...
Robel Robel Lingstuyl's user avatar
1 vote
0 answers
487 views

CIFS getting mounted multiple times

I mount the cifs export onto my server using this : mount -t cifs -o rw,noperm,nounix,sec=ntlmssp,credentials=/root/.cifsauth,vers=2.1 //10.151.26.10/MyServer/MyMount /mnt/cifs This results in at ...
hirt1980's user avatar
1 vote
1 answer
864 views

CIFS Mount Share: Permissions on one File Seemingly Corrupted

I have a multi VM Windows (Server 2019) solution, hosted in a datacentre, with services which require a Redis cache. Due to security concerns, the Windows fork of Redis is not allowable. Therefore, I ...
Luke's user avatar
  • 577
1 vote
1 answer
779 views

Can't access folders with special characters on mounted windows cifs share

I've got an issue on a Debian(11.3) server we host, I mounted a windows server share through cifs and fstab but when I try to access or list a few folders which contains special characters like "...
chnateag's user avatar
1 vote
0 answers
484 views

Files remaining locked after writing using mount.cifs

We have a server running RHEL 8.3 and connecting to a backup server running windows server running windows server 2016. We connect from RHEL to server using the command: mount.cifs \\SMCFILE\SMC$\...
user999684's user avatar
1 vote
0 answers
257 views

Please help me understand mounting cifs for domain group

I have samba ad dc and on a different member I have a file server. Domain Controller = Debian 11 (DC01) Domain Member (File Server) = Fedora 34 (FS01) Domain Member (Workstation) = Fedora 34 (F01) ...
Rob Campbell's user avatar
1 vote
0 answers
248 views

Forest trust: SPN mismatch for non-fully-qualified name

Setup All computers running Windows Server 2019. Domain A Item Value Fully Qualified Domain Name DomainA DomainA.local User UserA [email protected] Server FileServer FileServer.DomainA.local ...
Chris Stankevitz's user avatar
1 vote
0 answers
404 views

Modify folder permissions of parent directory that were automatically created by autofs

I am currently following this guide to setup CentOS 8 to automount samba shares. I am aware that we can change autofs auto mounted folders permissions using uid=...,gid=...,file_mode=0770,dir_mode=...
Vince Jerald Villamora's user avatar
1 vote
1 answer
5k views

Connection to Windows SMB share works through smbclient, fails to mount via mount.cifs

I'm trying to access a Windows Server 2019 share (inside a domain) from a CentOS6 host. I can browse the share via smbclient, but mounting fails: Status code returned 0xc000006d ...
dkd6's user avatar
  • 165
1 vote
0 answers
778 views

Mounting Windows shares on Linux using cifs fails after CVE-2020-1472 update

A patch/update to Windows domain controllers to address the CVE-2020-1472 vulnerability at my organization is causing cifs-based mounting of shared drives to fail on Ubuntu Linux machines. The Linux ...
eben.english's user avatar
1 vote
0 answers
634 views

Can connect via smbclient but not mount CIFS

I have a weird problem: I can connect to a samba server (on a Mac) from a Linux machine using smbclient but do not manage to mount the samba share using CIFS The smbclient command which works is: ...
Rainer's user avatar
  • 129
1 vote
0 answers
2k views

Unstable CIFS mount on CentOS 8

We recently created several centOS 8 serveur for running some springboot applications, which mount several directories from a windows server. Mount is working, but we are getting lots of errors at ...
felix's user avatar
  • 11
1 vote
0 answers
282 views

SFTP linux server with windows AD file server backend

I need to configure an sftp server (sftp-server) to give access to a Windows shared folder using Windows AD authentication (Freeipa is already configured in sftp-server) and permissions configured on ...
Alex Trivel's user avatar
1 vote
0 answers
787 views

Is it possible to not use smbpasswd to share samba home folders in linux?

I have a linux (Ubuntu) server with a few users on it that I allow their home folders to be accessed via smb. However, in order for them to access the folder, I need to use smbpasswd -a username Why ...
Chemdream's user avatar
1 vote
0 answers
972 views

Auto update Linux cifs mount when windows dfs target changes

Not that a retarget is a common occurence in the case we're working with but, we're in the process of some infrastructure changes and it's fresh in my mind. We have a number of Windows DFS share ...
Mark Carpenter Jr's user avatar
1 vote
0 answers
653 views

Centos only taking first DFS referral

$ umount -a: Linux server01 3.10.0-957.1.3.el7.x86_64 #1 SMP Thu Nov 29 14:49:43 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux I am able to successfully mount a DFS file share using the following command: ...
Cpt.Whale's user avatar
  • 412
1 vote
0 answers
932 views

Kill a hanging sync from a cifs drive

I copied a file to a cifs drive and instinctively ran a sync on it, which hung indefinitely. Strangely, I could successfully unmount/remount the drive without issues, making me think that the drive ...
Brydon Gibson's user avatar