LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-27-2015, 08:49 PM   #1
JonathanWexler
Member
 
Registered: Dec 2006
Posts: 45

Rep: Reputation: 15
Getting through SAMBA security


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
Attached Files
File Type: txt smb.conf.txt (12.0 KB, 20 views)
 
Old 04-28-2015, 05:42 PM   #2
mattydee
Member
 
Registered: Dec 2006
Location: Vancouver, BC
Distribution: Debian,Ubuntu,Slackware
Posts: 479

Rep: Reputation: 48
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.
 
Old 04-28-2015, 05:47 PM   #3
mattydee
Member
 
Registered: Dec 2006
Location: Vancouver, BC
Distribution: Debian,Ubuntu,Slackware
Posts: 479

Rep: Reputation: 48
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.
 
Old 04-29-2015, 10:54 PM   #4
JonathanWexler
Member
 
Registered: Dec 2006
Posts: 45

Original Poster
Rep: Reputation: 15
Smile Hooray

Thanks - I think the issue was the misplaced section (maybe the "adduser nobody" helped). So it's on to SSH and VPN
 
Old 04-30-2015, 05:34 PM   #5
mattydee
Member
 
Registered: Dec 2006
Location: Vancouver, BC
Distribution: Debian,Ubuntu,Slackware
Posts: 479

Rep: Reputation: 48
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.
 
1 members found this post helpful.
  


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 security ridwan77 Linux - Security 1 01-02-2012 01:28 AM
SAMBA Security lj_180 Linux - Newbie 2 08-17-2006 08:23 PM
Samba security, How do I ... fclifton Linux - Networking 2 11-01-2003 03:34 PM
security on samba 2.2.5 ancutza67 Linux - General 1 02-11-2003 08:23 AM
Samba security. Passive Linux - Networking 1 03-11-2002 01:31 PM


All times are GMT -5. The time now is 07:08 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration