[Samba] Single shared directory, with a universal password
Andrew Bartlett
abartlet at samba.org
Mon Mar 17 01:07:39 GMT 2003
On Mon, 2003-03-17 at 11:37, indy at SDF.LONESTAR.ORG wrote:
> Hello,
>
> I am using Samba "Version 2.2.3a-12 for Debian" on a Debian 3.0 system.
> I have looked at lots of Samba documentation and have not been able to
> find anything explaining what I need. I want to create a single directory
> on my Samba server that is ok for any user (e.g. 'guest ok = yes'), but
> is password protected. Meaning, I want a share that any user can access
> as long as they have the password to that specific directory. I haven't
> seen how to do this anywhere, so any assistance that you could offer
> would be most appreciative. Thanks a lot!
Set 'security=share' on the server, and create an account in smbpasswd
for a new user 'share_user' (or whatever you like to call it).
Then put 'user = share_user' and 'valid users = share_user' in the
declaration for that share.
This gets you pretty close to the 'share level' password on Win9X. Not
quite (because we map to unix users) but pretty close.
Note that setting 'security=share' will affect other shares on the
server, so you might want to look into a %L include to host this on a
separate virtual hostname.
Andrew Bartlett
--
Andrew Bartlett abartlet at pcug.org.au
Manager, Authentication Subsystems, Samba Team abartlet at samba.org
Student Network Administrator, Hawker College abartlet at hawkerc.net
http://samba.org http://build.samba.org http://hawkerc.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/samba/attachments/20030317/5001e78b/attachment.bin
More information about the samba
mailing list