Koozali.org: home of the SME Server

windows/samba ibay name not linking to ibayname/files

Offline mike_mattos

  • *
  • 313
  • +0/-0
windows/samba ibay name not linking to ibayname/files
« on: September 23, 2006, 10:37:25 PM »
I'm feeling very old today!  Why does Windows now insist that my DATA ibay contains 3 directories ( html, files and cgi_bin)?

Browsers automatically find the html directory, why is Samba now not finding the files directory?  I remember having this problem years ago, can't remember why or how it was avoided!

Thx
...

Offline raem

  • *
  • 3,972
  • +4/-0
Re: windows/samba ibay name not linking to ibayname/files
« Reply #1 on: September 24, 2006, 12:58:59 AM »
mike

This is definitely a case of read the manual, Chapter 14.1
...

Offline mike_mattos

  • *
  • 313
  • +0/-0
windows/samba ibay name not linking to ibayname/files
« Reply #2 on: September 25, 2006, 07:29:27 PM »
Ray, I just rechecked the latest (very nice looking! ) manual?  It is hard to find on the new web site, but once one finds it, it looks very nice.
(I'm sure someone will be adding direct links soon instead of needing to search)

Apparently the manual writer's understanding of the work  PUBLIC doesn't match my own! Setting the bay to PRIVATE (local ) access doesn't do the trick, you have to set it to the menu choice "NO ACCESS"

The manual literally says to select  "NO PUBLIC ACCESS" , which is NOT an option in the pull down menu.   ( NO Access,  LOCAL Access,  and Entire Internet  are the options )

Since I needed access on the local network, I didn't want to choose NO ACCESS which I assumed was an admin setting so only root could access the i-bay.  

Problem is solved, I suspect this may be what caused me grief in the previous version!
...

Offline raem

  • *
  • 3,972
  • +4/-0
windows/samba ibay name not linking to ibayname/files
« Reply #3 on: September 25, 2006, 08:43:03 PM »
mike

> Since I needed access on the local network, I didn't want to choose NO ACCESS

Well the title for that field is:
"Public access via web or anonymous ftp"
so the choices are referring specifically to how you want Public access via web or anonymous ftp to that ibay to function.

This has nothing to do with generally allowing/disallowing local LAN network access.

The field for
"User access via file sharing or user ftp"
covers local access.
...

Offline mike_mattos

  • *
  • 313
  • +0/-0
windows/samba ibay name not linking to ibayname/files
« Reply #4 on: September 25, 2006, 08:59:35 PM »
As I said earlier, the manual says to use a choice not in the provided list!  IF it said to set the web/ftp to NO ACCESS instead of to NO PUBLIC ACCESS the problem would not arise.  AS written, it suggests that options other than NO ACCESS will have the result of directing Samba to the files directory.  

And I'm still wondering if there was a back door way to make Samba go to the files directory no matter what the web access setting?

Thx

Mike
...

Offline raem

  • *
  • 3,972
  • +4/-0
windows/samba ibay name not linking to ibayname/files
« Reply #5 on: September 25, 2006, 10:18:48 PM »
mike

> ...the manual says to use a choice not in the provided list
> IF it said to set the web/ftp to NO ACCESS instead of to NO PUBLIC ACCESS the problem would not arise.  

It doesn't say to set No Public access, it says
"If an i-bay is set for no public access via web or anonymous ftp....."

It's a generic expression referring to the setting for
" Public access via web or anonymous ftp"
and implies to choose
"No access"


> AS written, it suggests that options other than NO ACCESS will have the > result of directing Samba to the files directory.  

I think you are either confused or failing to see the point.
A web access setting can have no possible connection with a Samba access setting, they are totally different things. One will not affect the other.

The setting field name is
"Public access via web or anonymous ftp"
which is referring to settings that are valid for web or ftp access, not settings for Samba access.


As I said earlier, and the point you don't seem to be getting, is that there is a completely seperate field for
"User access via file sharing or user ftp"
which covers local access (via samba).

This is the setting that will affect samba access.


> And I'm still wondering if there was a back door way to make Samba
> go to the files directory no matter what the web access setting?

I think you are misunderstanding something here too.

The files, html & cgi-bin folders always exist, no matter what settings you make in the ibay panel. When you set no web access for that ibay, then only the files folder is displayed (in samba), the html & cgi-bin folders are simply hidden from view. The sme server by design is being nice to you and hiding the unwanted folders.
When web access is enabled then the three folders are displayed in samba, but your files will still be in the files folder (if that's where you already put them or choose to put them).

I can't see how you can have some alternative back door route to the files folder when that already exists.
...

Offline mike_mattos

  • *
  • 313
  • +0/-0
windows/samba ibay name not linking to ibayname/files
« Reply #6 on: September 26, 2006, 05:08:22 PM »
Ray, the problem is that on occasion, the need to access the cgi_bin or html directories, or the need for web or ftp services changes.  When it changes, all Samba/Windows users lose their shortcuts!
That is to say  
net use Z: //smeserver/ibay  
has to be changed to
net use Z: //smeserver/ibay/files
or vice versa

The manual talks about this problem, but offers no solution.  I suspect that whatever SMEserver changes from the admin panel can be accessed directly so Samba ALWAYS goes to ~/ibay/files no matter the settings for ftp & web services, (but I could be wrong)

Also, <<implies to choose  "No access" >>  is exactly my point. If only one menu item has the desired result, SAYING  use that menu item instead of just implying it adds clarity.

Ideally, I want root to have full access, and group to just see the files directory, but that isn't a default option.

Mike
...

Offline raem

  • *
  • 3,972
  • +4/-0
windows/samba ibay name not linking to ibayname/files
« Reply #7 on: September 26, 2006, 05:44:35 PM »
mike

> If only one menu item has the desired result, SAYING  use that menu item instead of just implying it adds clarity.

You seem fond of playing with semantics for no useful purpose.
If you wish to construe a different meaning, then I amend my earlier comment to say:
It doesn't say to set No Public access, it says
"If an i-bay is set for no public access via web or anonymous ftp....."

It's a generic expression referring to the setting for
" Public access via web or anonymous ftp"
and tells you to choose
"No access"


> net use Z: //smeserver/ibay  
> has to be changed to
> net use Z: //smeserver/ibay/files

So why not configure all your ibays for web access - Local Network (no password required).
This will automatically make the files folder appear, and then you can map
net use Z: //smeserver/ibay/files
and that will always be consistent then.


> I want root to have full access, and group to just see the files directory, but that isn't a default option.

You would have to manually adjust folder permissions for each ibay, but these would possibly be overidden when settings were reconfigured and most likely overidden after upgrades.
You would need to create custom templates for each ibay. See existing templates to determine which fragments to copy etc etc.
...

Offline judgej

  • *
  • 375
  • +0/-0
windows/samba ibay name not linking to ibayname/files
« Reply #8 on: September 27, 2006, 10:16:09 PM »
Quote from: "mike_mattos"
And I'm still wondering if there was a back door way to make Samba go to the files directory no matter what the web access setting?


Basically: no.

You need to decide whether an i-bay is to be used as a Samba file share, or a web-site/web application of some sort, and stick with it.

- If you chose a file share, then the Samba share points just to the 'files' directory.
- If you chose a web-directory, then the Samba share points to a level above the 'files' directory, so that you have access to the 'html' and 'cgi-bin' directories.

That's the long and short of it: chose one or the other.

-- JJ
-- Jason