LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-02-2008, 03:12 PM   #1
the_imax
Member
 
Registered: Apr 2004
Distribution: RHEL 4/ CentOS
Posts: 159

Rep: Reputation: 30
Samba and Windows passwords


I was reading a samba tutorial and it said

Quote:
we know that Linux users already have an encrypted password in /etc/shadow on the Linux server. So Samba should just be able to compare the proffered Windows encrypted password with the string in /etc/shadow and authenticate a Windows user, right? Unfortunately, that is not the case. Windows and Linux use different password encryption algorithms, so although the password might be the same for a Linux user and a Windows user, the encrypted string will not be. This means that if your Samba server is using user-level access to share resources with Windows systems running Windows 95OSR2 or later, you must maintain a list of Windows users and their encrypted Windows passwords on your Linux server, in addition to the list of users you already have in /etc/shadow. Because this has been a default of Microsoft Windows for so long, encrypt passwords = yes is the default in the smb.conf file. The smb passwd file variable defines where this list of Windows users and their passwords resides, and it defaults to /etc/samba/smbpasswd.
DO I really need a list of windows users on my samba server?

I can just connect to the samba sever from windows using any samba user created by smbpassd -a.

I can login to samba sever using samba user xyz even if I am logged in on Winodws as user abc ?

Can someone kinldy explain it a bit

Thanks
 
Old 03-02-2008, 03:28 PM   #2
ranger_nemo
Senior Member
 
Registered: Feb 2003
Location: N'rn WI -- USA
Distribution: Kubuntu 8.04, ClarkConnect 4
Posts: 1,142

Rep: Reputation: 47
> I can just connect to the samba sever from windows
> using any samba user created by smbpassd -a.
Yes. When a Windows user connects to the Samba server, it tries to match the Windows user name and password to one in the smbpasswd list. If it can't, it will request a name and password. Windows will pop-up a window asking for that info, and will send that the next time the user connects to the Samba server.

It all depends on how separate you want the users to be in the Samba server. You can create one account that all the users connect as; but then everybody has the same access to the same files. You can create a couple different accounts, maybe if you had different departments that needed different files. Or, you can create a full list of accounts.
 
Old 03-02-2008, 11:05 PM   #3
the_imax
Member
 
Registered: Apr 2004
Distribution: RHEL 4/ CentOS
Posts: 159

Original Poster
Rep: Reputation: 30
Thanks, so If a user John is logged in at windows and tries to connect to samba where the samba server also has a user john with password same as that defined for John in Windows
than the user will not be prompted for password while connecting from windows?
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
updating samba passwords with system passwords paranoid times Linux - Software 3 10-03-2006 09:04 PM
SAMBA, guest account, Windows xp home and passwords woppa30 Linux - Networking 6 01-19-2005 02:57 AM
Samba 3 - changing passwords from windows michzap Linux - Networking 2 09-03-2004 01:48 AM
Samba Passwords klatch Linux - Newbie 2 03-28-2004 05:18 AM
Is there a way to sync Samba passwords with linux user passwords MarleyGPN Linux - Networking 2 09-09-2003 10:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration