LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Getting through SAMBA security (https://www.linuxquestions.org/questions/linux-newbie-8/getting-through-samba-security-4175540942/)

JonathanWexler 04-27-2015 07:49 PM

Getting through SAMBA security
 
1 Attachment(s)
Ugh - been working on this for days

I have a SAMBA server running on a Raspberry Pi. Should be pretty much up to date - retrieved today.

Want to get Windows 7 and Android smartphones to be able to access, but neither can. Ideally, I would like to generate no password challenge, but that does not seem to be on the agenda. Windows 7 cannot seem to send the account name in a way SAMBA understands. The Android phones similarly have no luck getting credentials to SAMBA.

Tried many, many variations, read many, many pieces of advice. Most recent smb.conf attached.

FYI
1) I have tried with and without SECURITY=USER
2) did smbpasswd -an nobody
3) the share has CHMOD 775
4) testparm seems happy

Any help appreciated.

Jonathan

mattydee 04-28-2015 04:42 PM

Not sure how RPi works, but with Samba, you need to specify users and then Samba users.

For example, add a Unix user:
Code:

adduser jonathan
Then add a Samba user
Code:

smbpasswd -a jonathan
To make it simple, you might want to use the username/password that your windows machine will be connecting as.

mattydee 04-28-2015 04:47 PM

I also noticed that your smb.conf file is a mess. Your 21P share section is embedded within your [homes] section. Remove all of the [21P] and place it at the end of the smb.conf file.

JonathanWexler 04-29-2015 09:54 PM

Hooray
 
Thanks - I think the issue was the misplaced section (maybe the "adduser nobody" helped). So it's on to SSH and VPN:)

mattydee 04-30-2015 04:34 PM

Great! Please mark my comment as helpful (if it was) and the thread as solved.

Also: I assume this RPi is running in a home environment behind a router/firewall. That share is wide open and insecure. :)


All times are GMT -5. The time now is 04:41 PM.