- Command to run in the terminal window (using yum on CentOS and Fedora) "yum install samba"
- Installing Samba (using rpm)
- Obtain Samba rpm from rhn.redhat.com
- rpm -ivh samba*.rpm
cd /etc/samba
mv smb.conf smb.conf.backup
vi smb.conf
Paste content below into your vi file:
[global]
workgroup = wrkgrp
netbios name = smbserver
security = SHARE
load printers = No
default service = global
path = /home
available = No
encrypt passwords = yes
[share]
writeable = yes
admin users = smbuser
path = /home/share
force user = root
valid users = smbuser
public = yes
available = yes
Add unix account
by typing in terminal window "adduser smbuser
"Set the password for the same
"passwd smbuser
"Now
create same user account on samba by typing
"
smbpasswd -a smbuse
"
Restart the samba service by typing
"
/etc/init.d/smb restart
"
Now let us setup drive letter on our Windows so we can easily access these files.
Start -> run -> cmd
At the prompt type:
net use z: \\ip_of_your_samba_server\share /user: smbuser password_you_assigned
At this point you have successfully set up Samba under Linux and are now successfully connected to your share from your Windows machine.
Thanx it worked for me
ReplyDelete