LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-30-2008, 10:00 AM   #1
uhcafigdc
Member
 
Registered: Oct 2008
Distribution: Debian Lenny
Posts: 39

Rep: Reputation: 15
Question Samba - Passwd protected share with Windows XP Home


I have a file server running Debian Testing and Samba 3.2.3. Workstations that access the shares are running Windows XP Home, SP2/SP3. XP Home does not feature the same network authentication that XP Professional does.
Currently, I have security = share set in [global] so that users do not need to enter any login/password to access the shares. This accessibility is important.

Now I have the need to create a separate password protected share.


Here is my samba.conf
Code:
[global]

   workgroup = workgroup
   netbios name = Files
   
   level2 oplocks = no
   oplocks = no
   
   hosts allow = 192.168.1. 127.
   
   guest account = someuser
   
   log file = /var/log/samba/%m.log
   log level = 1
   max log size = 50
   
   security = share
   
   socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

   include = /etc/samba/dhcp.conf
   dns proxy = no
   
#  encrypt passwords = true
#  smb passwd file = /etc/samba/smbpasswd

#======================= Share Definitions =======================

[files]
	path = /home/files/files
	writable = yes
	public = yes
	read only = no

[private]
	path = /home/private/
	writable = yes
	public = no
	valid users = private SomeWindowsUser
When I set public = no, and valid users = SomeWindowsUser, and add SomeWindowsUser to the server with adduser, setting the same password as is on the Windows XP Home machine...
I get a prompt for a password when accessing the share from XP Home. The login field is greyed out and says 192.168.1.13\Guest and it will not accept any password that I know.

How can I have an openly accessible share as well as a share that is password protected when the clients are using Windows XP Home?

Do I need to set the value security = user in order to get a password prompt for the private share? If I do this, is the public share that does not require a username/password still possible?

Last edited by uhcafigdc; 10-31-2008 at 10:29 AM.
 
Old 10-30-2008, 02:59 PM   #2
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Arch/Manjaro, might try Slackware again
Posts: 1,851
Blog Entries: 14

Rep: Reputation: 284Reputation: 284Reputation: 284
Not that I'm an expert on Samba, by any means, but my understanding is that you have to add users with smbpasswd after using adduser.
 
Old 10-30-2008, 07:28 PM   #3
Savet
Member
 
Registered: Nov 2004
Distribution: Slackware
Posts: 73

Rep: Reputation: 15
mostlyharmless is correct.

Also make sure you restart smbd and nmbd after making any changes to your smb.config file (I think that's what it's called...I haven't used samba for a few years)

I believe, though, that the guest is coming from your windows box. You are logged in to the windows box as the user with the password you wish to connect to the samba share.....right? If your xp box boots up under the guest account, it will attempt to authenticate "guest".
 
Old 10-31-2008, 10:28 AM   #4
uhcafigdc
Member
 
Registered: Oct 2008
Distribution: Debian Lenny
Posts: 39

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Savet View Post
I believe, though, that the guest is coming from your windows box. You are logged in to the windows box as the user with the password you wish to connect to the samba share.....right? If your xp box boots up under the guest account, it will attempt to authenticate "guest".
No. I am logged in as SomeWindowsUser on the Windows XP machine.
When accessing the share [private] using that configuration that you see in the original post, I receive a login dialog box. The login field is greyed out (I can't change it) and says "192.168.1.13\Guest"
It does not accept any password that I know.

I tried adding Guest and SomeWindowsUser with smbpasswd -a

Last edited by uhcafigdc; 10-31-2008 at 10:30 AM.
 
Old 10-31-2008, 10:38 AM   #5
bobmac010
LQ Newbie
 
Registered: Jun 2003
Distribution: Slackware
Posts: 29

Rep: Reputation: 15
Security needs to be set to "user", and "encrypt passwords = yes" needs to be added.
This has been my experience. Without "encrypt passwords = yes", I have found that any auth to the Samba shares are denied.
The "valid users" section will work with "security = users"

I hope this helps.
(also, in Windows, you cannot access the same server, even though you are accessing a different share, with multiple users/passwords. Windows just does not allow this)
 
  


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
Trouble mounting Samba share from Windows Mobile 6.1 - samba weirdness cleidh_mor Linux - Server 0 09-21-2008 02:43 PM
mount windows share export to samba share -> improve network performance tuning newuser77 Linux - Server 1 07-23-2008 11:28 AM
Samba - Share definition on a folder under a home directory craig467 Linux - Software 9 06-07-2005 03:29 AM
Samba :share files from home directory to an other user flashdelux Linux - Software 0 11-29-2004 12:57 PM
Problem accessing home share with Samba bubber Linux - Software 5 03-09-2003 10:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:15 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