Samba on Linux

Hi all,

I am running Samba on Linux. All the configuration seems to be ok. here is my smb.conf file and smbusers file. I have added a user by smbpasswd -a <username>. The problem is when i go to windows machine and try to mount the drive it prompts me for username and password so i enter the username and password which lives on Linux local system and also in smbusers but i am unable to map the drive to windows xp machine by providing those credentials.


workgroup = workgrp
netbios name = beorn
encrypt passwords = yes

read only = no
browseable = no

path = /test
read only = no
browseable = yes

path = /test
browseable = yes
valid users = smbusers, root
write list = smbusers, root


# Unix_name = SMB_name1 SMB_name2 ...
root = administrator admin
nobody = guest pcguest smbguest
smbusers = inazir

Can anyone tell me what am i doing wrong?

Thank you very much in advance

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

When you enter the username, are you preceding it with the workgroup name?

For example, instead of entering "inazir", you would enter "workgrp\inazir".
additionally, you could try the following -
- In your local security policy, in the Microsoft network (client) area, enable this -
"Send unecrypted password to third-party SMB servers"
and try again!
inazirAuthor Commented:
I am typing wrkgp/inazir and the password but it comes back with same screen again.

About the local security policy on Microsoft client where exactly do i enable:

"Send unecrypted password to third-party SMB servers"

Thanks for quick reply
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.


Go to: Start - Settings - Control Panel - Administrative Tools - Local Security Policy
 Expand the Local Policies tree.
 Click Security Options.
 Find "Send unencrypted password to connect to third-party SMB servers" in the list in the right pane.
 Double-click on it.
 Click Enable.
 Click OK.
 Close everything and reboot.
 If you return to the Security Options folder after rebooting, the Local Setting and Effective Setting columns should say Enabled.
... an easier way to find the right place is to run 'secpol.msc' from a commandline or by Start->Run->secpol.msc
inazirAuthor Commented:

I did change that option but still i am unable to do log in from windows machine to the linux share.

Is my config file and smbusers file looks okay???

your smb.conf looks OK. The only things are the entry I mention below, and - I once had problems with the 'netbios name'. Try to leave it out.
Now to smbusers -
To use it, you must set an entry for it  in smb.conf, in the [global] section -
username map = /[path/to/smbusers_file]
There must be an UNIX user with name 'smbusers' and a windows/samba user with name 'inazir', which has to be the one defined by 'smbpasswd -a ...'
Now a mount with \\servername\inazir should work.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
inazirAuthor Commented:
that worked for me leaving the netbios name out.

Thanks alot
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Server Software

From novice to tech pro — start learning today.