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.

313 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
7
votes
2answers
1k views

How to set up an encrypted directory to be mounted only during samba access?

(This is not about restricting client access, for which ext3 permissions do the trick) I'd like to encrypt the data on my NAS drive (Buffalo LinkStation Pro with SSH access enabled, if that matters) ...
5
votes
0answers
1k views

Resolve NetBIOS Names via Samba >= 4.4

Through StackExchange, we know how to configure Linux to resolve NetBIOS names with older versions of Samba, and I have configured my system in those ways. (I have installed winbind, configured my /...
5
votes
2answers
7k views

Can not see windows share list in linux

I have a little network in my house and I have shared a folder on Windows. On other Windows computers I can see the list of Windows share list but none of the linux devices can do so. when i click on ...
5
votes
3answers
12k views

Unable to connect to the samba server

I setup a samba server (Version 3.6.9-167.el6_5). One of the sub folder contains more than one thousand, if I delete this folder then I can connect to the server, otherwise I am getting a timeout ...
5
votes
1answer
759 views

Why is sed changing permissions of a file on a cifs mounted share?

I have an Arch linux machine that uses the following fstab entry to mount a share: //192.168.3.1/Documents /mnt/ cifs credentials=/home/tal/.smbcredentials,rw,x-systemd.automount,iocharset=...
4
votes
0answers
171 views

Notification when someone is accessing my Samba/CIFS share

Is there any way I can get notification (preferably Gnome notification) when someone (privileged) is accessing my Samba/CIFS share? If there is no such a tool, I need to implement one. It's important ...
4
votes
0answers
394 views

WebDAV server with PAM auth and system file permissions?

Basically, what I'm looking for is Samba - except that I want it to be WebDAV in the front. The requirements are that the users can log in to the WebDAV dir with their system account, and files will ...
4
votes
0answers
1k views

Samba performance tuning

I'm using Samba to share a folder from Linux to a Windows client (Windows Server 2012 R2). The disk backing the Linux share is pretty fast (NAS of 500+ MB/s). However, when I benchmark the IO ...
4
votes
0answers
439 views

Does Samba 4 actually respect Unix file acls?

After researching the subject on the internet I drew a conclusion that Samba should take into account Unix file acls. During my tests I found the opposite. Only Unix file mode bits are respected, and ...
4
votes
0answers
1k views

How to samba automatically add user and share they home?

Linux OpenSuse 12.3 , samba server 3.6.12 . My samba is configured and working with security = user and today is used only for two users where I was added manually at passwd and smbpasswd. This ...
4
votes
0answers
434 views

How to use a samba login to mount a luks container?

Our server has an (dm-crypt/LUKS) encrypted project directory which is currently mounted via SSH before its samba share can be accessed - and obviously no one remembers to unmount it afterwards. (...
4
votes
1answer
4k views

Networking and Samba from a quest OS running on qemu

I'm trying to test some software on a big endian system to ensure compatibility. My plan is to use qemu on Ubuntu 12.04 to emulate a MIPS system. So far I've been able to create the quest system ...
4
votes
3answers
4k views

Deleting Non-empty Directory with smbclient

How can I remove a non-empty directory with smbclient? I have tried the following: 1) rm Result: NT_STATUS_NO_SUCH_FILE listing [dir_path] 2) recurse;rm Result: No Error but also nothing happens!...
4
votes
0answers
6k views

Samba's “inherit permissions” does not inherit modes for other

I have a share with "inherit permissions = yes". I have a directory in the share with mode rwxrwsr-x. If I create a subdirectory, the modes are rwxrws---. The same happens with a parent directory with ...
4
votes
1answer
2k views

How to change user on SWAT page (or how to control Samba by nonprivileged user)

I logged into SWAT with my nonprivileged user, since the root account is usually disabled on modern Linux systems. I cannot control any Samba parameters by this user. Once I enable the root account, ...
3
votes
0answers
33 views

QEMU shared folder performance problem

I've got a Windows 10 virtual machine running on Ubuntu 18.04 host (QEMU 2.11). I've created a shared folder with the command line parameters -netdev type=user,id=smb0,smb=/mnt/ntfs,restrict=on -...
3
votes
0answers
248 views

Supervising process [xxx] which is not our child. We'll most likely not notice when it exits

Apr 14 15:54:11 debian systemd[1]: nmbd.service: Supervising process 588 which is not our child. We'll most likely not notice when it exits. Apr 14 15:54:11 debian systemd[1]: smbd.service: ...
3
votes
1answer
212 views

smb-share connection time increases each reboot on windows PE

We are currently developing a system that does automated BIOS updates for our computers. The system runs in Windows 10 PE booted via PXE-Boot. One of the first steps is connecting to a SMB-Share ...
3
votes
0answers
1k views

Active Directory Windows share folder from Debian samba

This is what I have: Group of computers under DOMAIN.LOCAL and all users provided by Active Directory in Windows Server Debian server Windows AD, DC server What I need: Share a folder from my ...
3
votes
0answers
716 views

“Read-only file system error” on Samba share, alternative share with identical options working (Linux client)

I'm experiencing a very strange problem which I've been trying to solve in the past few days and I already tried various methods of resolution to which I will get to in a moment. My home network ...
3
votes
0answers
82 views

Make read-only directory accessible to other users

I have mounted a read-only share via gvfs-mount to /run/user/60373/gvfs/smb-share. I would like to make other users read this share. The problem is that I can't set the permissions recursively as I ...
3
votes
0answers
739 views

Samba Share with OpenLDAP Users

I want to have following Setup: OpenLDAP Server where Users are stored. File Server with Samba Shares, where OpenLDAP Users should have access to. OpenLDAP Users already have access too several ...
3
votes
0answers
3k views

Very poor SMB3 (and SMB2) performance between Linux SMB client and Samba 4 Server

I work in a mainly Windows client environment, but we use Samba 4.3.10 as the file server (on RHEL 6.x). Windows 10 clients are able to negotiate and use SMB3 just fine, and Windows 7 machines are ...
3
votes
0answers
244 views

Using alernative openLDAP UID to authenticate to Active Directory

I'm using Winbind to authenticate users to Active Directory. Everything is working perfectly when the usernames match. The problem is that many of the users have different usernames for Windows and ...
3
votes
0answers
766 views

Files created on a Samba share cannot be modified by the same user

Under normal usage of a Windows app, temporary files can be created on a Samba NAS share but once created, the same user cannot delete or modify those files - unless they wait 'overnight'. The ...
3
votes
2answers
994 views

Removing Incorrect WINS record

So I have a Ubuntu 14.04 server that I'm trying to get to run as a Domain Controller for a set of Windows machines. I've set up a Bind9 DNS and it works fine, pinging the nameserver gives the correct ...
3
votes
1answer
407 views

Secure share in samba not working, why?

The secure share that I created in samba with a password doesn't seem to work. I have the following on my /etc/samba/smb.conf on a Linux Mint box(3.13.0-37-generic) box. [myshare] ...
3
votes
0answers
620 views

mv “Not a directory” when target name too long

I'm trying to do an svn checkout on my local Ubuntu 14.04 LTS vagrant box (SSH via MTPutty): vagrant@vagrant-ubuntu-trusty-64:~/shared/dev$ svn checkout https://... [...] svn: E000020: Can't move '/...
3
votes
0answers
719 views

Login to Linux using a trusted Active Directory

I'm having trouble to log in to Linux using a trusted Active Directory. The machine is connected to an Active Directory that we are responsible for in the project, but most of the users who will use ...
3
votes
1answer
207 views

Printing through a Samba server without recording the password in plaintext

I need to access a printer through a Samba server. In CUPS, I could make it work by entering a device location such as smb://username:password@hostname/printer_name. However, it would mean for my ...
3
votes
0answers
6k views

Mounting windows share using mount -t cifs

All, I have a SUSE SLES 11 box running samba. I am running this command: mount -t cifs //ip/dir1/dir2 /mnt/backups -o username=user,password=pwd,domain=domain Which works and mounts the drive ...
3
votes
0answers
6k views

WBC_ERR_DOMAIN_NOT_FOUND only for a specific account

Platform: RHEL 5.10 Version: Samba 3.6.6-0.136 Only on a single VM, one of my co-workers is able to log into the VM using his AD credentials without issue, whereas my account appears to have trouble ...
3
votes
0answers
3k views

Changing Samba/LDAP password with passwd

We've installed CentOS Directory Server (389 DS) and have Samba using it as a backend. This works great except that when enabling password syncing in the smb.conf it is only synced one way. I could ...
3
votes
0answers
4k views

Permission denied when Ubuntu is attempting to mount to a remote Windows share folder

Fellow guys, I encountered the error when I's mounting my Ubuntu server to a remote Windows share folder, the following is the error on terminal after I typed command line 'mount -a': mount error(13)...
3
votes
0answers
695 views

Samba: system group mapping

I have w2008R2 PDC and Linux server with samba and winbind. Now I'd like to add some domain users to Unix adm group in AD. Let's say I have adm group defined in AD, and every user from this group ...
3
votes
0answers
3k views

Can not mount samba share from DD-WRT

I'm trying to mount a samba share on dd-wrt. I keep getting this in the dmesg and the mount command hangs. CIFS VFS: Error connecting to IPv4 socket. Aborting operation CIFS VFS: cifs_mount failed w/...
2
votes
0answers
366 views

CIFS mount no longer working

I have several RHEL6 systems with the same configuration. I have had CIFS mounts working for years. However in the past month, it has stopped working on one of my systems and I cannot seem to figure ...
2
votes
1answer
333 views

Give different users access to different sub folders

OK so I understand this is probably a super newby question but I've been playing around with this and trying everything within my knowledge to get this sorted but just cannot figure it out. Basically ...
2
votes
0answers
11k views

GNU Samba server: check SMB version of exported and mounted shares

I have a NAS Zyxel NAS326 running on Linux acting as Samba server. I can't exactly say which Linux distribution, this is all I get from "uname -a": root@nas326:~# uname -a Linux nas326 3.10.39 #1 Fri ...
2
votes
0answers
198 views

Printing to smb with kerberos auth?

I want to set up a printer via samba client to a Windows printserver. I managed to do it specifying this connection string: smb://user:pass@printserver/printer Is there a way to do auth through ...
2
votes
0answers
362 views

Samba Active Directory Domain Controller not working

I have installed the current samba (via apt-get) on Debian (Debian 4.9.30-2+deb9u5) and am configuring it to be an Active Directory Domain Controller (AD-DC). I've also got it configured to use LDAP ...
2
votes
0answers
5k views

Samba SMB Daemon fails to start; installation incomplete

I'm attempting to create a Samba server on a Raspberry Pi running Raspbian. The install gives the following error message. Setting up samba (2:4.5.12+dfsg-2+deb9u1) ... Failed to preset unit: Unit ...
2
votes
0answers
82 views

Missing a driver for a SMB-accessed Brother printer

I use Lubuntu 17.10. I'm not quite sure which spooling mechanism my own system uses (I think it's CUPS). Now, I want to connect to a printer attached to another machine on a LAN; it's a Windows ...
2
votes
0answers
346 views

how to migrate to docker architecture?

I am totally new to Docker and I like the concept of isolation of the different processes in different environment, mostly too the fact that you can test something in a container without polluting ...
2
votes
0answers
2k views

samba share inaccessible / you don't have permissions

I have setup a samba share folder, however, when I try to access the share, I am getting "Windows Can not access the \\server\share1. You don't have permissions to access \\server\share1" This server ...
2
votes
0answers
344 views

Samba share file write/close, rename => permission denied

Samba 3.6.3 on ubuntu 12.04.3 LTS clients windows server 2008 R2, 2012 From windows, On a samba share I am doing - open dir1/file - write dir1/file - close dir1/file - rename dir1/file dir2/file-new ...
2
votes
1answer
2k views

Change permissions for mounted veracrypt drive in linux

I have a server with a mounted veracrypt volume (inner is NTFS, but tried ext4 with same results) and want to share it inside my local network with other computers (mostly windows). The problem is, I ...
2
votes
0answers
1k views

Nemo fails to open SMB share: “Connection timed out”

Recent events forced us to upgrade our windows share servers to use Samba version 3.0. Nemo, the file manager, cannot open the windows network share, producing an error on every attempt. Using both ...
2
votes
0answers
352 views

smbpasswd resets password, but not expiry date

I'm a DBA using VPN and SSH to connect to a client's Linux system, on which resides the database. They are primarily a Windows shop, thus my gig to manage their database on what I believe is their ...
2
votes
0answers
594 views

Question marks in filenames and Samba

I have smbd version 3.6.6 on Linux and mount the share on a FreeBSD system with mount_smbfs. When I try to copy (cp) a filename containing a question mark, I will get the error: No such file or ...