[Samba] Restricted folder inside public share

2005-06-29 Thread Carsten Gehling
I've been assigned the task to make a fileserver with the following
share:

\\my-samba-server
  + public   --- Shared folder without password
|  restriction
|
+ event  --- Subfolder that requires
  valid username/password

I use Samba 3.0.12 installed on a FreeBSD from the ports collection.

The anonymous share-folder public is easy enough. My samba.cnf contains;
--
security = share

[public]
  comment = %h Shared Public Directory
  path = /usr/home/samba/public
  force directory mode = 0777
  force create mode = 0777
  force group = samba
  force user = samba
  public = yes
  writeable = yes
  read only = no
  inherit permissions = Yes
  map archive = No
--

And the folder /usr/home/samba/public looks like this:
--
drwxrwxr-t  3 samba  samba  512 Jun 27 13:16 public
--

But what should I do with the subfolder event?

From a users point of view, the folders should work like this:

1) I open \\my-samba-server\public - The folder is opened without any
username/password requests. Inside this folder I can create files and
folders.

2) Inside \\my-samba-server\public there is a sub folder called
event. If I try to open this, I will be prompted for
username/password before access is granted.

How do I do that? Is it at all possible, or can I only make it with
event as a separate share?

Thanks

- Carsten
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Restricted folder inside public share

2005-06-29 Thread Wolfgang Ratzka
Carsten Gehling wrote:
 I've been assigned the task to make a fileserver with the following
 share:

 1) I open \\my-samba-server\public - The folder is opened without any
 username/password requests. Inside this folder I can create files and
 folders.
 
 2) Inside \\my-samba-server\public there is a sub folder called
 event. If I try to open this, I will be prompted for
 username/password before access is granted.
 
 How do I do that? Is it at all possible, or can I only make it with
 event as a separate share?

It will not work this way. Once a Windows client has connected to the public
share, nothing will make it re-autheticate the connection. You will just
get an access denied for the protected subfolder. You may even run into 
problems
if you work with two separate shares on the same server, as windows does not
support connecting to two different shares on the same host with different
credentials.

-- 
Wolfgang Ratzka  Phone: +49 6421 2823531  FAX: +49 6421 2826994
Uni Marburg,  HRZ, Hans-Meerwein-Str., D-35032 Marburg, Germany
  http://www.uni-marburg.de/hrz/mitarbeiter/ratzka.html
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba