Questions tagged [samba4]

Samba4 is version 4 of Samba, the Linux implementation of the SMB/CIFS protocols. It is the first version of Samba with full Active Directory support, allowing a Linux server to become an Active Directory Domain Controller.

161 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5 votes
1 answer
178 views

Override template homedir on FreeNAS 11.3 joined in Active Directory

I've joined a FreeNAS 11.3 in an Active Directory and everything works as expected. But one feature that I'm really missing is some kind of override on mapped home directories for users. By default ...
Vinícius Ferrão's user avatar
5 votes
0 answers
2k views

Samba and AD - "net ads changetrustpw" fails

I've got a Samba member of a Windows AD. I'm using a combination of sssd and winbind. Samba manages machine password changes, and it's configured also to update the passwords used by sssd. (The ...
Chris Davies's user avatar
  • 1,716
5 votes
0 answers
1k views

`smbstatus` not showing NetBIOS name

I'm upgrading a Samba server from 3.0.37 to 4.4.3, and it seems that on 4.4.3, the smbstatus utility no longer displays the NetBIOS name of connected clients. On 3.0.37, smbstatus -p looks like this: ...
jjlin's user avatar
  • 209
5 votes
0 answers
969 views

Samba authentication and LDAP

I have an OpenLDAP server that I use for authentication and authorization for various services. All users are of object type inetOrgPerson and my groups are groupOfNames. Now I want to configure ...
Chris's user avatar
  • 193
5 votes
1 answer
391 views

Samba4 locked pst files

i have a samba4 server that holds my clients outlook pst files, if the outlook client or the machine crashes i must go to the server to kill the PID manually. i saw there was "reset on zero vc =yes" ...
BluesRhythm's user avatar
4 votes
1 answer
5k views

Cannot access SMB share from Windows 10 via OpenVPN Connect

I'm sure this problem must have been solved a thousand times but nothing I do seems to work. Summary: On Windows 10 client, using file explorer, and OpenVPN Connect client 3.3.4, can't access a NAS ...
Balvik's user avatar
  • 41
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
796 views

Any possibility to use ZFS for Samba4 AD DC share on Ubuntu 16.04?

For a few (~ 5) PCs running Windows 8.1 I have to setup a domain controller using Samba4 on Ubuntu 16.04 Server. Additionally the DC should provide a few shared folders with user-specific access and ...
Apollo13's user avatar
4 votes
0 answers
234 views

Authentication issues when clients access domain-joined server from non Samba4 subdomain DNS name

We have an issue we’ve been struggling with for quite some time since we rolled out 10 Samba4 domain controllers at our main office and all remote sites about 3 years ago. Simplified Current ...
Thomas Maerz's user avatar
4 votes
0 answers
1k views

Samba4 internal DNS and isc-dhcp zone update

Could anybody explain, how to solve this problem with internal samba4 DNS and dynamic zone updates from isc-dhcp? In the logs I have: dhcpd: Unable to add reverse map from 170.5.168.192.in-addr....
kbu's user avatar
  • 255
4 votes
0 answers
2k views

Configure ntlm_auth for offline operations

We currently have a NAC server set up to authenticate against a Samba4 AD using the ntlm_auth utility and would like to make it more tolerant to network outages. Currently, when the NAC loses ...
Antoine Benkemoun's user avatar
4 votes
0 answers
482 views

Samba4 share: Windows can read/write, OS X can only read

In the last few days I've played around with Samba4. I've created a new domain, some shares and everything works well. At least when I'm working with windows. We have some OSX clients an I'm testing ...
Gewürzwiesel's user avatar
3 votes
2 answers
3k views

Samba4 AD DC setup and working, but won't connect with Windows 7 or 10

I've gotten a Samba 4 AD DC setup running on Ubuntu 18.04 LTS. I used this tutorial to make it work: https://www.tecmint.com/install-samba4-active-directory-ubuntu/ The problem is I can't get my ...
jfreak53's user avatar
3 votes
0 answers
412 views

Samba & AutoFS Hide shares

just want to ask if it possible to hide Samba-shares (through AutoFS) that users don't have access to ? I have 5 shares for 5 different groups of users (ex: group1...4 and Public). When member of ...
Koni32's user avatar
  • 31
3 votes
0 answers
241 views

ZFS on linux with centos 7.2 sync reads slow to crawl when executing sync writes

We are running ZFS on linux with centos 7.2. The array has 26 6tb Seagate sas drives in a mirrored configuration and then stripped across the mirrors to form our pool. 128gb arc, 480GB l2arc PCI ...
user2997301's user avatar
2 votes
1 answer
2k views

Students can't install Extensions in Visual Studio Code

We are a school and would like to use Visual Studio Code together with the Omnisharp extension. The students' working environment has the following characteristics Server-stored home directories ...
Z.J's user avatar
  • 121
2 votes
0 answers
2k views

Insufficient permissions to join the domain

I'm trying to join a linux computer to an existing SAMBA4 AD domain, but I cannot: LANG=C realm -v join --user=ldap example.com * Resolving: _ldap._tcp.example.com * Performing LDAP DSE lookup on: ...
sebelk's user avatar
  • 702
2 votes
1 answer
347 views

Samba4 server visible with IP on the network

I have a Samba4 AD setup. I cannot understand why the server is visible on the net only by its IP address and not by hostname. The configuration looks ok to me, the same as we have in other places ...
Maxxer's user avatar
  • 302
2 votes
0 answers
1k views

SMB Signature Verification Return Error= -13

Setting up a backup server for the purpose of backing up several other servers in our group. Mounting one of the shares I need to backup causes the server to complain: fstab entry: //10.0.10.228/...
Elcid_91's user avatar
  • 141
2 votes
0 answers
75 views

Ubuntu 18 inserting leading space to username

We have an Ubuntu 18.04 client authenticating against a Samba 4 Active Directory. On this client (and this client only) when a specific user (and this user only) logs in via ssh, tty, or the GUI (at ...
BurningKrome's user avatar
2 votes
1 answer
5k views

How do I run Docker containers as a Active Directory-domain user (SSSD)? ("unable to find user")

I am running several Samba-shares on a dedicated Debian 9.6 machine joined to an AD-domain (Zentyal with SMB 4). I am using a pretty straight-forward SSSD installation that has so far worked out ...
Oleg's user avatar
  • 413
2 votes
0 answers
320 views

samba: why mode of mounted file changed?

The mode of file on server is "644" but when I access through the mount, the mode is "755". I want to keep mode the same. Both server and client are ubuntu system. This is the smb.conf. [shared] ...
user180574's user avatar
2 votes
0 answers
3k views

Samba doesn't map users to domain

I'm starting to manually migrate my samba3 (or now samba4 classic) servers into a new samba4 AD domain. (All new servers are running with v4.7.4.) The DCs are running fine and I'm testing my first ...
Jakob Lenfers's user avatar
2 votes
0 answers
992 views

Getting an error when starting Samba

I am using Zentyal 5 on my original samba DC (containing Samba Version 4.6.7-Ubuntu). I am trying to join another DC of the same version to this existing DC, and I keep getting this error when I try ...
Pilling Fine's user avatar
2 votes
0 answers
385 views

Samba - how to use domain users without a local user account

I have Samba 4 configured to authenticate domain users to my office's domain. (The Samba server is not a controller of any sort, just a file server). In my setup, I always use the force user and force ...
Ricky Morse's user avatar
2 votes
0 answers
1k views

Samba mount is empty when mounted with nounix

For years this has worked and today it stopped. I have a Debian 8 server running Samba 4.2.10 to provide some shares to Windows 10 and Ubuntu 16.04 machines on a LAN. This morning the ubuntu ...
artfulrobot's user avatar
  • 3,089
2 votes
0 answers
712 views

Connecting windows 2012 to a linux ADDC, running samba 4 with ldap as backend

I have set up a Ubuntu server, running samba 4 and ldap, so it can act like a ADDC. I have connected linux and mac machine though ldap, and windows server 2003-2008 machines through the samba domain. ...
Tomas's user avatar
  • 259
2 votes
0 answers
2k views

Folder redirection to Samba fails, though mapping drives works [SOLVED]

I'm at a university. We have a campus-wide AD domain that we can use to authenticate our labs. I'm trying to set up a Linux server for mapping drives and folder redirection. The Samba server is an ...
user379283's user avatar
2 votes
0 answers
109 views

How can I get writes in samba shares to be treated as a specific user for permission purposes?

Use case: I'm trying to set up a single Samba share in a system (A) that should be freely accessible from another system (B) in the same network. A is running CentOS 7 with Samba 4 daemons. B runs ...
Protected's user avatar
2 votes
0 answers
62 views

ActiveDirectory Samba4 SMBHome authentication error

I have a samba4 server up and running providing an ADC. One OS X machine joined this AD and is configured to use the UNC path for the home directory, but the login failed because automountd fails to ...
chrstnwhlrt's user avatar
2 votes
0 answers
7k views

Enforce permissions on copying files within samba share

I have a small problem with samba which I'm unable to solve, but I honestly expect there to be no solution. When copying files with restrictive permissions from one directory on the share to another, ...
martin's user avatar
  • 171
2 votes
0 answers
688 views

Authentization agains Samba4 domain controler and not working kinit

I've a problem with Samba 4 and Kerberos. If I call kinit, it writes Client not found in Kerberos database while getting initial credentials. I find out, that the Kerberos works with user name only, ...
Theodor Keinstein's user avatar
1 vote
0 answers
2k views

How do I use Group Policy to sync client time in an Active Directory domain with an external NTP server and not the domain controller?

I have an Active Directory domain, with a domain controller running on Samba on Linux. I noticed that my Windows clients are having clock drift. I think this is because they really want the domain ...
interfect's user avatar
  • 333
1 vote
0 answers
133 views

2 Samba Configs: "config file" Parameter Fails

I am attempting to create 2 separate shares using 2 very different configs. I can get both going individually from the same system, but not together. Regretfully, I still have some legacy systems ...
Lee Fisher's user avatar
1 vote
0 answers
331 views

Samba AD sysvol sync unison permissions issue

I'm having an issue with syncing the unix permissions and ownership on the sysvol between two Ubuntu Samba AD DCs using unison. I have copied the idmap.ldb file from DC1 to DC2 and the Windows ...
squidconspiracy's user avatar
1 vote
0 answers
682 views

Migrate from Zentyal to Samba4AD

I'm really new in Active Directory world and I plan to migrate from Zentyal 7 (a stack of multiple tools packaged in an Ubuntu OS) to a pure Samba4 Active Directory, and keep the same domain name. I ...
1F987's user avatar
  • 771
1 vote
0 answers
485 views

Kerberos issues with Samba4 AD DC when resolv.conf not set to use localhost

I recently did a "classis conversion" of our small NT4 Samba domain to an AD one on my Debian 10 "Buster" system. I got everything working as far as I can tell, but I don't ...
Tim T's user avatar
  • 111
1 vote
1 answer
530 views

Joining samba server into windows AD domain, but in DNS subdomain

We have a windows AD domain, let's say EXAMPLE.COM. With corresponding DNS domain example.com I want to have just a normal domain member. Ubuntu 20.04, Samba 4.11.6. Its DNS name is already ...
Alexander Lelyakin's user avatar
1 vote
1 answer
555 views

Group Policy: existing Policy values deleted when running gpupdate

Domain Controllers (2): Samba 4 Client: Windows 10 1909 x64 After joining a computer to the domain, when I run gpupdate /force for the first time, the values under these keys are deleted: HKLM\...
Bangaio's user avatar
  • 180
1 vote
1 answer
291 views

Can't write on Samba4 share using Zentyal 6.1 server, after upgrading from 5, read only is allowed

I can't write on all my clients (Windows 7 and Windows 10) in all my samba shares, even if the users are accepted on domain, and the permissions was maintained. The shares are on a NAS, ISCSI ...
SYS64738's user avatar
1 vote
0 answers
301 views

Is it possible to use sssd to login to the samba domain controller

We use sssd for user management with the account information from a Samba AD Domain Controller. The sssd-configuration on linux clients looks as follows: [sssd] services = nss, pam,ssh ...
DoRe's user avatar
  • 41
1 vote
0 answers
767 views

How to only allow certain file extension on samba?

How to make samba only allowing certain file extension to put on for example i will only allow .doc, .pdf, .exe and it will block everything else. I know we can use veto files, but veto files work ...
Aditya's user avatar
  • 111
1 vote
0 answers
811 views

Linux Samba server for Windows roaming profiles?

I have an existing Windows domain using Windows 2016, and I want to set up roaming profiles. I would like however to use a linux box (CentOS 8 ideally) for the actual fileshare to save a license. I ...
spoovy's user avatar
  • 354
1 vote
2 answers
444 views

How to exclude PDF folder from samba recycle?

My problem is how can I exclude the folder PDF from recycle (/home/*/PDF)? I have tested to exclude PDF;PDF/;/home/*/PDF... Nothing works. [homes] comment = Home Directories browseable = no ...
Miguel Ferreira's user avatar
1 vote
0 answers
2k views

Samba: authenticate against Active Directory using winbind but authorize against separate OpenLDAP server

Short Version How can I configure a CentOS 7 machine with Samba 4.8.0 serving users on Windows 7 clients to authenticate using their domain login credentials (winbindd and Active Directory) but be ...
rg6's user avatar
  • 195
1 vote
0 answers
110 views

Domain misconfiguration when loggging in to Samba 4.5 AD DC

I have set up a Samba 4.5 as a Domain Controller, I have added to AD a Windows 10 computer and a Windows 7 computer and a user and I can login from the windows computer. Relevant info: My domain is ...
Kentavros's user avatar
1 vote
0 answers
506 views

Samba server: file limit exceeded when creating folder

I have set up a Samba server to share a USB drive on my network. I can see the drive, I can edit/delete every file, but I cannot create any because I get a file size too large for the destination ...
László Stahorszki's user avatar
1 vote
0 answers
247 views

Centos7 Samba can't write subdirectories via GVFS

I have a really strange problem with Samba running on Centos 7. I have some anonymous shares that are writeable by everyone. Usually I access these shares from a) windows pc's that are being ...
Matthew's user avatar
  • 193
1 vote
0 answers
80 views

Sharing mounted CIFS filesystem with samba to macOS users

I have a CIFS filesystem which I am trying to share over samba with macOS users. I can't directly connect to the original samba share which I'm mounting as the CIFS fs on the server as I have to ...
Ybrin's user avatar
  • 111
1 vote
1 answer
3k views

Samba DC with additional DNS server (not same server)

I need to add a Samba DC to an existing network AND existing DNS Server. My environment: DNS Server with Bind9 (9.10) new Samba DC installed with samba-tool and internal DNS Server a bunch of servers ...
ssd_rider's user avatar