LinuxQuestions.org
Review your favorite Linux distribution.
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-20-2014, 09:55 AM   #1
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 536

Rep: Reputation: Disabled
Access Samba shared directory without a password


I am trying to setup Samba to allow access from a Windows PC which is on the LAN without requiring a username and password. Is this possible? Below is my unsuccessful attempt. How would I do it? Thank you

/etc/samba/smb.conf
Code:
[global]
workgroup=WORKGROUP
server string = Samba Server Version %v

# interfaces = lo wlan0 192.168.0.1/24
hosts allow = 127. 192.168.0.

log file = /var/log/samba/log.%m
max log size = 50

# security = user
# passdb backend = tdbsam
security = auto
server role = standalone

[www]
        comment = Apache WWW Directory
        path = /var/www
        guest ok = yes
        guest only = yes 
        read only = no
        force create mode = 0775
        create mask = 0775
        force directory mode = 0775
        create directory = 0775
 
Old 04-20-2014, 10:10 AM   #2
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 536

Original Poster
Rep: Reputation: Disabled
After further thought, even if it is possible, maybe it is not a good idea. I assume doing so will assign owner "nobody" to any created files, right?
 
Old 04-20-2014, 10:58 AM   #3
jv2112
Member
 
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 719

Rep: Reputation: 103Reputation: 103
You can set without password as read only so you can access without fear of manipulation. I have my home media server set up that way so my kids don't accidentally delete files.
 
Old 04-20-2014, 04:21 PM   #4
dolphin_oracle
Member
 
Registered: Dec 2013
Posts: 329

Rep: Reputation: Disabled
What is the error? You also need to make sure the linux folder permissions are appropriate for the the open access.

this video might help you out. its based on linux lite, but samba is samba at this level.

https://www.youtube.com/watch?v=MgpEGIDUAQQ
 
Old 04-20-2014, 07:42 PM   #5
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 536

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by dolphin_oracle View Post
What is the error? You also need to make sure the linux folder permissions are appropriate for the the open access.https://www.youtube.com/watch?v=MgpEGIDUAQQ
No error. Just the Windows user doesn't have permission. Since the directory was 0775, that is as expected unless it is somehow possible to extend the Windows user credentials to the Linux server if the username is the same or something like that.
 
Old 04-20-2014, 08:10 PM   #6
dolphin_oracle
Member
 
Registered: Dec 2013
Posts: 329

Rep: Reputation: Disabled
well, the share definition is 0775 but are the linux folder permissions on the server set so that "other" users can read/write?
 
  


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 password protected shared Folder Mrpeepers310 Linux - Networking 5 09-18-2010 11:04 AM
Samba - Permissions of shared directory, and directories above it sillyfofilly Linux - Networking 1 10-20-2009 04:10 AM
Samba mount Windows shared drive password fzanella Linux - Newbie 3 04-23-2009 11:22 AM
use of samba to create a shared directory in slackware 10.2 geom06005 Linux - Newbie 2 01-27-2007 02:38 PM
Maping samba shared directory automaticaly RajendraKumar Linux - Enterprise 3 07-21-2006 06:57 AM


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