Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This is not your classic programming question and since I'm quite new to this (really cool!) site, I'm not sure if this is the place, so I'll try anyway.

I work in a lab when all the guys use PCs with Windows and access the lab linux servers via ssh.

I prefer linux, so I have a local installation of ubuntu 10.4 on my PC. I mount the home of our lab server using mount server:/home /mnt/home/. I can then access the files on the server (I had to change my local UID to match the one assigned to me on our server in order to be able to write to my home dir).

The problem is all the (symbolic) links I have on the server don't work when I access them through the mounted location. I guess the system simply tries following the link in my local /home instead on server:/home.

Is there a way to make the links work?

Thanks, Dave

share|improve this question

migrated from Jul 26 '10 at 11:04

This question came from our site for professional and enthusiast programmers.

Move to – sashang Jul 26 '10 at 7:06
The sister site is a better place for non-programming questions. – msw Jul 26 '10 at 7:13
Maybe, but it's also server-related. – Philipp Jul 26 '10 at 7:24
Double-post! Here's the "parent post" By David B:… – Torben Gundtofte-Bruun Jul 26 '10 at 12:17
up vote 0 down vote accepted

A symbolic link (unlike a hard link) is simply a "file" that contains the destination file.

So you're right. If the symbolic link contains /home/bob, then that's the file it will attempt to use, not server:/home/bob.

I don't think there's an way around this other than to:

  • mount server:/home over your home directory, not a good idea since it'll hide your real home filesystem; or
  • mount all softlinks under your own home as well, not a good idea just due to mount management issues.
share|improve this answer
The reason people keeping asking questions, non related to programming, is because people keep supplying answers here. – Anders Jul 26 '10 at 7:31
That's fine, @Anders, both the Q&A will soon get migrated to SU/SF. Lack of answers won't stop the barbarian hordes from posting here :-) – paxdiablo Jul 26 '10 at 7:32

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .