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.
430
questions
128
votes
15
answers
311k
views
Mount CIFS Host is down
I have an issue with a mount point that was previously configured. It shows the folder, but the mount is missing and holds "?" values for size, permissions, etc.
So I tried to remount using cifs and ...
61
votes
3
answers
243k
views
Mount Remote CIFS/SMB Share as a Folder not a Drive Letter
Is there any way to mount a remote CIFS/SMB/SAMBA share as a folder/directory and not as a drive letter. For example, I want this map:
\\Server\ShareName -> C:\Folder\ShareName
Instead of the usual ...
54
votes
2
answers
462k
views
TCP/IP ports necessary for CIFS/SMB operation
If I want to allow Windows networked drives between two firewalled computers, do I need to open ports 137-139, or is port 445 sufficient? I have to submit a form and get approval to open firewall ...
33
votes
4
answers
297k
views
Permanently mount network share without the need for log on? (Windows)
On a Windows 2008 R2 Server (Standard) I need to have a network drive mounted without having a specific user to log on to the machine first. Sort of like an NFS mount via fstab on Unix machines. The ...
27
votes
3
answers
55k
views
Linux: CIFS/Samba mount hangs for several minutes
I have a small local network which has a Gentoo box and a Windows box. I mount a share originating on the Windows box onto the Gentoo box with a command like:
mount -t cifs -o username=...
22
votes
3
answers
117k
views
How do I pass credential file to mount.cifs?
I'm maintaining a heterogeneous network of mac and linux so I decided to create a little perl script to unify mounting strategies across machines.
The current implementation in linux is in /etc/fstab ...
18
votes
1
answer
39k
views
How to authenticate Linux accounts against an Active Directory and mount a Windows share on login?
I'm using Ubuntu 10.04 Server.
18
votes
3
answers
32k
views
CIFS mount in fstab succeeds on IP, fails on hostname written in /etc/hosts
I wonder why my Ubuntu Server 14.04 LTS has problems resolving a hostname from fstab.
I tried to mount the following entry:
//NAS-5h2-20/backuppc/ /mnt/backuppc cifs auto,user=THEUSER,password=...
16
votes
7
answers
59k
views
Mount CIFS Credentials File has Special Character
I'm having trouble mounting a share on my XenServer (5.6 FP1). From the command line I try:
mount.cifs //server/share /mnt/share -o credentials=credfile
The contents of credfile is:
username=...
16
votes
4
answers
67k
views
Mount CIFS share with autofs
I have a system running RHEL 5.5, and I am trying to mount a Windows share on a server using autofs. (Due to the network not being ready upon startup, I do not want to utilize fstab.) I am able to ...
16
votes
1
answer
10k
views
Linux samba server: cifs_mount failed w/return code = -12
Server: RHEL 5.9 / smbd 3.0.33
- Clients: various, though all were using current mount.cifs (5.2)
I already solved this problem, but it was such a nightmare to hunt down these error codes I felt like ...
15
votes
3
answers
46k
views
How to setup samba share to be mounted as specific user?
I want to create samba share to which users can connect as specific samba user.
I created user, let's say henry, and I want to make storage in his home.
So I have in my /etc/samba/smb.conf:
[...
14
votes
1
answer
8k
views
How do I find out what version of SMB is in use by each attached client to a Windows Server 2016?
I am trying to determine which version of SMB/CIFS is in use by clients attached to shared folders on my Windows Server 2016. If I run the powershell command Get-SmbConnection on the Windows Server, ...
14
votes
2
answers
32k
views
CIFS VFS: BAD_NETWORK_NAME on Linux
I am struggling with an issue of Windows SMB share mounted on Linux servers getting disconnected once in a while.
To give a brief introduction about my environment, I have few linux servers which ...
14
votes
2
answers
7k
views
CIFS mounts hang on read
I have a problem with a bunch of CIFS mounts that look like this:
//192.168.10.2/remote-share /home/windows-shared/remote-share cifs defaults,user=xxx,password=xxx,uid=603,gid=603 0 0
This ...
11
votes
1
answer
21k
views
Unable to mount cifs share in fstab with spaces in share name
I'm running a Debian Squeeze system and trying to mount a windows share in /etc/fstab. I've got an existing cifs mount working, but it's a simple //xx.xx.xx.xx/sharename situation. This second one isn'...
11
votes
5
answers
68k
views
Anonymous file sharing without login window, from Windows 7 server to XP clients
I'm trying to provide machines on a small LAN with read-only, anonymous access to files shared from a Windows 7 workstation (let's call it WIN7SVR). In particular, I don't want clients to have to ...
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 ...
10
votes
4
answers
19k
views
Secure way to mount a password protected cifs share in mac
I'm maintaining a heterogeneous network of mac and linux so I decided to create a little perl script to unify mounting strategies across machines.
Actually, I already have a working perl script, ...
10
votes
8
answers
174k
views
mount error(13): Permission denied with windows share
I am struggling to mount a windows 2008 share on a CentOS 6.4 (64 bits) server
when I use smbclient it works:
smbclient //esb.local/dfs -U ESBSertal -W ESB -P MyPassword
but with mount it does not....
10
votes
1
answer
6k
views
Samba (CIFS) mount error(9): Bad file descriptor
I had successful connections from my main workstation PC (which uses Fedora 29 Workstation) to my mother's laptop (Windows 7 HP) network share few times using mount.cifs, but since not too long it has ...
9
votes
3
answers
41k
views
Slow shared folder refresh on windows 7
When I create a new folder in a shared folder under Windows Server 2012 sometimes i can not see new folder by windows 7 clients. Also with some refresh I still can not see new folders. After some ...
9
votes
1
answer
6k
views
Networking doesn't initialize properly when pxebooting Linux Mint (live CD) using cifs, but works with nfs
I have a TFTP/DHCP/NFS/SMB server (Ubuntu server 12.04 LTS) on 192.168.26.1. I use pxelinux to display a menu containing startup and installation options for Windows, an Ubuntu network installer, and ...
8
votes
5
answers
37k
views
How to mount a windows administrative share on linux via SMB
I'm currently trying to mount a windows shared drive under linux.
The machine is using windows 7 and by default it shares all windows drives if you login as an administrator. I've been able to login ...
8
votes
3
answers
12k
views
Difference between durable file handles, resilient file handles and persistent file handles
In CIFS/SMB protocol, I see that there are 3 types of file handles: durable, resilient and persistent. What is the difference between them?
8
votes
1
answer
6k
views
Directories shown as files, when sharing a mounted cifs drive
I have an issue where a directory is shown as a file when accessing a samba share ( on Ubuntu 12.10 ) from a Windows machine.
The output from ls -ll in the folder on the linuxbox is as follows:
...
8
votes
3
answers
15k
views
It is possible to put FreeNAS as Auth Server (SMB or LDAP), File server and Ubuntu as "Client" (Kerberos auth-pam)?
I want to configure my FreeNAS server as authentication server (user FreeNAS local user's to auth into ubuntu clients) and NAS server, of course. I have Ubuntu as clients and they are booting over ...
8
votes
3
answers
16k
views
How to fix OSX client to Windows share hangs?
I have 2 x MacBook Pro's (OSX 10.6.7) that access files stored on a 64-bit and a 32-bit Windows 7 PC.
The MBP clients can connect to the Windows shares and transfer files with no problem.
However, ...
7
votes
3
answers
15k
views
Native SMB/CIFS through ZFS or Samba Instead
I was totally unaware of native SMB/CIFS on ZFS. This wiki doc does not mention performance differences. What kind of performance differences exist between the two?
7
votes
2
answers
16k
views
how can I mount a windows share with rw access?
The question is in the title.
Here is what I tried but the folder is read only.
sudo mount -t cifs -o username=maazza,domain=MYDOMAIN //192.168.123.2/company-files /mnt/test
I am on debian jessie.
...
7
votes
1
answer
34k
views
mount windows share read only
I would like to mount a windows share which is read only for my backup user but I'm always getting the error message no permission.
mount -t cifs //192.168.0.10/office /mnt/shares/office -o ro,...
7
votes
2
answers
4k
views
How to troubleshoot Linux in-kernel dns_resolver
Linux provides a facility that lets kernel and its modules to resolve DNS names by relying on user-space tools. This, for example, is used by CIFS to support referrals in the DFS.
The problem I'm ...
7
votes
3
answers
7k
views
Mounting Linux user home directories on CIFS server
I was wondering about peoples experiences with mounting users home directories from an Active Directory authenticated CIFS server under Linux. Preferably the mount would be accomplished upon login ...
6
votes
4
answers
44k
views
mount.cifs: mount error(112): Host is down
I am trying to mount a windows samba share on CentOS and RHEL 6 machines, but gives following error.
~]# mount.cifs //example.com/Linux_Support /mnt -o credentials=/root/cifsauth,noserverino,vers=3.0
...
6
votes
5
answers
10k
views
Multiple logins with pam_mount means multiple (redundant) mounts
I've configured pam_mount.so to automagically mount a cifs share when users login; the problem is if a user logs into multiple times simultaneously, the mount command is repeated multiple times.
...
6
votes
2
answers
12k
views
Can't create or follow symlinks from linux client with a cifs mounted Windows Server 2008 R2 share
Windows Server 2008 R2 NTFS supports symlinks. If I log into the server as Administrator I can create symlinks with mklink, so I know the Admin user has the permissions to do this. If I mount a share ...
6
votes
1
answer
536
views
CentOS cifs client sees Windows 2012 deduplicated files as symlinks
I have CentOS 7.0 VM with a volume mounted on a Windows 2012-R2 file server.
The volume contains some big files related to an internal Wordpress site.
About a week ago the site became 'broken' and ...
6
votes
5
answers
33k
views
Windows file explorer using port 80 (webdav) instead of 445 (samba smb cifs) for UNC path
I have a Windows 7 Ultimate x86_64 machine, which is failing to access a network samba server. I launch the "Run" dialog, and type in \\192.168.x.x so I am bypassing DNS and NetBIOS name ...
6
votes
1
answer
6k
views
Symlinks look like regular files on samba shares
Symlinks on my samba share aren't behaving the way I want them to – specifically, the links look like duplicate regular files to the client machine. This used to work (i.e. symlinks on the server ...
5
votes
7
answers
57k
views
Windows networking performance (SMB/CIFS)
Are there registry settings or other settings available to tune Windows networking (SMB/CIFS) performance?
I'm trying to get maximum throughput for large file copy operations but any settings would ...
5
votes
3
answers
22k
views
Mount NTFS (read/write capability) on Ubuntu
I'm trying to mount Windows 2000 shared folder on Ubuntu in an effort to get Read/Write capabilities. Any advice?
I've verified that the user credentials have writable permissions from a windows ...
5
votes
2
answers
2k
views
Heterogeneous environment "roaming" profiles
By "roaming profiles" I really mean "shared home directories".
So, I set up an AD pair, and shared a folder on \\ad-1\homes. Then set the AD user object to mount H:\ = \\ad-1\homes\%username%. This ...
5
votes
2
answers
23k
views
How to map Windows ACL to Linux ones on a CIFS share?
Context
We have a Windows server with an Active Directory domain and a network share.
I have a Linux machine and I want to mount the share.
sudo mount -t cifs //server/share /mnt/share -o user=[act-...
5
votes
3
answers
1k
views
apache2 sends corrupt responses when using a cifs-share
I have a problem with a ubuntu-instance (Ubuntu 20.04.1 LTS) and apache2 (Apache/2.4.41 (Ubuntu)). One virtual-host is serving some html-files and documents from a mounted cifs-share. The cifs-share ...
5
votes
2
answers
1k
views
Does samba need to fetch the entire file to determine its size?
Given the following configuration:
server with samba version 4.7.6-ubuntu
client mounts a samba share using mount -t cifs
If a du -h /shared/filename command is executed on the client, will the ...
5
votes
1
answer
3k
views
CIFS/SAMBA Mount still attempts before network is ready even with _netdev
The title gives a pretty good synopsis. I am running a debian derivative (osmc) on a raspberry pi 2 in this case. and am trying to mount a share. It mounts 100% a ok from the command line or just ...
5
votes
3
answers
8k
views
Symlinks not preserved by rsync when copying to cifs share
I have two servers, let's call them sA and sB. I need to backup data (several TBs) from sA to sB but because of problems with sB SSH, I'm using my local pc as "middle man". sA is a Linux server, sB is ...
5
votes
1
answer
10k
views
Reconnect Attempts for CIFS share
I have a CIFS share mounted in the FSTAB on Ubuntu server, which connects to our NAS and works without issue. Last night we had an issue with the SAN for about 12 hours. We corrected the problem and ...
5
votes
2
answers
790
views
Unable to list new files on a cifs share with ls *
I have an old HP-UX system running version 11.11, it has a cifs mount configured to a netapp filer.
In the past several days we've been seeing some odd behaviour for the share where files can be ...
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, ...