Linux: Samba Profile
By Abul Faeze Mohammad Bakabillah (Russell) post at Nov 28, 2019
By Abul Faeze Mohammad Bakabillah (Russell) post at Nov 28, 2019
Package name: |
Samba, samba-client samba-winbind |
Service name: |
smb |
Port: |
Samba Use TCP ports: 139 and 445, |
Configuration File: |
/etc/samba/smb.conf |
# mkdir /mnt/sambashare
# chcon -R -t samba_share_t /mnt/sambashare/
# chmod 2775 /sambadir/
# ls –ldZ /sambadir
# useradd -s /sbin/nologin susan
# smbpasswd -a susan
# vim /etc/samba/smb.conf
workgroup = TESTGROUP
hosts allow = 127. 172.25.6.
[data]
path = /mnt/sambashare
browseable = yes
writable = no
valid users = susan
#testparm -s
# systemctl enable smb nmb
# systemctl start smb nmb
# systemctl restart smb nmb
# firewall-cmd --permanent --add-service=samba
# firewall-cmd –reload