Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
SDN 101: An Introduction to Software Defined Networking
Discover the advantages of SDN.
SDN has quickly become one of the hottest trends in IT. But not all SDN solutions offer real software-defined functionality. As more enterprises consider SDN, they want to know, “What is SDN? And what are the real benefits?” If you're ready to explore the advantages of SDN, and want to know how it should be implemented within your enterprise, start by reading our introductory white paper.
Click Here to receive this Complete Guide absolutely free.
Distribution: Debian, Ubuntu, Redhat, Fedora, SLES, OpenSUSE, FreeBSD, Mac OS X
Using /etc/passwd in Samba
Is there a way or parameter that can be set in /etc/samba/smb.conf that will make SAMBA use /etc/passwd file instead of /etc/samba/smbpasswd file. Thus I want authentication to take place through /etc/passwd and not /etc/samba/smbpasswd
I don't think that is possible because a password hash can't be "decrypted". They way unix password work is that you generate a password hash, and add a salt. When a user later is logging in, the authentication algorithm takes the password and, generates the same hash with salt and compares it with the shadow-password.
When it comes to samba, the password is already encrypted from the client, and all samba does is compare the two hashes. So in order to make that work, samba would have to crack the password from the client and generate a unixpassword and compare it. I'm not 100% sure about this, but I'm pretty sure it doesn't work.
I have been doing a lot of reading the past few weeks about Samba and setting up a network share using Samba so I am not sure where I found the information at, but you have the ability to get Samba to update the users password if they update their smbpassword. That way everything stays the same.
You can use the unix passwd sync feature of samba to have samba update user passwords when the samba password is changed. That being said, there is no way to have samba directly authenticate against /etc/passwd due to the differing password hash formats.
That thread specifically says (as I did) that you cannot authenticate against /etc/passwd and /etc/shadow. You will need to add the users to samba, but you can have samba keep the unix passwords in sync.