Page 2 of 2

Re: how to create SMB folder requiring authentication

Posted: Mon Jan 21, 2013 8:41 pm
by stimpe
altair4 wrote:Dolphin? Oh dear lord, KDE?

I have Win7 in this zoo so I will try to reproduce this problem but what version do you have. I have Win7 Pro's so if yours in Win7 Home I don't know how valid this will be.

It won't be today though since I should have shut down about 3 hours ago.
haha yeah KDE...i'm scared to try anything else before I learn at least one thing consistently! thank you for all your help altair, if you cant reproduce this its no big deal, i think i might just have to give up on this and just allow all guest user access for my shares

win7 ultimate

Re: how to create SMB folder requiring authentication

Posted: Tue Jan 22, 2013 8:23 am
by altair4
I can't reproduce this issue on any any of the Win7's I have here. There is one technique that was designed for something different that you can try:

Note: You're going to have to translate some of these into KDE, sorry.

[1] Create a file as root:

Code: Select all

gksu gedit /etc/samba/smbusers
[2] Add this content and save it:

Code: Select all

landon = BEAST\landon
[3] Add a line to smb.conf - under the workgroup line would be good:

Code: Select all

username map = /etc/samba/smbusers
[4] Then restart samba:

Code: Select all

sudo service smbd restart
When you access the share as landon from the Win7 machine:

** landon on Win7 will be converted to the landon Linux user on Mint.
** Samba will then search the smbpasswd database for landon and his associated samba password.
** If the samba password matches what the Win7 machine is sending then you're in.

This is usually used to convert a client user like "mary" to a server user named "bob" or to convert a Windows user with spaces in his name to a Linux user that has no spaces. Why it would be necessary for you in this case I can't figure out but it's the best I have at the moment.