Samba File-Server

Siehe auch

  • doc: Samba-Client

  • Mount

Installation

yum -y install samba samba-client
systemctl enable smb.service nmb.service
systemctl start smb.service nmb.service

Einfachster Samba-Share

Ohne Authentifizierung, beispielsweise für ISO-Files.

mkdir /isos
/etc/samba/smb.conf
[global]
workgroup = WORKGROUP
server string = Samba Server Version %v
interfaces = lo eth0 10.80.32.58/32
hosts allow = 127. 10.80.32.
log level = 0
max log size = 10000
security = user
passdb backend = tdbsam
load printers = no
map to guest = Bad User

[isos]
browseable = yes
path = /isos
guest ok = yes
read only = yes
create mask = 755
valid users =
semanage fcontext -a -t samba_share_t '/isos(/.*)?'
restorecon -Fvr /isos/*
chown nobody:nobody /isos/*

Built on 2022-06-03