Issue #
- Installation of SAMBA in CentOS 6
Environment #
- CentOS 6.5
- Windows 7 64b
Resolution #
- In the Linux machine
- Open a terminal with root access
- Run the following commands
- yum -y install samba samba-client samba-common
- chkconfig smb on
- chkconfig nmb on
- /etc/samba/smb.conf vi /etc/selinux/config
- find the following line
- SELINUX=enforcing
- change to
- SELINUX=disabled
- find the following line
- vi /etc/sysconfig/iptables
- add the following lines before the first REJECT keyword
- -A INPUT -p udp -m udp –dport 137 -j ACCEPT
- -A INPUT -p udp -m udp –dport 138 -j ACCEPT
- -A INPUT -m state –state NEW -m tcp -p tcp –dport 139 -j ACCEPT
- add the following lines before the first REJECT keyword
- In the Windows machine that will connect to the share
- Determine the Workstation domain
- open a cmd terminal and run the command
- net config workstation
- find the “Workstation domain” name. example:
- open a cmd terminal and run the command
- Determine the Workstation domain
- Back to the Linux machine
- If you want to have the bare configuration, copy a backup of
/etc/samba/smb.conf
mv /etc/samba/smb.conf /etc/samba/smb.conf.bak
- copy the following text in the a new smb.conf
- vi /etc/samba/smb.conf
#======================= Global Settings =====================================
[global]
workgroup = SVG
security = share
map to guest = bad user
#============================ Share Definitions ==============================
[database]
path = /local/odata/database
browsable =yes
writable = yes
guest ok = yes
read only = no
- vi /etc/samba/smb.conf
- restart the services
- service smb restart
- service nmb restart
- If you want to have the bare configuration, copy a backup of