Sunday, February 7, 2010

configure samba:Interoperability between windows and linux

STEP 1:
Before making changes to samba configuration file,back up the original samba config. file
Eg:cp /etc/samba/smb.conf /etc/samba/smb.conf.original
STEP 2:
Edit smb.conf
Eg:vim /etc/samba/smb.conf
Scrol down to the section SHARE DEFINITIONS
For example if you want to share your home folder,Add the following lines
Eg:[home]
path = /home
writable = yes
browseable = yes
valid users = root
guest ok = no

Then save the file by pressing "Esc" ":""wq"
STEP 3:
Now add samba users by using the command
Eg:smbpasswd -a root
enter password

STEP 4:
In Fedora,Restart the samba services
Eg:service smb restart
In Ubuntu:
Eg: /etc/init.d/samba restart

STEP 5:
Now go to your windows machine
Goto Start->Run->\\ipaddress of the linuxmachine
STEP 6:
Incase any issues like access denied try disabling the firewall and SE linux management

No comments: