Web Hosting Talk







View Full Version : Remove symbolic link?


JoeM
06-11-2001, 10:02 PM
Here's yet another one of my green bean questions:

So I goofed and put in the wrong sym link with
ln -sn /site12/sites/site6/web username

And now I need to put in the correct link, as in
ln -sn /home/sites/site6/web username

Naturally, the system tells me there is already a symbolic link in place for "username".

So how do I overwrite the old sym link?

Thanks.

Chicken
06-11-2001, 10:40 PM
When I've set symbolic links, such as:

ln -s /home/sites/site2/users/billy/web /home/sites/site2/web/billy

-the symbolic link is in:

/home/sites/site2/web

-and can simply be deleted. So your symbolic link will be in the username directory.

Now, I'm not sure what you are trying to do exactly, but from how it looks, if you want a user to be able to access another site's directory, you don't need to create a symbolic link for this, simply create another user in that site and make them a siteadmin.

JoeM
06-11-2001, 10:48 PM
Thanks. So how exactly do you delete the link? Is this a physical file I could just delete, a directory, what?

What I am trying to do and have done successfully (on my second attempt) was to put up true SSL cert sharing, so my hosted customers can now secure their site, or any directory there in with an address like https://secure.hostdomain.com/AccountName/PAGES/mycart.html

As it turns out it's really a very symple proceedure. But now I need to un-goof my previous goof.

jtan15
06-11-2001, 10:51 PM
You can delete a symbolic link by simply using the "rm" command. That will do it. :)

Chicken
06-11-2001, 10:55 PM
By the way Vince, that signature'll git ya' banned in some parts of the web. Best be careful wit ya' now, ya' heeeeyahhh? :D

JoeM
06-11-2001, 10:58 PM
So let's see,,,, would I then telnet into the target directory and type something like

ln -rm LinkName


Or would that be just:

rm LinkName


And I am hoping this does not trash the whole user account because the linkname is the same as the accounts main user name.

By the way, I have been looking in the directory via telnet and I can see no file with my linkname, must be an invisable kind of thing.

jtan15
06-11-2001, 11:02 PM
Chicken,

Pffftttt ... Lakers fan. ;)

JoeM:

rm LinkName

Matthew.A
06-12-2001, 04:10 AM
I think you just RMDIR nameoflink it, as it is in effect a directory.

JoeM
06-12-2001, 04:28 AM
Thanks, I finally found the links and RMed them. What threw me a little is I expected them to be in the target directorys, but they were in the source web directory.

Matthew.A
06-12-2001, 04:40 AM
No prob - yes they are in the source DIR as that is where you are linking from...

JoeM
06-12-2001, 04:47 AM
Hey Mat.

Would you happen to know where I can get instructions for installing an RPM on our Cobalt 4i raQ? I have decided to install the Akopia Interchange cart at the root level, and it seems like the RPM installation is the way to go (rather than a manual install), but I'll be danged if I can't find a single bit of advice about this anywhere,,,,, which usually means it's way easier than I thought. :eek:

Matthew.A
06-12-2001, 04:49 AM
Sorry no...

jtan15
06-12-2001, 12:15 PM
JoeM:

rpm --install filename.rpm

That should install it. Check "rpm --help" for more info.

JoeM
06-12-2001, 03:12 PM
Cool! Thanks!