LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-29-2005, 01:26 PM   #1
technician
Member
 
Registered: Jul 2003
Location: Wisconsin
Distribution: Slackware 10
Posts: 50

Rep: Reputation: 15
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.
 
Old 09-29-2005, 01:57 PM   #2
mschutte
Member
 
Registered: Jan 2005
Location: Innsbruck, Austria
Distribution: Debian GNU/Linux Lenny
Posts: 68

Rep: Reputation: 15
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
 
Old 09-29-2005, 01:58 PM   #3
bigfez
LQ Newbie
 
Registered: Mar 2005
Posts: 29

Rep: Reputation: 15
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>

Last edited by bigfez; 09-29-2005 at 02:00 PM.
 
Old 09-29-2005, 02:24 PM   #4
technician
Member
 
Registered: Jul 2003
Location: Wisconsin
Distribution: Slackware 10
Posts: 50

Original Poster
Rep: Reputation: 15
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!!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
"creating symbolic link" "operation not permitted" wheni Linux - Newbie 3 05-08-2011 02:36 AM
"bad interpreter : no such file or directory" when configure "flex" acer_peri Linux - Software 10 11-10-2010 02:19 AM
How to creat a gnome desktop shortcut to "my_music" folder? hkl8324 Linux - Newbie 1 07-04-2005 01:01 AM
Creating a "shortcut" nro Linux - Newbie 3 08-28-2004 02:44 AM
i just finished typing "./configure" and "make" in mplayer directory... kublador Linux - General 4 02-22-2003 04:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration