Centos 5.3 + Webmin + Samba Server

I. Begin with a base install of Centos 5.3 with GUI. Remove unnecessary
services.


II. Network Configuration
1.setup
2.Add Static IPAddress for all network interfaces
3.Add Host Name.
4.Add DNS.
5.Open Firewall.

  • a. SSH; Port 22
  • b. Samba; 139
  • c. Webmin; Port 10000
    6.Turn off SELinux.
    7.service network restart

    III. Updates
    1. yum update
    2. Reboot after update finishes.

    IV. Users and Passwords
    1. Set Root Password.

  • a. passwd root
  • 2. Create Self Users for SSH.

  • a. adduser <username>
  • b. passwd <username>
  • V. Check Time and Date
    1. date

  • a. If wrong set change.
  • b. date [MMDDhhmm[[CC]YY].[ss]]
  • VI. Webmin
    1. yum -y install perl-Net-SSLeay
    2. cd /usr/src
    3. wget http://superbeast.
    dl.sourceforge.net/sourceforge/webadmin/webmin-1.380-
    1.noarch.rpm
    4. rpm -i webmin-1.380-1.noarch.rpm

    VII. Install Samba
    1. yum install samba
    2. service smb start
    3. Add users for samba in centos.

  • a. adduser user
  • 4. Add samba users

  • a. smbpasswd –a user
  • VIII. Turn on Services
    1. setup
    2. System Services

  • a. Samba(smb)
  • b. Webmin
  • IX. Webmin Configure
    1. Log into the webmin.
    a. https://xxx.xxx.xxx.xxx:1000 0 (ip address)
    2. Change the webadmin password. Webmin>Webmin Users
    3. Add personal users to the wheel group. System>Users and Groups
    4. Change samba logins to nologin shell.

    X. Copy Files
    1. Copy smb.conf from backup server or hermes. Place under
    /etc/samba/smb.conf
    2. nano smb.conf
    3. Change the interface to correspond to the right IP address. Change
    users as necessary
    4. Chmod, chgrp, and chown appropriate folders to be the necessary
    permissions. (chmod –R 770)

    XI. Restart Samba
    1. /sbin/service smb restart

    Robert Drake
    3/25/2010