LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 02-08-2009, 11:33 AM   #1
geek.ksa
Member
 
Registered: Jan 2009
Location: Dhahran, Saudi Arabia
Distribution: RHEL 5
Posts: 42

Rep: Reputation: 17
Samba Authentication Mechanism


Hi Linux Security Gurus,

could someone please elaborate on how Samba authenticates windows clients?
simply put, there are a bunch of windows clients wishing to access some Samba shares on a UNIX system, shares were set up and Samba user authentication mode was selected. i am intersted in knowing how Samba will authenticate windows users?
i am newbie to Samaba and I haven't gotten it to work OK yet.

Thanks all.
 
Old 02-08-2009, 11:57 AM   #2
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
How do the windows users normally authenticate when they log in? Which kind of clients are they?

The default if you haven't changed it is that the smbpasswd file is used. In this case, you need to use the `smbpasswd' command to add users and their passwords to this file. The users also need to have entries in /etc/passwd so that permissions in Linux can be mapped to samba permissions.

If the server is a domain controller, then a user on a client machine is querying the samba server when they log in. When a user changes their password, a script is run on the server to change the password. This can still use the smbpasswd file or a samba database.

Both of these methods might be used and more details are needed on where credentials are saved.

Another method is using LDAP or Active Directory. In this case kerberos is used for authentication instead of the samba server. You aren't using this with "Security = User".

You might want to install the "samba-doc" package. It contains three books. The "Samba 3 by Example" and "Samba 3 HOWTO & Reference Guide" may be very useful. The "Samba 3 by Example" book contains a number of sample network configurations and goes step by step in great detail, including some items on the Windows client side.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba and authentication h725 Linux - Server 2 01-25-2009 04:53 AM
SAMBA authentication ? czezz Linux - Software 2 02-03-2008 04:39 PM
Using PAM Authentication mechanism for execution of script Narayandutt Linux - Software 1 11-21-2007 07:24 PM
Samba authentication cmoloney Linux - Networking 32 12-01-2003 09:36 PM
Samba authentication ltrain Linux - Networking 1 06-13-2001 03:44 PM


All times are GMT -5. The time now is 06:34 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration