not seeing symbolic link

Haayer

Verified User
Joined
Jan 6, 2004
Messages
12
Location
Almere - The Netherlands
Hi,

If this is in the wrong place then please move it for me

I'am very new to DA and I'am having a problem with a symbolic link in a user dir.

I have 2 disks in the server, hda and hdb, hdb I have added later.

What I'am trying is to create a symbolic link in the users public_html dir, which is on hda, to a dir on hdb.

The symbolic works and I also chown it to the user.

I'am using DA version 1.20.5 and RedHat 9.

Thanx.
 
Hello,

Not too sure... Maybe paste what the link looks like with an 'ls -l'
You can also make sure it allows it by creating an .htaccess file with:

Options +FollowSymLinks

John
 
[root@soraya public_html]# ls -al
total 40
drwxr-xr-x 3 covers4u covers4u 4096 Jan 8 21:15 .
drwx--x--x 7 covers4u covers4u 4096 Jan 7 00:10 ..
drwxr-xr-x 2 covers4u covers4u 4096 Jan 6 21:44 cgi-bin
lrwxrwxrwx 1 covers4u covers4u 14 Jan 8 16:59 hdd -> /data/covers4u
-rw-r--r-- 1 covers4u covers4u 24 Jan 8 21:15 .htaccess
-rwxr-xr-x 1 covers4u covers4u 609 Jan 6 21:44 index.html
-rwxr-xr-x 1 covers4u covers4u 18554 Jan 6 21:44 logo.jpg

If I use ftp, the dir hdd is not being displayed.

/data is mounted on /dev/hdb

Thanx
 
and what are the permissions on the second hard drive? I don't know, but I assume that if those permissions aren't correct (root f.i.) you won't be able to go to that dir.

Regards

Robert
 
I have chown to the same user.

[root@soraya data]# ls -al
total 6
drwxr-xr-x 5 root root 96 Jan 6 22:31 .
drwxr-xr-x 20 root root 4096 Jan 5 10:38 ..
drwxr-xr-x 2 covers4u covers4u 48 Jan 6 22:31 covers4u
drwxr-xr-x 2 samplex samplex 48 Jan 6 22:29 samplex
[root@soraya data]#
 
Hello,

FTP and the Filemanager both chroot the session into their document root. Filemanger will chroot to /home/username, while FTP will chroot to whereever it's starting point is.

A chroot means that all references to / are changed to the chroot path, ie: filemanager /home/username... so in the Filemanager, a path of /data on the system, would point to /username/home/data in the Filemanager. Chroots are designed so that you can't break out of them, so you won't be able to do anything to access paths outside of the chrooted directory, no matter how hard you try.

You'll have to create another ftp account manually, and point it to /data/covers4u. You wont' be able to access it in the Filemanager.

John
 
Back
Top