Tuesday, January 27, 2009

File Sharing With Samba on Fedora 8

This article will show you how to share folder from fedora 8 system to windows desktop.
Use all commands with root

1.First you must install nautilus-share
yum install nautilus-share

2.After installation is completed, type the following command
* mkdir /usr/local/samba/lib/usershares –p
* chgrp yourusername /usr/local/samba/lib/usershares
( change yourusername with your valid user name)
* chmod 1770 /usr/local/samba/lib/usershares

3.Backup your /etc/samba/smb.conf
cp /etc/samba/smb.conf /etc/samba/smb.conf.orig

4.Open /etc/samba/smb.conf with your text editor
gedit /etc/samba/smb.conf

5.Find the lines that says [global], and after this line add the following lines
usershare path = /usr/local/samba/lib/usershares
usershare max shares = 10 #

6.Restart samba
service smb restart

7.Log out your computer

8.Open nautilus, and right click the folder you wish to share and click Sharing Options. Give a share name and hit OK. You have now shared the folder.

9.In Windows, goto Start-->Run and type
\\fedora_system_name\share_name
(Replace fedora_system_name with your Samba server machine
name and share_name with the name of the share you mentioned
in the sharing options.)

10.In Linux. goto Nautilus and in the location bar type
smb://fedora_system_name/share_name

No comments:

Post a Comment