how to create SAMBA server in fedora 9 linux ?

Answer Posted / dipesh kumar

service profile:
rpm: samba
samba-common (client side)
samba-swat

Daemon: smb
port number: samba 445
netbios 137 (udp)
138,139(tvp)

configuration file: /etc/samba/smb.conf


installation:
# rpm -ivh samba-3.......
# mkdir /samba (example note:share folder)

create share files in this folder

configuration:

# vi /etc/samba/smb.conf

Global settings
workgroup = WORKGROUP (if its domain envrn. enter
domain name )
Server string = samba for sharing (you can give
anything)
netbios name = localhost (give your server netbios name)
hosts allow = 192.168.0. (enter network ID or required
IPs)



Share Defanitions:(end of the line)
[samba]
comment = samba server
path = /samba
public = no/yes (if yes no need to enter valid
users, write list)
writable = yes
printable = no/yes
valid users = user1, user2 .......
write list = +user1, +user2 ........
(if there is ; bigining of the line remove it)
:wq!

# shmod 777 /samba
# service smb restart
# chkconfig smb on
# testparm

create user:
# useradd user1 -s /sbin/nologin

# smbpasswd -a user1 (or)
# touch /etc/samba/smbpasswd
# smbpasswd -a -c /etc/samba/smbpasswd user1
# service smb restart
# smbclient -U user1 //192.168.0.1/samba (if client is
linux)
# get/put
(if client is windows go to run \\192.168.0.1 enter
username and password)

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I check my disk space?

475


What does df command do in linux?

548


What are the commands in linux?

533


What is cpu utilization linux?

541


Explain the ‘ls’ command in linux

560






Explain about the command elm?

578


What is the command to check cpu speed in linux?

530


Explain difference between swap partition and swap file?

497


What is kill command?

512


The head command writes the how many lines of a file to screen?

551


Is llvm a compiler?

547


What is a make target?

594


Which command is used to clear the screen?

546


Which of the Commands delete the files from the /tmp directory, issued by non-root user?

653


How do I test my cpu speed?

511