Koozali.org: home of the SME Server

SME Virtual Links

Offline grattman

  • ****
  • 122
  • +0/-0
SME Virtual Links
« on: January 18, 2005, 04:37:17 PM »
Arghh....

I am havig a hell of a time creating a virtual link in SME.

I want to make a link to an Ibay, accessible from one users home directory, such as the primary link in /home/e-smith/files.

Logged in as root, I try and create this link but it never shows up? Any ideas?

Thanks in advance.

Brian Grattan
...

Offline smeghead

  • *
  • 563
  • +0/-0
SME Virtual Links
« Reply #1 on: January 18, 2005, 05:24:11 PM »
Try the following:

a) login to SME as root
b) navigate to required user folder
   eg /home/e-smith/files/users/XXXXX/home
c) execute:  ln -s /home/e-smith/files/ibays/YYYYYY/ZZZZZ AAAAAA

   Where XXXXX = username
         YYYYY = ibay name
         ZZZZZ = folder in ibay name
         AAAAA = link descriptive name

The link has ownership of root:root as we are logged in as root, so execute:

chown XXXXX:XXXXX AAAAAA

This allows the link to be owned (& seen) by the user.

I am assuming that the ibay permissions allow this user access.  I am also assuming that any other system permissions don't block this (perhaps the php open base_dir directive?)

HTH
..................

Offline grattman

  • ****
  • 122
  • +0/-0
Hmmmm
« Reply #2 on: January 18, 2005, 05:37:24 PM »
Thanks for the heads up on the link. That worked like a charm.

However, as you suspected, there is something else blocking it via FTP. At this point I am at the mercy of the server and those that read this post for a work-around.

Thanks.
Brian Grattan
...

Offline smeghead

  • *
  • 563
  • +0/-0
SME Virtual Links
« Reply #3 on: January 18, 2005, 07:47:01 PM »
Grab the ftp chroot contrib from dungog.net.  It allows you to chroot a user (lock into) a folder.  Setup an ibay with a new "ftp group" ownership then chroot the required users to that ibay for ftp.

HTH
..................

Offline grattman

  • ****
  • 122
  • +0/-0
THNAK YOU
« Reply #4 on: January 18, 2005, 08:28:19 PM »
Thanks a million.....you have been a HUGE help.

I purchased the dungog suite, but have slowly been poking through installing all the options. It works like a charm.

Again...thanks.

Brian Grattan
...

Offline grattman

  • ****
  • 122
  • +0/-0
SME Virtual Links
« Reply #5 on: January 20, 2005, 02:34:51 PM »
That worked great btw. Now I have another issue as a result of moving the website from primary to another ibay.

When I moved the files, cgi-bin included over, they files are not visible, via SSH or through the website. I changed ownership to the person that owns the directory, but still no cgi. Any ideas?

Thanks in advance.
...

Offline smeghead

  • *
  • 563
  • +0/-0
SME Virtual Links
« Reply #6 on: January 20, 2005, 02:47:28 PM »
When a file is placed into an ibay directory it needs to have the correct perms for user and group.

My index.html file in my Primary ibay looks like:

-rw-r-----    1 admin    shared        202 Feb 16  2002 index.htm

This equates to user=admin, group=shared, permissions are owner=rw, group=r - BTW use Midnight Commander (mc at the prompt) for an easy way to access and manipulate this info.

The best way to update this is to change the ownership in the SME panel to something else. save, then change it back, save - all files and folders have their perms and ownership reset.

Be careful of any php directives that may be related to the previous location of the files and update as needed.

HTH
..................

Offline grattman

  • ****
  • 122
  • +0/-0
SME Virtual Links
« Reply #7 on: January 20, 2005, 04:11:56 PM »
I finally realized what I had done wrong. I copied the files over using FileZilla, and the just didn;t go. So I logged in as root and copied them over, all is good in the world now. Thanks for the heads up.
...