Unix symbolic links

Core FTP client questions and answers
Post Reply
wcrafthta
Posts: 8
Joined: Fri Jul 28, 2006 3:19 pm

Unix symbolic links

Post by wcrafthta »

I'm just beginning to use coreFTP after using WS_FTP for years. My servers are all Unix/Linux based and I have many sybolic links. In WS FTP, they were indicated in the directory listing as being a sym link and when I downloaded or uploaded the sym link it would operate on the 'real' file or directory, not the link itself.

I am finding with coreFTP that uploading over-writes the link and makes it a regular file.

Is there any way to get around this?

Thanks
mike
Posts: 47
Joined: Fri Jul 28, 2006 4:36 pm

Post by mike »

does this global options setting make any difference?

View -> Options -> General -> Treat links as directories
wcrafthta
Posts: 8
Joined: Fri Jul 28, 2006 3:19 pm

Post by wcrafthta »

The behavior didn't seem to change, but I noticed in the transfer window that coreFTP wasn't trying to CD into the sym links with that box checked.

...still overwrites the link though.
mike
Posts: 47
Joined: Fri Jul 28, 2006 4:36 pm

Post by mike »

What type of server is this that you are connecting to?

If you look in the log there will be a SYST command that shows the server type.
wcrafthta
Posts: 8
Joined: Fri Jul 28, 2006 3:19 pm

Post by wcrafthta »

When using SSH/SFTP I don't get the SYST line, but when I turn off SSH I get this:

SYST
215 UNIX Type: L8


The server is a FreeBSD 4.7 running ProFTPD.
mike
Posts: 47
Joined: Fri Jul 28, 2006 4:36 pm

Post by mike »

I didn't know this was ssh :!:

I'll need to find a similar setup in order to see what's going on. I'll post what I find out as soon as I can.
wcrafthta
Posts: 8
Joined: Fri Jul 28, 2006 3:19 pm

Post by wcrafthta »

Sorry I didn't mention that. Appreciate the help,
mike
Posts: 47
Joined: Fri Jul 28, 2006 4:36 pm

Post by mike »

is the link a physical file that exists on your server, like...

directory.lnk

I tried uploading a file named the same as a directory and didn't get an error (over SSH). Maybe I'm doing something wrong?
wcrafthta
Posts: 8
Joined: Fri Jul 28, 2006 3:19 pm

Post by wcrafthta »

A *Nix O/S sets a special file attribute indicating that it is a symbolic link. When viewing the directory from a shell or FTP, the filename appears to be the same as the file it is linked to.

My view in coreFTP shows all symbolic links as folders, or at least there is a folder icon next to them.

I can download the file and it fetches the real file just fine. When I upload, I don't get an error per se but the file I upload overwrites the link and coreFTP displays a regular ascii file icon next to it.

After doing this I jump over to the shell and pull up a directory listing and the file is a real file, not a symbolic link.
mike
Posts: 47
Joined: Fri Jul 28, 2006 4:36 pm

Post by mike »

could you get some more information? By right clicking on the remote directory and selecting directory commmands, then directory info.

I'm looking for the line of data that matches up with the link.
wcrafthta
Posts: 8
Joined: Fri Jul 28, 2006 3:19 pm

Post by wcrafthta »

drwxr-xr-x 3 caponlin vuser 1024 Jul 28 12:04 .
drwxr-xr-x 28 caponlin vuser 1024 Jul 27 15:21 ..
-rw------- 1 caponlin vuser 3339 Nov 10 1998 mime.types
lrwxr-xr-x 1 caponlin vuser 30 Jul 28 11:29 aliases
-rw-r--r-- 1 caponlin vuser 12322 May 20 2002 mime.types.default
-rw-r--r-- 1 caponlin vuser 9526 Jul 21 09:55 httpd.conf
lrwxrwxrwx 1 caponlin vuser 34 Sep 24 2004 hosts.allow
lrwxrwxrwx 1 caponlin vuser 39 Sep 24 2004 local-host-names
drwxr-xr-x 2 caponlin vuser 512 Feb 10 2005 old
lrwxrwxrwx 1 caponlin vuser 34 Sep 24 2004 pgp.config.txt
lrwxrwxrwx 1 caponlin vuser 35 Sep 24 2004 proftpd.conf
lrwxrwxrwx 1 caponlin vuser 34 Sep 24 2004 sendmail.cf
lrwxrwxrwx 1 caponlin vuser 31 Sep 24 2004 spammers
lrwxrwxrwx 1 caponlin vuser 39 Sep 24 2004 swish_VAULT.conf
lrwxrwxrwx 1 caponlin vuser 31 Sep 24 2004 virtmaps
lrwxrwxrwx 1 caponlin vuser 54 Sep 24 2004 wusage.conf
-rw-r--r-- 1 caponlin vuser 410 Jul 28 11:46 .htgroups
-rw-r--r-- 1 caponlin vuser 666 Jul 28 11:31 .htpasswd
-rw------- 1 caponlin vuser 3369 Jan 22 2006 access.conf
lrwxr-xr-x 1 caponlin vuser 40 Jan 13 2005 php.ini
-rw-r--r-- 1 caponlin vuser 14208 Jul 24 11:28 cronfile.txt
-rw-r--r-- 1 caponlin vuser 8281 Feb 10 2005 httpd.conf_02-10-2005
-rw------- 1 caponlin vuser 0 Jun 26 1995 imagemap.conf
-rw-r--r-- 1 caponlin vuser 2703 Oct 20 2004 robots.txt
-rw------- 1 caponlin vuser 4734 Sep 24 2004 srm.conf
-rw-r--r-- 1 caponlin vuser 8218 Nov 5 2005 httpd.conf_11-05-2005
-rw-r--r-- 1 caponlin vuser 8218 Dec 4 2005 httpd.conf_12-04-2005
wcrafthta
Posts: 8
Joined: Fri Jul 28, 2006 3:19 pm

Post by wcrafthta »

In particular, the sym link that I'm dealing with is 'aliases'. Thanks again,
wcrafthta
Posts: 8
Joined: Fri Jul 28, 2006 3:19 pm

Post by wcrafthta »

Glad I'm not the only one. Any idea when the next production build will be released?
Post Reply