New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

[Solved] Ln command

Got problems with your B2 or B3? Share and get helped!
pcrene
Posts: 305
Joined: 17 May 2008, 15:49

[Solved] Ln command

Post 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
Last edited by pcrene on 17 Jan 2012, 02:15, edited 1 time in total.
B3 1T + B-Stor 2T, B2 1T as backup
40 users active....
Opensat4all.Com
pcrene
Posts: 305
Joined: 17 May 2008, 15:49

Re: Ln command

Post 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
B3 1T + B-Stor 2T, B2 1T as backup
40 users active....
Opensat4all.Com
Ubi
Posts: 1549
Joined: 17 Jul 2007, 09:01

Re: Ln command

Post by Ubi »

is followsymlinks turned on in apache?
pcrene
Posts: 305
Joined: 17 May 2008, 15:49

Re: Ln command

Post by pcrene »

Dunno, is that in apache.conf or something like that?

Renr
B3 1T + B-Stor 2T, B2 1T as backup
40 users active....
Opensat4all.Com
Ubi
Posts: 1549
Joined: 17 Jul 2007, 09:01

Re: Ln command

Post by Ubi »

yeah, here's a link with details:
http://goo.gl/ONnsM
pcrene
Posts: 305
Joined: 17 May 2008, 15:49

Re: Ln command

Post by pcrene »

Thx, this will do the job....

Rene
B3 1T + B-Stor 2T, B2 1T as backup
40 users active....
Opensat4all.Com
Gordon
Posts: 1464
Joined: 10 Aug 2011, 03:18

Re: Ln command

Post 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?
pcrene
Posts: 305
Joined: 17 May 2008, 15:49

Re: Ln command

Post by pcrene »

Hi

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

Http://download.azboxforum.nl

Rene
B3 1T + B-Stor 2T, B2 1T as backup
40 users active....
Opensat4all.Com
ryz
Posts: 183
Joined: 12 Feb 2009, 06:03

Re: Ln command

Post 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
pcrene
Posts: 305
Joined: 17 May 2008, 15:49

Re: Ln command

Post by pcrene »

Thanks,

Ill try mouting the folder.

Rene
B3 1T + B-Stor 2T, B2 1T as backup
40 users active....
Opensat4all.Com
Gordon
Posts: 1464
Joined: 10 Aug 2011, 03:18

Re: [Solved] Ln command

Post 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>
pcrene
Posts: 305
Joined: 17 May 2008, 15:49

Re: [Solved] Ln command

Post 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
B3 1T + B-Stor 2T, B2 1T as backup
40 users active....
Opensat4all.Com
Ubi
Posts: 1549
Joined: 17 Jul 2007, 09:01

Re: [Solved] Ln command

Post 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.
Gordon
Posts: 1464
Joined: 10 Aug 2011, 03:18

Re: [Solved] Ln command

Post 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).
Ubi
Posts: 1549
Joined: 17 Jul 2007, 09:01

Re: [Solved] Ln command

Post by Ubi »

I guess you mean the flags should then be noauto,user?
Post Reply