Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 07-03-2004, 08:45 AM   #1
LQ Newbie
Registered: Jun 2004
Location: Israel
Posts: 11

Rep: Reputation: 0
Samba on a windows xp home workgroup

What is the best way to configure samba so it works well as a file server on a win xp home workgroup?
What are the steps I need to take?
Do I need to create a linux account, then a samba account with the same username and password and then a win xp username with the same password?
Can I set up a share that everyone can access without a password?
Or do I need to create a share and add all users to a group and give that group access to the share?

Sorry.....but I`m such a
Please help!
Old 07-03-2004, 03:09 PM   #2
LQ Newbie
Registered: Sep 2003
Location: Marshall, MN
Distribution: Mepis
Posts: 9

Rep: Reputation: 0
home network win/linux

HOWto - set up home network with winXPpro and Debian Linux (Mepis flavor)
here is my (/etc/samba/samba.conf) file
;*******************section global*****************

# Do something sensible when Samba crashes: mail the admin a backtrace
panic action = /usr/share/samba/panic-action %d
printing = cups
printcap name = /etc/printcap
load printers = yes
security = user
workgroup = MSHOME
netbios name = mepis1
server string = %h server (Samba %v)
hosts allow = 192.168.0. 192.168.1. 192.168.2. 127.
smb passwd file = /etc/samba/smbpasswd
encrypt passwords = true
passdb backend = smbpasswd guest
dns proxy = no
max log size = 1000
;*******************section vince*****************
comment = /home/vince
path = /home/vince
public = yes
guest ok = yes
writeable = yes
;*******************section homes*****************
comment = Home Directories
browseable = yes
writable = yes
;*******************section printers*****************
comment = All Printers
path = /tmp
browseable = yes
printable = yes
writable = yes
guest ok = yes
create mode = 0700
print command = lpr -P %p -o raw %s -r

First connect the two computers with a cat5 ethernet "crossover cable" or as in my case connect each computer via cat5 ethernet "straight" cables to a d-link home cable router.

Go to linux box (/etc/samba) and edit the samba.conf file to reflect your workgroup name (MSHOME),
insert your computer NETBIOS name (mepis1) etc., and
edit the line "passdb backend=" to "passdb backend=smbpasswd guest".

Then, set up a user account named "guest".
Use the smbpasswd command in a root console to add the guest user name to the samba password file using the option for no password. (# smbpasswd -a guest)

I think that covers everything I did to get it working, but one still has to enter the "guest" user name in that popup dialog box.

To set up home network (two computers networked - Mepis 11-25-2003 and XPpro). I edited the samba.conf file and set the smbpasswd command (# smbpasswd -a guest) . Now I can ping my XP box with ( # ping but cannot ping with (# ping ATHLON700) the name of the XP box. I have checked the computer name in (control panel- system) and it is ATHLON700 (capitals).
I can ping from the XP box (c:\> ping or ping mepis1) and it works fine. I can even view and copy files on my Mepis box from the XP box and I can use the Mepis printer from the XP box. I had to turn the Guardwall Mepis firewall off to do any of the above. What am I missing? I have tried to set the smbmount but cannot as Mepis box does not recognize ATHLON700 box.

I hope this gets a beginner started, but I stil have lots to learn.
Vince LaPorte


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
LAN -- Linux, Windows XP Home and Samba Dolphin2005 Linux - Networking 1 10-12-2005 07:54 PM
Samba: Home directory files do not appear in windows ryan12345 Linux - Networking 1 05-14-2005 02:57 AM
SAMBA, guest account, Windows xp home and passwords woppa30 Linux - Networking 6 01-19-2005 02:57 AM
Can't browse Windows Workgroup due to Samba? CanadianSlacker Linux - General 4 05-07-2004 06:49 PM
connecting to windows workgroup using samba? linoob Linux - Newbie 7 10-23-2002 08:17 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:34 AM.

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