Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 stackoverflow.com Jul 26 '10 at 11:04

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

    
Move to serverfault.com? –  sashang Jul 26 '10 at 7:06
1  
The sister site superuser.com 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: superuser.com/questions/167722/… –  Torben Gundtofte-Bruun Jul 26 '10 at 12:17
add comment

1 Answer 1

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.