LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 02-21-2007, 04:58 AM   #1
siddhartha7m
LQ Newbie
 
Registered: May 2006
Location: India
Distribution: RHEL AS4
Posts: 13

Rep: Reputation: 0
Question SAMBA Help


i have i pc loaded with win xp pro sp2 and a broadband connection is directly connected with that pc.i have an another HP server loaded with RHEL AS 4.these two are connected directly through an another NIC in the pc.i can share the internet connection in that server.now i want to share filesystems using samba.let the name of the pc is PC and name of the server is SERVER.can anybody help with step by step procedure to make these things functioning?please send me the edited smb.conf file i have to use, using that pc and server name.after configuring how can i check?
 
Old 02-22-2007, 01:49 AM   #2
koriel
LQ Newbie
 
Registered: Jul 2005
Posts: 7

Rep: Reputation: 0
well

this smb conf would work and you can add as many share folders as you like...



Code:

[global]



workgroup = yourgroup

server string = %h server (Samba, Ubuntu)

dns proxy = no

log file = /var/log/samba/log.%m

max log size = 1000

syslog = 0


panic action = /usr/share/samba/panic-action %d


encrypt passwords = true

passdb backend = tdbsam

obey pam restrictions = yes

invalid users = root

passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n *password\supdated\ssuccessfully* .


socket options = TCP_NODELAY

[printers]
comment = All Printers
browseable = no
path = /tmp
printable = yes
create mask = 0700

# Windows clients look for this share name as a source of downloadable
# printer drivers
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers


#Add your share folders here
[somefolder]
    path = /somepath/folder
Then restart samba and from your win pc hit start->run and enter "\\sambaserver\somefolder" without the quotes and probably you will be prompt for a user and password...you can add users with the smbpasswd command runned by root or with sudo

for example
Code:
sudo smbpasswd -a someuser

By the way the default smb.conf is pretty much self explanatory so just read it
and adjust it to your convenience...
 
  


Reply

Tags
samba


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba/Cups print sharing problems (/var/spool/samba files) Gates1026 Linux - General 9 06-23-2013 01:33 AM
Samba domain member server (DMS) group permissions in network with a Samba PDC srosa Linux - Networking 0 05-01-2006 05:55 PM
I need the content from thegoldenear.org/toolbox/unices/samba/samba-setup.html rtg2001 Linux - Networking 1 08-05-2004 05:54 PM
Samba: Authenticate Linux-Clients in Samba Domain & Mount mule Linux - Software 0 12-10-2003 01:21 AM
when i restart SAMBA,it says:stop samba failed,start SAMBA OK! whepin Linux - Networking 3 12-26-2001 05:54 AM


All times are GMT -5. The time now is 01:27 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration