Hot answers tagged

27 votes

Reloading Samba4's smb.conf without restarting the service

Use this: smbcontrol all reload-config Force daemon to reload smb.conf configuration file. Can be sent to smbd, nmbd, or winbindd. The all destination causes the message to "broadcast" to ...
Gerson Ramirez's user avatar
24 votes
Accepted

Getting Samba working in manjoro linux, daemon failed to start: Samba detected misconfigured 'server role' and exited.

It was a misunderstanding on my part. I don't need to start the samba.service. https://www.samba.org/samba/docs/man/manpages-3/ "samba(8) Server to provide AD and SMB/CIFS services to clients" ...
nelaaro's user avatar
  • 1,333
8 votes

possible to make samba use /etc/shadow

The problem: incompatible password hashing methods Back in Windows NT4 / Windows 2000 era, it was possible - and in fact fairly common - to set up Samba authentication in the way that would satisfy ...
telcoM's user avatar
  • 94.7k
4 votes
Accepted

FreeBSD: Samba eating memory

The problem is not with samba at all, but with the ZFS arc cache. The ZFS arc cache uses physical memory, and since there was no limit set, ZFS would use ALL of the system memory as a cache when ...
nullmeta's user avatar
  • 369
3 votes
Accepted

How to connect to old Samba-server with new smbclient?

After adding the following line to the [global] section of the smb.conf, I was able to get Samba-4.13 to connect to this device: smb.conf [global] client min protocol = NT1
Mikhail T.'s user avatar
3 votes

selinux samba samba_share_t and chcon vs semanage fcontext

semanage fcontext modifies file context database. The database is queried when file system is relabeled and when restoring file context with restorecon. Adding an entry, does not apply the new ...
sebasth's user avatar
  • 14.8k
3 votes
Accepted

SAMBA: Disable anonymous browsing of shares?

In your global section add: restrict anonymous = 2 and change allow guests as it cancels out the anonymous restriction: usershare allow guests = no
Yodanator's user avatar
  • 111
3 votes
Accepted

default passdb backends in Samba

default file to store pass is trival database file /var/lib/samba/passdb.tdb you can change in by passdb backend option in smb.conf. There is more info about password backends: https://www.samba.org/...
Krzysztof Stasiak's user avatar
2 votes
Accepted

How to add Samba user "nobody" with pdbedit?

sudo pdbedit –a –u nobody -a|--create This option is used to add a user into the database. This command needs a user name specified with the -u switch. When adding a new user, pdbedit will ...
Starblight's user avatar
2 votes

How can I run a Systemd service under an Active Directory account?

I have tried it and it works. My problem was that the old local account named "syncthing" was still there and caused a naming conflict. After removing the local account Systemd uses the domain account ...
Martin Tibke's user avatar
2 votes

Samba only works when firewall is disabled

The default zone would actually by FedoraWorkstation (or server). Check like firewall-cmd --get-default-zone When you specify the commands above, they would apply to that zone. But the active zone ...
Stanislav Hristov's user avatar
2 votes
Accepted

Accessing a samba share, a symlink, on host, to a folder, appears as an empty folder

Solved using the following settings as mentioned here already. In the "global" section: allow insecure wide links = yes In the Share section in question: follow symlinks = yes wide links = yes
Anselmo Blanco Dominguez's user avatar
1 vote

configure samba homes to different location

If you want this only for user ron, just write a share section titled [ron]. [ron] comment = Home Directory of Ron path = /data/users/ron valid users = %S, %D%w%S browseable = No ...
telcoM's user avatar
  • 94.7k
1 vote

Special char in password for smb mount

password= %t\!f\?ea-TGH The escape character is \, this should work.
James Risner's user avatar
  • 1,261
1 vote
Accepted

samba sharing nfs mounted folder and SELINUX

regarding samba not working with an NFS mounted folder... getsebool -a | grep samba by default samba_share_nfs is off. doing an setsebool -P samba_share_nfs on fixes that. The -P is for persistence, ...
ron's user avatar
  • 6,515
1 vote

Samba 4.15 DES-DBC-MD5

Yes, it is possible. Open "gpedit.msc". Go in: Local Computer Policy > Computer Configuration > Windows Settings > Security Settings > Local Policies > Security Options. In ...
Felipe Omega's user avatar
1 vote
Accepted

Opportunistic CIFS protocol version (minimal version) selection based on connecting client or share?

I found the answer over on AskUbuntu. The gist is to add the following line on the server-side into /etc/samba/smb.conf: server min protocol = NT1 ... followed by restarting smbd with either of the ...
0xC0000022L's user avatar
  • 16.5k
1 vote
Accepted

SAMBA AD new files group is "domain users" not the Primary Group

Yes, but not with Samba 4.3.x, you will need to upgrade to 18.04, which will get you to at least 4.7.6 and you can then use (along with the winbindd 'ad' backend) this line in smb.conf: idmap config ...
Rowland Penny's user avatar
1 vote

Samba only works when firewall is disabled

In my Fedora 36 system, when I connect from "Gnome Boxes", it only works with --zone=nm-shared.
Kaxa's user avatar
  • 111
1 vote

possible to make samba use /etc/shadow

Unless you're planning on a large-scale user roll-out with Samba, I would strongly suggest doing it the way you are. Samba basically has (2) choices for usernames/passwords database backends: tdbsam (...
ajgringo619's user avatar
  • 3,226
1 vote

Correct syntax for mounting smbfs in FreeBSD?

mount_smbfs doesn't work properly with smbv2 and beyond. The only solution I found is to change some settings on the samba server in global section of smb.conf client ntlmv2 auth = no ntlm ...
norbi771's user avatar
  • 111
1 vote

mount.cifs (cifs-utils): Where do the default options come from?

In kernel upgrade it was changed default verion of SMB protocol to 3.0 which doesn't understand to Unix extensions. If You want to use Unix extensions append to Your options "vers=1.0".
Paul's user avatar
  • 21
1 vote
Accepted

get access denied on samba AD share

After updating sssd* packages to 1.15.2-50.el7_4.6,restart smb service,i could access samba AD shares,it caused by sssd authentication broken with AD
xq10907's user avatar
  • 95
1 vote

Getting Active Directory parameters for both: Windows Server 2008 and Linux Server

I'm assuming that your Linux System is still an Univention Corporate Server. Most of your questions can be answered by reading our Documentation. You can easily find these things in the UMC UI. ...
hpeter's user avatar
  • 56
1 vote
Accepted

CIFS Stuck at Directory Listening

Your problem is caused by the incorrect CIFS header size for SMBv2/3 (for some reason, SMBv2 works anyway) in the Linux Kernel. This problem was fixed in kernel v4.12.11, but since this is not a ...
Marin N.'s user avatar
  • 182
1 vote

How do setup a Samba4 share that does not require any user authentication on FreeBSD 10.x?

I think you need to add "guest ok = yes" (see https://www.samba.org/samba/docs/man/manpages-3/smb.conf.5.html#GUESTOK)
user189695's user avatar
1 vote
Accepted

Install samba4.4.4 from source on centos7

When compiling/installing from source, as with most software distributions like this, the service will not be installed. You need to do those steps manually (or with configuration management of some ...
Tony Cesaro's user avatar
1 vote
Accepted

samba4's ldbsearch complains about authentication for basic searches

Try to add the -U option with the right username, and optionally the password: ldbsearch -H ldap://127.0.0.1 -s sub -b 'DC=example,DC=com' -U Administrator%YourPassword or, to not leave the password ...
mivk's user avatar
  • 3,566
1 vote
Accepted

inotifywait doesn't monitor Windows users saving to Samba share on Linux

Ok, its an ugly workaround but for my case it should work in ~90% of cases. temPrint=/dev/shm/print fcheck_1=$temPrint/fcheck_1 fcheck_new=$temPrint/fcheck_new fcheck_old=$temPrint/fcheck_old ...
bstand's user avatar
  • 51
1 vote

Store Windows print driver on Samba for a CUPS print server

1. So your first problem seems to be this: Currently not working: Cannot add the Windows printer driver to CUPS using the "printmanagement.msc" MMC (I get a "access denied" error). So ...
Kurt Pfeifle's user avatar
  • 1,451

Only top scored, non community-wiki answers of a minimum length are eligible