Questions tagged [samba]

A free software re-implementation of the SMB/CIFS networking protocol, which provides Windows file and print services. Use this tag when your question involves Samba shares, mounts, or printers.

Adapted from the Samba Wikipedia article and the Samba home page:

Samba provides file and print services for various Microsoft Windows clients and can integrate with a Microsoft Windows Server domain, either as a Domain Controller (DC) or as a domain member. As of version 4, it supports Active Directory and Microsoft Windows NT domains.

Samba runs on most Unix, OpenVMS and Unix-like systems, such as Linux, Solaris, AIX and the BSD variants, including Apple's OS X Server, and OS X client (version 10.2 and greater). Samba is standard on nearly all distributions of Linux and is commonly included as a basic system service on other Unix-based operating systems as well. Samba is released under the terms of the GNU General Public License. The name Samba comes from SMB (Server Message Block), the name of the standard protocol used by the Microsoft Windows network file system.

The Samba project is a member of the Software Freedom Conservancy. The goal behind the project is one of removing barriers to interoperability.

For another introduction to Samba, see: Samba: an Introduction

1058 questions
102
votes
5 answers

How do you make samba follow symlink outside the shared path

This is Ubuntu server 10.04 64 and samba 3.4.7. I have a shared directory /home/mit/share and another one /home/temp that I link into the shared one: ln -s /home/temp /home/mit/share/temp But on windows, after using internet, I cannot open S:/temp,…
mit
  • 1,413
  • 3
  • 12
  • 17
74
votes
3 answers

CIFS vs SAMBA, What are the differences

What are the differences between CIFS and SAMBA? When would you use one over the other? Are there any performance differences between the two?
John
  • 931
  • 1
  • 8
  • 8
73
votes
3 answers

Changing a file's "Date Created" and "Last Modified" attributes to another file's

I'm using merge cap to create a merge pcap file from 15 files. For the merged file, I have changed the name to that of the first of the 15 files. But I would also like to change the merged file's attributes like "Date Created" and "Last Modified" to…
Jishnu U Nair
  • 1,501
  • 6
  • 19
  • 31
72
votes
2 answers

"WannaCry" on Linux systems: How do you protect yourself?

According to a rapid7 article there are some vulnerable Samba versions allowing a remote code execution on Linux systems: While the WannaCry ransomworm impacted Windows systems and was easily identifiable, with clear remediation steps, the Samba…
GAD3R
  • 63,407
  • 31
  • 131
  • 192
69
votes
5 answers

How to create a Samba share that is writable from Windows without 777 permissions?

I have a path on a Linux machine (Debian 8) which I want to share with Samba 4 to Windows computers (Win7 and 8 in a domain). In my smb.conf I did the following: [myshare] path = /path/to/share writeable = yes browseable = yes guest ok = yes public…
Foo Bar
  • 3,462
  • 7
  • 21
  • 28
64
votes
5 answers

mount error 13 = Permission denied

One of my servers is set up to automatically mount a Windows directory using fstab. However, after my last reboot it stopped working. The line in fstab is: //myserver/myfolder /mnt/backup cifs credentials=home/myfolder/.Smbcredentials The…
Pickle
  • 1,041
  • 1
  • 8
  • 7
40
votes
5 answers

How to mount a windows/samba windows share under Linux?

Under Linux (Ubuntu 12.04) I want to mount a windows share / windows partition named //winshared on the network. I do not know the IP or anything else. On one Ubuntu system, I am able to mount a directory with mount //winshared/mypath…
Alex
  • 5,614
  • 19
  • 65
  • 86
40
votes
2 answers

mount -t cifs: "Operation not supported", but can connect via smbclient

After sysadmin replaced the NAS, I can no longer mount the network share with sudo mount -t cifs //netgear.local/public /media/mountY -o uid=1000,iocharset=utf8,username="adam",password="password" Both NAS are linux-based, one with Samba 3.5.15…
Adam Ryczkowski
  • 5,493
  • 7
  • 39
  • 60
37
votes
7 answers

Sending files over Samba with command line

I was wondering if there is a way to use Samba to send items to a client machine via the command line (I need to send the files from the Samba server). I know I could always use scp but first I was wondering if there is a way to do it with Samba.…
t0xic
  • 475
  • 1
  • 4
  • 5
37
votes
2 answers

Execute a .exe on a samba share

I have a linux machine and a windows machine, the linux machine has a samba share with a .exe file on it. I can read and write files from the windows machine to the samba share, but I cannot execute the .exe file. How can I setup samba to allow me…
jojo_bacon
  • 471
  • 1
  • 4
  • 3
36
votes
3 answers

Shared folder between QEMU Windows guest and Linux host

In the past I have used Virtual Box which has very good support for sharing a folder on the host with a Windows guest. I am looking for similar functionality for QEMU. The documentation suggests to expose a Samba server running somewhere in the…
Lekensteyn
  • 20,173
  • 18
  • 71
  • 111
28
votes
6 answers

Mounting cifs: "Operation not supported"

Unlike the similar question, I cannot even connect with smbclient. The samba share works fine in windows and automagically works, but in Linux I can't mount it at all and the error message is cryptic at best. Here is my samba.conf: [global] dos…
paul
  • 411
  • 1
  • 4
  • 7
23
votes
3 answers

How to access windows file server from linux

We have a windows file server with an address like this: \\bioinf-filesrv2.mycompany.fr\cluster15 How can I access it from Linux? On a Ubuntu 14.04 I tried to access this through nautilus, but it crashed. Here is the crash…
qed
  • 2,529
  • 6
  • 21
  • 27
21
votes
2 answers

Samba mount with password prompt as non-root user

I want to mount a password-protected SMB share (served by a Windows machine). The share is protected by a user name and password, and I may not write the password in a file, I want to be prompted for the password at mount time. I need a solution…
Gilles 'SO- stop being evil'
  • 807,993
  • 194
  • 1,674
  • 2,175
20
votes
5 answers

Linux solution for schools?

The school I'm working for as an administrator requested a system upgrade. Currently we are using a government-suggested Linux distribution called SuliXerver - it would be great, but most of the admin functions have been disabled, and are controlled…
fonix232
  • 365
  • 2
  • 8
1
2 3
70 71