LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Creating a "shortcut" to a directory? (https://www.linuxquestions.org/questions/linux-newbie-8/creating-a-shortcut-to-a-directory-368172/)

technician 09-29-2005 12:26 PM

Creating a "shortcut" to a directory?
 
Is it possible to create a file that, when double-clicked on from a GUI FTP client, forwards you to a directory?

Here's what I'm trying to do. I have a user I just created with FTP access rights to /var/www/htdocs, however their homedir is /home/username. Obviously when they login with the FTP client they start from /home/username, and being completely new to linux they won't know how to browse out and to /var/www/htdocs. What I'd like to do is have a file in their homedir called WWW that when double-clicked takes them to /var/www/htdocs.

mschutte 09-29-2005 12:57 PM

Create a symbolic link - it's exactly what they are made for.
I don't know what file manager you are using; here is the way to go on the console:
$ ln -s /var/www/htdocs WWW
$ cd WWW
$ pwd -L
/var/www/htdocs

Hope I could help,
mschutte

bigfez 09-29-2005 12:58 PM

i would expect the easiest way to accomplish this would be to set their home directory to /var/www/htdocs

i would doubt you could run a script from an ftp client.

<edit> oh yeah, right, depending on your ftp server, a soft link will probably work too</edit>

technician 09-29-2005 01:24 PM

Quote:

Originally posted by mschutte
Create a symbolic link - it's exactly what they are made for.
I don't know what file manager you are using; here is the way to go on the console:
$ ln -s /var/www/htdocs WWW
$ cd WWW
$ pwd -L
/var/www/htdocs

Hope I could help,
mschutte

Ah ha! I was experimenting with soft links, but I was obviously doing it wrong. You're suggestion works perfectly mschutte, much appreciated!!


All times are GMT -5. The time now is 01:31 AM.