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.

smb.conf

workgroup = workgrp
netbios name = beorn
encrypt passwords = yes

[homes]
read only = no
browseable = no

[everyone]
path = /test
read only = no
browseable = yes

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

smbusers

# 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

inazirAsked:
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.

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

For example, instead of entering "inazir", you would enter "workgrp\inazir".
0
woolmilkporcCommented:
Hi,
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!
 
wmp
 
0
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
0
Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

woolmilkporcCommented:
Hi,

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.
0
woolmilkporcCommented:
... an easier way to find the right place is to run 'secpol.msc' from a commandline or by Start->Run->secpol.msc
0
inazirAuthor Commented:
Hey,

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???

Thanks
0
woolmilkporcCommented:
Hi,
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.
 
wmp
 
0

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
0
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.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.