Samba 4 is in the official repositories. This package has been pulled from the aur because there's no more need in it. To switch to the official one:
Disable and stop old services:
$this->bbcode_second_pass_code('', 'systemctl disable smb nmb
systemctl stop smb nmb')
Backup your config:$this->bbcode_second_pass_code('', '
cp /etc/samba/smb.conf /tmp')
Remove samba4 from aur:
$this->bbcode_second_pass_code('', 'pacman -R samba4 libwbclient4 smbclient4 cifs-utils4')
Install the official samba (this will pull all the required dependencies as well)
$this->bbcode_second_pass_code('', 'pacman -Sy samba')
Copy your backedup config back:
$this->bbcode_second_pass_code('', 'cp /tmp/smb.conf /etc/samba/')
Reenable and start all the services (the official systemd services come with the d again):
$this->bbcode_second_pass_code('', 'systemctl enable smbd nmbd
systemctl start smbd nmbd')
I'm leaving the below here for reference (including the example config).
____________________________________________________________________________________________________________
We've brought samba version 4 into the repository, maybe it will solve some of the problems you guys are having with samba 3.
IT WILL remove all samba3 packages, so make sure to backup the config file before installation.
Install:
$this->bbcode_second_pass_code('', 'pacman -Sy samba4')
- "security = share" has been removed in samba 4. If you are looking to have unprotected shares, use this instead:
$this->bbcode_second_pass_code('', ' security = user
map to guest = Bad User
')
- service files are called smb.service and nmb.service instead of smbd.service and nmbd.service
Here's an example config:
$this->bbcode_second_pass_code('', '[global]
workgroup = WORKGROUP
server string = ALARM
netbios name = ALARM
security = user
map to guest = Bad User
guest account = root
load printers = yes
printing = bsd
printcap name = /dev/null
disable spoolss = yes
log file = /var/log/samba/%m.log
max log size = 50
use sendfile = true
[media]
path = /media
read only = no
public = yes
writable = yes
force user = root
')
It also seems samba 4 is a little quicker: 45 MByte/s from GoFlex Home to my PC.