I'm a CentOS 6
User so I tried this method on CentOS 6
Install samba using
[root@server ~]# yum install samba
Query for confirm
[root@server ~]# rpm -qa samba
samba-3.5.10-125.el6.i686
Create a Samba User.
[root@server ~]# useradd sambashare
Now create samba password for username sambashare using smbpasswd command.
[root@server ~]# smbpasswd -a sambashare
New SMB password:
Retype new SMB password:
Added user sambashare.
Create a samba share directory
[root@server ~]# mkdir /share
change the ownership for the share folder
[root@server ~]# chown -R sambashare:sambashare /share/
Open the file /etc/samba/smb.conf
and add the below lines.
[share]
comment = Share
path = /share
writable = yes
valid users = sambashare
Start samba service
[root@server ~]# service smb restart
Shutting down SMB services: [ OK ]
Starting SMB services: [ OK ]
Check your configuration by using testparm
command
.
.
[share]
comment = share
path = /share
valid users = sambashare
read only = No
In windows system type this in run
Now enter samba username and password
You are done