Koozali.org: home of the SME Server

Need help with hiding an ibay

tomlechowski

Need help with hiding an ibay
« on: May 05, 2007, 02:28:03 PM »
Hi, I'm very new to SME server so if you are going to attempt an explanation please keep that in mind. :)

I'm running  SME server 7.1 as a gateway and firewalled server.

I've created a wordpress blog in an ibay (/blog) and would like to give everyone  full read/write access so that all users can upload files to the blog. I don't want them to see the ibay directory as a samba share as they could easily delete critical files. How can I hide the samba share yet give everyone full access through the browser?

Thank you in advance. --Tom

Offline shell

  • ****
  • 117
  • +0/-0
Need help with hiding an ibay
« Reply #1 on: May 08, 2007, 02:58:42 AM »
hey tomlechowski,

don't think this is possible.  your wanting full access and no access simultaneously. :shock:

i have tried to achieve something similar with applications that require full read / write access to run probably.

the best solution i could come up with was to ensure that you have a VERY good routine for backing up all the data in the ibay, that way recovery is not any great hassle.

not much of an option, but the best i have been able to find to achieve the same thing.  would be greatly interested in other ways of getting round this full access / limited access logic.

cheers, shell

Offline dmay

  • *
  • 450
  • +0/-0
    • http://myezserver.com
Re: Need help with hiding an ibay
« Reply #2 on: May 08, 2007, 06:06:35 PM »
Quote from: "tomlechowski"
I don't want them to see the ibay directory as a samba share...

This can be done with a templates-custom fragment. Create the following:

/etc/e-smith/templates-custom/etc/smb.conf/ibays/20browseable
Code: [Select]
{
    my $browseable = ($ibay->prop('Browseable') || 'yes');
    $OUT .= "browseable = $browseable\n";
}

Then enter the db entry:

# db accounts setprop ibayname Browseable no

And finally issue this event:

# signal-event ibay-modify

Note if your workstation had previously been connected to and viewing this share you may need to restart your workstation to clear out the previously cached (visible) ibay share name.

Darrell

Offline byte

  • *
  • 2,183
  • +2/-0
Need help with hiding an ibay
« Reply #3 on: May 08, 2007, 06:50:19 PM »
Also have a look at this, exactly the way Darrell mentioned...

http://bugs.contribs.org/show_bug.cgi?id=2966
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Need help with hiding an ibay
« Reply #4 on: May 08, 2007, 08:26:48 PM »
Quote from: "tomlechowski"

I've created a wordpress blog in an ibay (/blog)
...
How can I hide the samba share yet give everyone full access through the browser?


If you don't want data shared via samba then don't install in an i-bay. I expect there's a wordpress contrib somewhere, or you can follow a HOWTO for installing without using an i-bay.

Offline shell

  • ****
  • 117
  • +0/-0
Need help with hiding an ibay
« Reply #5 on: May 08, 2007, 11:22:28 PM »
Ah, never say never!  thanks to the powers that be for the good suggestions.

I guess where i was coming from was in terms of M$ applications housing (the one i pulled my hair out over was a library catalogue program).  ie apps that do need to be presented in a samba / windows share (ie L:\), and require read / write access for users to run.  The particular program had fantastic security but only from inside the program!  

$shares I never had any joy with, and always assumed i was missing something obvious.  which no doubt is the case! :?