Koozali.org: home of the SME Server

Make ibay/files/<subdir> readable on www

Offline jongkees

  • *
  • 23
  • +0/-0
    • http://www.fringel.com
Make ibay/files/<subdir> readable on www
« on: May 27, 2006, 11:03:12 PM »
About a year ago I found a way to enable read-privileges for a separated ibay on my server. But after a fresh install of the server I forgot about making notes how to do this.

What I have - is a small hd with SME installed, and a large hd (mounted to an separate ibay) with my files, photo's and so on.
What I would like to do - is make a link on my homepage to the photo albums on the larger hd/ibay.

I needed to modify some templates and maybe more. How can I recreate the configuration?
Greetingz, Robert

Offline Smitro

  • *
  • 350
  • +0/-0
Make ibay/files/<subdir> readable on www
« Reply #1 on: May 28, 2006, 09:56:32 AM »
Did you know that if you go http://domain_name/files/filename it works?
.........

Offline jongkees

  • *
  • 23
  • +0/-0
    • http://www.fringel.com
Make ibay/files/<subdir> readable on www
« Reply #2 on: May 28, 2006, 11:40:57 AM »
That works only for the domainname/ibay you are currently in, which is Primary,
To see the contents of an other ibay is not possible.

For example when I try to access my other harddrive mounted to ibay 'hd1' I get 'You don't have permission to access /hd1/ on this server.' (www.domainname.com/hd1/). Entering files/ behind doesn't help.

I had solved it once with a symbolic link and some additions to one of the templates.
Greetingz, Robert

Offline Smitro

  • *
  • 350
  • +0/-0
Make ibay/files/<subdir> readable on www
« Reply #3 on: May 28, 2006, 11:49:22 AM »
ok, I'm not 100% sure on what your trying to do but... if it's an access deined error, what sort of file permissions do you have on the ibay? is you open the folder your trying to access, type the command "ls -la" what are the rights...

To be accessible to the web server user "www" needs to have access.

HTH
.........

Offline jongkees

  • *
  • 23
  • +0/-0
    • http://www.fringel.com
Make ibay/files/<subdir> readable on www
« Reply #4 on: May 28, 2006, 01:07:02 PM »
/home/e-smith/files/ibays/hd1   shows me
drwxrws---    9 root     website      4096 Mar  4 17:21 files/
drwxrws---    2 root     website      4096 Mar  4 21:36 html/

/home/e-smith/files/ibays/hd1/files   shows me
drwxrwsr-x   13 root     website      4096 May 27 21:41 Pictures/

So I assume these settings are correct because /home/e-smith/files/ibays/Primary  shows me the same setting rights.

My ibay is now configured for no public access. I know this looks wrong, but I don't want my whole harddrive shared with the Internet. And I am pretty sure that's the same way I had configured it previously.
(When I had changes this setting to public access 'Entire Internet (no password required)' I couldn't access my local shares to this ibay on my LAN.)

I hope you understand what I'm trying to do?
Greetingz, Robert

Offline jongkees

  • *
  • 23
  • +0/-0
    • http://www.fringel.com
Make ibay/files/<subdir> readable on www
« Reply #5 on: June 11, 2006, 08:35:56 PM »
Anybody any idea yet?
Greetingz, Robert