Linux: Samba Profile

Linux: Samba Profile


Package name:

Samba, samba-client samba-winbind

Service name:



Samba Use TCP ports: 139 and 445,
UDP Ports: 137 and 138

Configuration File:


Server Settings:

Create a directory under /mnt  and make it accessible through  SAMBA [ SMB] for specific user only.

# 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

 Configure Samba Configuration File to give access to the share to specific user [ Susan ].

# vim  /etc/samba/smb.conf

workgroup = TESTGROUP

hosts allow = 127. 172.25.6.


path = /mnt/sambashare

browseable = yes

writable = no

valid users = susan


Test the Configuration.

#testparm  -s

Start/Restart/Enable the Service:

# systemctl enable smb nmb

# systemctl start smb nmb

# systemctl restart smb nmb

# firewall-cmd  --permanent  --add-service=samba

# firewall-cmd  –reload


Abul Faeze Mohammad Bakabillah (Russell)

Abul Faeze Mohammad Bakabillah (Russell)

I am A. F. M Bakabillah . Working as an ICT Consultant since 2008 in a Project ( IsDB-BISEW IT Scholarship Programme ) . Along with MTCNA and MTCRE I am Also MCP, MCSA, MCSA: Messaging, RHCE, ITIL & CEH Certified . I am experienced in Routing (Static, OSPF & BGP), VPN and Tunneling (IPSec, PPtP, L2TP, EoIP), Firewall (Filter, NAT, Mangle) , Bandwidth Management, PPPoE, Policy Routing.

LINUX Runlevels

sumanbd77 | 03/25/2020 00:30


rbillah | 02/09/2020 22:52