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.
Questions tagged [cifs]
419 questions
125
votes
15 answers
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 the same command from before:
mount -t cifs…
Kevin
- 1,383
- 2
- 10
- 9
60
votes
3 answers
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 map like this:
\\Server\ShareName -> Z:\
The…
Anagoge
- 703
- 1
- 6
- 7
52
votes
2 answers
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 ports, and I don't want to ask for more open ports…
Jonathan
- 623
- 1
- 5
- 5
31
votes
4 answers
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 network drive will be a share via a BlackArmor…
adamo
- 6,867
- 3
- 29
- 58
26
votes
3 answers
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=WindowsUsername,password=thepassword,uid=pistos…
Pistos
- 2,863
- 5
- 21
- 21
22
votes
3 answers
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 works fine:
//myserverhere.com/cifs_share…
icasimpan
- 606
- 3
- 6
- 14
18
votes
1 answer
How to authenticate Linux accounts against an Active Directory and mount a Windows share on login?
I'm using Ubuntu 10.04 Server.
Jamie
- 1,274
- 7
- 22
- 39
16
votes
2 answers
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=THEPASSWORD,cifsacl,uid=109 0 0
the…
Nachtexpress
- 163
- 1
- 1
- 5
16
votes
1 answer
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 it needed universal documenting.
Symptoms:…
zastard
- 163
- 1
- 5
16
votes
7 answers
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=Administrator
password=What@zR\!p3s
When I run the above…
David George
- 888
- 1
- 9
- 21
15
votes
4 answers
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 mount the shares manually, but autofs is just not…
Phanto
- 851
- 5
- 16
- 24
14
votes
1 answer
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, it will show the SMB version in use on shared…
J Smith
- 433
- 3
- 10
13
votes
2 answers
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 issue occurs after a while, usually after a day when…
Alexandru Plugaru
- 218
- 4
- 11
12
votes
3 answers
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:
[myshare]
path = /home/henry
browsable = yes
read…
amorfis
- 687
- 2
- 13
- 31
11
votes
5 answers
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 deal with a login window when they navigate to,…
mshroyer
- 280
- 1
- 3
- 9