- Verify that the firewall service is configured correctly for SMB.
- Verify that samba and samba-client package are
installed:
$ rpm -q samba samba-client
samba-4.2.4-4.19.s390x
samba-client-4.2.4-4.19.s390x
- Update
/etc/samba/smb.conf:
$ cat /etc/samba/smb.conf
...
# For testing
guest ok = yes
read only = no
browseable = yes
load printers = no
printing = bsd
printcap name = /dev/null
disable spoolss = yes
...
include = /etc/samba/test_smb.conf
- Add
share:
$ cat /etc/samba_test_smb.conf
...
[test001]
path = /mnt/test001
...
- Add sambaTest
user:
$ useradd -M -s /sbin/nologin sambaTest
$ passwd <password> sambaTest
$ smbpasswd -a sambaTest
$ smbpasswd -e sambaTest
$ groupadd testGroup
$ usermod -a -G testGroup sambaTest
$ chown -R sambaTest:testGroup /mnt/test*
$ chmod 2775 /mnt/test001
- Start smb and nmb
services:
$ systemctl start smb.service
$ systemctl start nmb.service