How to make SAMBA Server in Redhat



Samba- This server used for sharing file and folders with other then Linux OS like Windows.
Samba runs on TCP ports 139 and 445 and UDP ports 137 and 138.

Step1- Make a directory which we want to share.
# mkdir /sambashare
# chmod 777 /sambashare
# useradd samba
#smbpasswd -a samba

Step2- Now install samba package
# yum install samba
# vi /etc/samba/smb.conf (Edit this file)
/home (Search)
;[homes]
        comment = Home Directories
;       browseable = yes
;       writable = yes
        valid users = samba
;       valid users = MYDOMAIN\%S

[printers]
        comment = All Printers
        path = /var/spool/samba
        browseable = no
        guest ok = no
        writable = no
        printable = yes

# Un-comment the following and create the netlogon directory for Domain Logons
;       [netlogon]
;       comment = Network Logon Service
;       path = /var/lib/samba/netlogon
;       guest ok = yes
;       writable = no
;       share modes = no


# Un-comment the following to provide a specific roving profile share
# the default is to use the user's home directory
        [Sambashare]
        path = /sambashare
        browseable = yes
        writeable  = yes
;       guest ok = yes

(Save File)

You can access this server from windows machine as we access network share (\\IP address of server\)

Comments

Popular posts from this blog

Core 5 Security Epics in AWS Cloud

Why do you need to monitor your network?

How to change Domain account logging password