1- Introduction
This document describes the detail steps to setup Samba.
2- Requirements before proceeding
Installation packages can be obtained from the Redhat installation CD under /Server directory.
perl-Convert-ASN1-0.20-1.1.noarch.rpm
samba-common-3.0.33-3.14.el5.x86_64.rpm
samba-3.0.33-3.14.el5.x86_64.rpm
3- Application Installation
1. Install the following rpm packages.
# rpm –ivh perl-Convert-ASN1-0.20-1.1.noarch.rpm
# rpm –ivh samba-common-3.0.33-3.14.el5.x86_64.rpm
# rpm –ivh samba-3.0.33-3.14.el5.x86_64.rpm
4- Application Configuration
1. Edit the file /etc/samba/smb.conf. Comment out the following lines. By default, user’s home folder is shared.
; load printers = yes
; cups options = raw
;[printers]
; comment = All Printers
; path = /var/spool/samba
; browseable = no
; guest ok = no
; writable = no
; printable = yes
2. Issue the following command to allow Samba to start automatically with the operating system. This would setup Samba to run automatically on run level 3 and run level 5.
# chkconfig --level 35 smb on
3. Samba maintains an independent account database which has no relation to the Unix account database by default. In order for user to log into the Samba share, the user must be added to the Samba account database.
4. To add a user, issue the following command. You will be prompted to enter a new password for the user.
# smbpasswd –a <username>
# smbpasswd –a bgates01
5. To remove a user account:
# smbpasswd –x <username>
6. To disable a user account:
# smbpasswd –d <username>
7. To enable a user account
# smbpasswd –e <username>
5- Roll Back Instructions
1. Samba can be removed by issuing following commands in order.
# rpm –e samba
# rpm –e samba-common
# rpm –e perl-Convert-ASN1