Samba Guest acount setup to access from XP-Home-Edition

Posted on 2004-08-02
Last Modified: 2010-04-20
I'm trying to setup Samba so that I can access the Linx box from a windows XP home-edition computer.
My Linux box is Fedora 2 Redhat

I've tried adding a guest user, and I still can't seem to access the Linux box.
I can see it my network, and I have it set with the same workgroup.
But when I double click on it,  I get a popup window asking me for the password.
When I enter the password, and click OK, the popup window just comes back again.

What do I need to do to set this up right?
Question by:Axter
  • 5
  • 4
  • 2
  • +1
LVL 45

Expert Comment

ID: 11700616
Hi Axter,

add the user using smbpasswd command

smbpasswd -a guest guest

this will set up a samba account with username guest and password guest

LVL 30

Author Comment

ID: 11700622
>>smbpasswd -a guest guest

Thanks for the quick response.
I tried that, but it didn't work.

The Linux box took the command with no errors.
But when I try to access it from the XP box, it still fails to access the Linux box.
LVL 30

Author Comment

ID: 11700628
On thing I notice that is strange, is that the popup window asking me for the password states "connect to 192"

Also the username is grayed out, and it has "192\Guest" for the user name.

I'm not sure where the 192 is comming from, but I think it has something to do with the failure.

I'm also woundering if the upper case first character "Guest" is throwing it off.
LVL 45

Expert Comment

ID: 11700630
do you have a system account called guest ?

The account being created should be valid system account name too
LVL 30

Author Comment

ID: 11700637
>>do you have a system account called guest ?

I already had added an account called guest.
LVL 45

Expert Comment

ID: 11700641
ok, try this .. from xp box


\\xx.xx.xx.xx  <two backslash followed by ip adress of the linux box

enter username and password in the pop up ... what do you get ?
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

LVL 30

Author Comment

ID: 11700654
>>enter username and password in the pop up ... what do you get ?

I get the same results.
The pop-up window keeps coming back.
LVL 45

Expert Comment

ID: 11700663
can you post your smb.conf file ? ofcourse you should be editing out personal information such as an IP address

Accepted Solution

e-tsik earned 500 total points
ID: 11700721
Hi :-)

The changes you need to do to open a guest account (on /etc/samba/smb.conf):

on the [global] section:
map to guest = bad user
guest ok = yes
hosts allow =,
security = user
encrypty passwords = yes

Replace with your windows XP ip address - opening this guest account surely compromises your security...
You could also try 'map to guest = bad password' if you have the same users defined on the XP and the Linux machine.

On your share definition:
guest ok = yes
force user = root
force group = root

Afterwards, restart the samba service
service smb restart

LVL 30

Author Comment

ID: 11700746
That was it.

Thanks a lot.

And thank you sunnycoder for trying.

Expert Comment

ID: 11928682
force user = root???  A good way for suicide ;)

Expert Comment

ID: 11928833
Not exactly, init.

It only allows specific hosts to connect, plus, it has nothing to do with your authentication method. You can allow access to a share only to a specific user, and then 'force user = root' to it, to allow access, and automatically set the owner to root.

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Linux Mint 18 31 78
SSH connect to Amazon Centos Instance 7 43
AWS - HAProxy- KeepAlived 5 19
Centos 6 User Can't Assign Password 2 25
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now