Thursday, June 5, 2014

How To Configure Samba Server In Linux

9:31 PM

Red Hat® Certified Engineer (RHCE®) is a Red Hat Certified System Administrator (RHCSA) who possesses additional skills, knowledge, and abilities required of a senior system administrator responsible for Red Hat Enterprise Linux® systems.

An RHCE is capable of:

    Configuring static routes, packet filtering, and network address translation.
    Setting kernel runtime parameters.
    Configuring an Internet Small Computer System Interface (iSCSI) initiator.
    Producing and delivering reports on system utilization.
    Using shell scripting to automate system maintenance tasks.
    Configuring system logging, including remote logging.
    Configuring a system to provide networking services, including HTTP/HTTPS, File Transfer        Protocol(FTP), network file system (NFS), server message block (SMB), Simple Mail Transfer Protocol (SMTP), secure shell (SSH) and Network Time Protocol (NTP).








 Share the /central directory via SMB:


CMD:

Install smaba packages using yum 


 root@linuxstorages:~#yum install samba* -y

Configure samba configuration file 


    root@linuxstorages:~#vim /etc/samba/smb.conf
    change workgroup as STAFF in line no 74

                   Add

    
                   [common]

                    Path = /central


                    Browseable = yes


                    Writeable = yes


                    Host allow = 192.168.0.


                    Valid user = sowmya


    :wq



Create shared directory



root@linuxstorages:~#mkdir /central

Create samba user and password 


root@linuxstorages:~#smbpasswd -a sowmya

Use this command if selinux is enabled for selinux permission


root@linuxstorages:~#chcon -Rt samba_share_t   /central   

Restart samba service and enable in chkconfig


root@linuxstorages:~#service smb restart

root@linuxstorages:~#chkconfig smb on

check the share directory with the ipaddress  


root@linuxstorages:~#smbclient //ipaddress/common -U sowmya  
 

Written by

0 comments :

Post a Comment

 

© 2014 Linux Storages | Updated . All rights resevered. Designed by Templateism