indy@SDF.LONESTAR.ORG
2003-Mar-17 00:37 UTC
[Samba] Single shared directory, with a universal password
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! -indy
Create a user on your Samba Box, create a share that is accessible to that user, then use the username parameter so that whatever user the Windows client sends, Samba will check the password against the user you created. ____________________________________________ Mar 16 8:04pm They hang the man and flog the woman That steal the goose from off the common, But let the greater villain loose That steals the common from the goose. --English folk poem, circa 1764 On Mon, 17 Mar 2003 indy@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! -indy -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Andrew Bartlett
2003-Mar-17 01:07 UTC
[Samba] Single shared directory, with a universal password
On Mon, 2003-03-17 at 11:37, indy@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@pcug.org.au Manager, Authentication Subsystems, Samba Team abartlet@samba.org Student Network Administrator, Hawker College abartlet@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