Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Samba Configuration Question

Posted on 2014-12-10
2
Medium Priority
?
292 Views
1 Endorsement
Last Modified: 2014-12-10
I cannot get "valid users = <username>" to work.

I have two Linux Ubuntu servers, one 12.04, and the other one 14.04, both running Samba.,

The 14.04 system lets me add the parameter "valid users" to the share configuration in the smb.conf file. Only the windows7 machine with the matching logon name as on the Ubuntu Samba server will allow access to the share. This works just as advertised and expected

However, on the other Samba server that is running under Ubuntu 12.04, if I add the "valid users" parameter to the share configuration, the windows7 system will deny access to the share.

I thought I understood this. It was working. But, I found after the windows7 system rebooted, all the shares from this windows system work as expected except this 12.04 Samba server. If I remove the "valid users" statement, access is granted.

This is what I understand:

I MUST have a windows 7 logon name, let's say "ray". "ray" must have a passwrod.
I MUST have a Linux user named "ray" with the same password as the Windows7 user.
I MUST have a samba user name "ray" with the same Samba password as Windows and Linux.

This is what I have on both Samba servers. The file permissions on both Samba servers are identical.

Please tell me what I am missing?
1
Comment
Question by:RayRider
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 21

Accepted Solution

by:
Mazdajai earned 2000 total points
ID: 40492765
Are they running the same version of smb on 12.04 vs 14.04? Can you post smb.conf and I assume they are the same?
0
 

Author Comment

by:RayRider
ID: 40492934
Mazadajai;

Thanks for you response. After much searching, just a few minutes ago  i found the problem. Somehow I had overlooked file permissions and ownership on the share directories/files. Once I made the share's ownership = the user's ID/GID, it started allowing me access.

Samba is very "picky" about configuration. And, if you don't understand the relationship between Windows credentials and Samba on Linux, you WILL have trouble.

I'll will close and give you the points. Thanks for looking.
0

Featured Post

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

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

Online collaboration is quickly becoming embedded in the workplace, and its benefits are tangible. See what the current landscape looks like and what the future holds for collaboration tools and the future of work.
Fine Tune your automatic Updates for Ubuntu / Debian
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Suggested Courses

610 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