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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
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.