Linux - Unix Learning

LINUX - UNIX Administration Learning

Friday, September 3, 2010

How to setup linux samba

Objective:

To setup a Linux file server using Samba on Centos 5.4

Actions Taken:

I. Installed the following:
    - samba-common-3.0.33-3.14.el5
    - samba-3.0.33-3.14.el5
    - system-config-samba-1.2.41-5.el5
    - samba-client-3.0.33-3.14.el5

II. Add current linux users to samba users (example: user fpg must exist in /etc/passwd):

# smbpasswd -a fpg  yourpassword

III. Here's a sample /etc/samba/smb.conf:

[global]
        workgroup = MYGROUP
        netbios name = MEDIAS
        server string = Samba Server Version %v
        security = SHARE
        passdb backend = tdbsam
        log file = /var/log/samba/log.%m
        max log size = 50
        hosts allow = 127., 192.168.8., 192.168.10.

[Media]
        comment = Music and Video Collections
        path = /mnt/MEDIA
        read only = No
        guest ok = Yes


Notes:

In the [global] section, the interfaces option will serve workstations that belongs 192.168.8 and 192.168.10 block. 

Windows 95/98/ME/NT4/2000 clients must logon to the samba server using their samba username when Windows starts up.

IV. Restart Samba:

# /etc/rc.d/init.d/smb restart

No comments:

Post a Comment