I have configured samba server on OEL6.5 (192.9.220.241)
There are severel steps to be followed.
First you need to check weather you installed the rpm
rpm -q samba
If those not Installed it using
yum install samba(If its in the repository)
rpm -ivh samba-3.6.9-164.el6.x86_64.rpm

Check firewall are enabled
chckconfig --list iptables

If then Disable those.
chckconfig iptables off
service iptables stop
service ip6tables stop

Then you need to edit samba server configuration file.
vi /etc/samba/smb.conf
In the global part you need to enter
workgroup = workgroup
#Since most Windows networks are named WORKGROUP by default.
Then you can share the storage or resources.
enter following entry to the configuration file.As shared location will display as the NetApps
[NetApps]
path = /data/dir-1
service smb start

Please do remember to disable SELINUX
vi /etc/selinux/config
SELINUX=disabled

Now you can access to 192.9.220.241 from windows.
Share will be appeared as NetApps

There are severel steps to be followed.
First you need to check weather you installed the rpm
rpm -q samba
If those not Installed it using
yum install samba(If its in the repository)
rpm -ivh samba-3.6.9-164.el6.x86_64.rpm
Check firewall are enabled
chckconfig --list iptables
If then Disable those.
chckconfig iptables off
service iptables stop
service ip6tables stop
Then you need to edit samba server configuration file.
vi /etc/samba/smb.conf
In the global part you need to enter
workgroup = workgroup
#Since most Windows networks are named WORKGROUP by default.
create a user
useradd administrator # add a user
passwd administrator # set password for that userThen you can share the storage or resources.
enter following entry to the configuration file.As shared location will display as the NetApps
[NetApps]
path = /data/dir-1
writeable = yes
browseable = yes
valid users = administrator
Then set password for smb user
smbpasswd -a administrator
Now check no errors in smb configuration file by typing.
testparm
Start Samba Service
service smb start
Please do remember to disable SELINUX
vi /etc/selinux/config
SELINUX=disabled
Now you can access to 192.9.220.241 from windows.
Share will be appeared as NetApps
No comments:
Post a Comment