Unix Administration
Wednesday, June 11, 2008
 
How to Configure Samba on Fedora Linux

Samba can be used to allow connectivity between Linux and Windows(95,98,NT,2000)
Samba deamon is smbd. All of samba is configured in one single file, the smb.conf file.
This file, located at /etc/samba/smb.conf, allows you to specify which resources on the linux machine you wish to share and who they can be accessed by.

Below steps are followed to configure samba in Fedora Linux.
Step 1:
First create a directories and users
Create directories for Samba to use with Windows

#mkdir ram
Now we need to create users to access this directiory

#useradd ram
Now create a password for this user using the following command

#smbpasswd -a ram

Step 2:

Samba configuration
By default samba configuration file located at /etc/samba/smb.conf
In this file main section is Global where you can define all parameters and the example as follows

[global]
workgroup = MYGROUP
server string = Samba Server
log file = /var/log/samba/%m.log
max log size = 50
dns proxy = No
cups options = raw

[homes]
comment = Home Directories
read only = No
browseable = No

[printers]
comment = All Printers
path = /usr/spool/samba
printable = Yes
browseable = No

[samba]
comment = ram
path = /freesapce/Ramkumar
valid users = ram
writable = yes

Add at in inside samba part.
* which path you need to share the folder in Linux.
* which user have a authorised to login.

Step 3:
Samba Service

Now that everything has been configured, the final step is to start the samba service. Samba runs in the background
as a linux daemon. Therefore, it can be controlled by typing:

service smb start
service smb stop
service smb restart
(or)
#/etc/init.d/samba restart

Note that once the computer is restarted or shutdown, the samba service won't start up again.

Step 4:
Connect to the samba server

Type the ip address in run prompt.
it will connect to linux box.
and try to access as your username and passwd.
then it connect and show the folder which you have created.
Now you can share the file with unix machine.
 
Comments: Post a Comment

Subscribe to Post Comments [Atom]





<< Home

Name:

5 Words to sum up - Internet, Photography,Reading,Friends, Technology

Archives
January 2008 / June 2008 / September 2008 / November 2008 / January 2009 /


Powered by Blogger

Subscribe to
Posts [Atom]