Page 1 of 2

[Solved] Ln command

Posted: 16 Jan 2012, 14:33
by pcrene
Hello all and ubi, cheeseboy,

If i create a symbolic link in a userfolder e.g. /home/guest/link
Referring to /home/web/folder

It does not show on the web interface.
I want to use it to quickly change some content in a web environment.

Rene

Re: Ln command

Posted: 16 Jan 2012, 14:39
by pcrene
Correction..

It does show up as a file, i cannot change to the folder i want to go to.

Is there a solution.

Rene

Re: Ln command

Posted: 16 Jan 2012, 16:13
by Ubi
is followsymlinks turned on in apache?

Re: Ln command

Posted: 16 Jan 2012, 16:15
by pcrene
Dunno, is that in apache.conf or something like that?

Renr

Re: Ln command

Posted: 16 Jan 2012, 16:19
by Ubi
yeah, here's a link with details:
http://goo.gl/ONnsM

Re: Ln command

Posted: 16 Jan 2012, 16:22
by pcrene
Thx, this will do the job....

Rene

Re: Ln command

Posted: 16 Jan 2012, 17:28
by Gordon
I'm not following what you're trying to do :?

/home/<username>/<whatever> is not web content, so can I assume you're using file manager in the web interface and want to use that to access files in the web folder as if it were a folder in some user's home directory?

Re: Ln command

Posted: 16 Jan 2012, 21:46
by pcrene
Hi

I want a noob user externally update webcontent without going to the /home/web/folder

Http://download.azboxforum.nl

Rene

Re: Ln command

Posted: 17 Jan 2012, 01:33
by ryz
If you try to use the web file manager to access symbolic links this is a known bug.
http://forum.excito.net/viewtopic.php?f ... inks#p9785

Re: Ln command

Posted: 17 Jan 2012, 02:00
by pcrene
Thanks,

Ill try mouting the folder.

Rene

Re: [Solved] Ln command

Posted: 17 Jan 2012, 02:30
by Gordon
pcrene wrote:Hi

I want a noob user externally update webcontent without going to the /home/web/folder

Http://download.azboxforum.nl

Rene
I thought as much after you mentioned web interface. Should work in Samba though...

In any case mounting is the more robust way, but you should be aware that a mount (or in this case a bind) is not permanent the way a symlink is. You need to make sure that the mount is reestablished after you perform a reboot, either by adding it to fstab (careful!) or adding it to and enabling the rc.local script.

In any case mounting is simple enough:

Code: Select all

~# mkdir  /home/<username>/<mountpoint>
~# mount --bind  <path_to_webfolder>  /home/<username>/<mountpoint>

Re: [Solved] Ln command

Posted: 17 Jan 2012, 03:47
by pcrene
Thanks

But i knew this, because i mounted an external 8T raiddisk to the storage part.
I have to reconnect by script after every reboot (i want it by script and not automatic).

Rene

Re: [Solved] Ln command

Posted: 17 Jan 2012, 06:27
by Ubi
be aware that mounting local folders in fstab via the 'bind' keyword often fails after reboot. Best way is to add the mount points in an rc.local script or something like that.

Re: [Solved] Ln command

Posted: 22 Jan 2012, 05:22
by Gordon
Ubi wrote:be aware that mounting local folders in fstab via the 'bind' keyword often fails after reboot. Best way is to add the mount points in an rc.local script or something like that.
True. You should probably only do this with binds that are within the root mount because the order of mounting cannot be controlled (and the file system depended on may therefore not be ready).

There may still be a reason for adding it to fstab though, because with the appropriate mount flags you can enable the user to mount and dismount himself (i.e. without being root).

Re: [Solved] Ln command

Posted: 22 Jan 2012, 05:43
by Ubi
I guess you mean the flags should then be noauto,user?