1833796 Members
4315 Online
110063 Solutions
New Discussion

Symbolic Links

 
SOLVED
Go to solution
KPS
Super Advisor

Symbolic Links

Hi,

I have a mountpoint called /house with useful data in this mountpoint and sub-directory /house/home/ftpora.

I want to point the user /home/ftpora to this mountpoint and subdirectory with a symbolic link. Could someome cure my confusion and help me out with the syntax that would be used in this context?

Thanks in advance...
-Ken
4 REPLIES 4
The Real MD
Valued Contributor

Re: Symbolic Links

ln -s /house /home/ftpora



I've not had any points allocated yet so please be generous.

Martin.
Sridhar Bhaskarla
Honored Contributor
Solution

Re: Symbolic Links

Hi Ken,


Make sure you don't have /home/ftpora already. If so, move it

#mv /home/ftpora /home/ftpora.orig
#ln -s /house/home/ftpora /home/ftpora



-Sri
You may be disappointed if you fail, but you are doomed if you don't try
KPS
Super Advisor

Re: Symbolic Links

That was my problem. I had the right syntax to link the user to the directory, but I already had a /home/ftpora and it wasn't setting up properly.

Thanks very much for your help!!!!
Mark Greene_1
Honored Contributor

Re: Symbolic Links

To created a symbolic link:

ln -s /file/linked /dest/dir/and/file

however, if what you really want is for user ftpora to have access to /house/home/ftpora, you'd add that to ftpora's entry in /etc/passwd as the home directory. You may also what to chroot it if you don't want them cd'ing out of that dir.

mark
the future will be a lot like now, only later