[K12OSN] open samba share

Petre Scheie petre at maltzen.net
Thu May 4 16:36:57 UTC 2006


Before you get too far away from your original plan, I think you might be able to have a 
wide-open share with security=server, as I just tried it on my RH8/Samba 2.2.7 box and 
it worked.  The key was setting the 'map to guest' parameter to Bad Password (and making 
sure you have the guest/nobody account all setup).  The default for 'map to guest' is 
Never, meaning if a invalid PW is submitted, the request is rejected.  Changing it to 
Bad Password means it will then map the request to guest which should allow access to 
the share.  There is a caveat: Since this setting is global, not at the share level, I'm 
not sure what it will do for homedir access.  And the SWAT help adds this caution:

"Note that this can cause problems as it means that any user incorrectly typing their 
password will be silently logged on as "guest" - and will not know the reason they 
cannot access files they think they should - there will have been no message given to 
them that they got their password wrong. Helpdesk services will hate you if you set the 
map to guest parameter this way :-)."

But it may do what you want.  HTH.

Petre

Doug Simpson wrote:
> No deal. . .
> 
> Will work on it from other angles. . .
> 
> Thanks!
> 
> Doug Simpson
> Technology Specialist
> DeQueen Public Schools
> DeQueen, AR 71832
> simpsond at leopards.k12.ar.us
> Tux for President!
> 
> On Thu, 4 May 2006, Doug Simpson wrote:
> 
>> I will try it this way. . . The thing I am trying to get around is the 
>> need to set up all the users on the linux/samba server just for this 
>> purpose. . .
>>
>> Let me try it that way. . .
>>
>> Doug Simpson
>> Technology Specialist
>> DeQueen Public Schools
>> DeQueen, AR 71832
>> simpsond at leopards.k12.ar.us
>> Tux for President!
>>
>> On Thu, 4 May 2006, Les Mikesell wrote:
>>
>>> On Thu, 2006-05-04 at 10:05, Doug Simpson wrote:
>>>
>>>> I have a linux/samba server and I need a share set up that will allow 
>>>> connections and give R/W access without requiring a login.
>>> If you want completely public access you have to set
>>> security = share
>>> Otherwise it needs to identify the user at the connection
>>> level before it can even see the share that is open.
>>>
>>>> In other words, I need this to just be a dumb share, accessible to all, 
>>>> writeable by all, but not requiring usernames and passwords.
>>> If 'all' really means all computers logged into a domain you
>>> can use
>>> security = server
>>>  and
>>> password server = yourPDC
>>> and access will be transparent.
>>> If 'all' includes computers not in a domain, then you need
>>> to change the security level to share.
>>>
>>>> I will be setting the host.allow to only allow certain computers to use 
>>>> it, but I need this to work.
>>>>
>>>> What will I need in the share definitions in /etc/samba/smb.conf
>>>>
>>>> I have tried this an other. . .
>>>>
>>>> [generic]
>>>> 	path = /samba/generic
>>>> 	guest = yes
>>>> 	read only = no
>>>> 	browseable = no
>>>> 	force create mode = 0777
>>>>
>>>> and the path is set to RWX for everyone on the /samba/generic directory.
>>>>
>>>> Still requires a login to access the share. . .
>>>>
>>>> Any ideas?
>>> You also may need to have
>>> guest account = 
>>> to some user that exists in the password file and you
>>> might want to add a 'force user =' to the share.
>>>
>>> -- 
>>>   Les Mikesell
>>>    les at futuresource.com
>>>
>>>
>>> _______________________________________________
>>> K12OSN mailing list
>>> K12OSN at redhat.com
>>> https://www.redhat.com/mailman/listinfo/k12osn
>>> For more info see <http://www.k12os.org>
>>>
>> _______________________________________________
>> K12OSN mailing list
>> K12OSN at redhat.com
>> https://www.redhat.com/mailman/listinfo/k12osn
>> For more info see <http://www.k12os.org>
>>
> 
> _______________________________________________
> K12OSN mailing list
> K12OSN at redhat.com
> https://www.redhat.com/mailman/listinfo/k12osn
> For more info see <http://www.k12os.org>
> 




More information about the K12OSN mailing list