LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-12-2004, 11:33 AM   #1
ajspliffs
LQ Newbie
 
Registered: Jan 2004
Location: Canada
Distribution: CentOS
Posts: 11

Rep: Reputation: 0
symbolic linking directories? Possible?


I have mounted my big drive to sit at /archives but i want to give ppl access to it if logging on to ftp in the pub directory.

I tried doing the

ln -d /archives /var/ftp/pub

only to come up with the following error: Invalid cross device link

what is the best solution for my problem?
 
Old 01-12-2004, 11:43 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
you are trying to create a HARD link. a hard link means that a duplicate entry is added to the file tables, meaning that the same piece of data can be accessed by multiple file names. however your data is on a physically different device, so this naturally makes no sense at all. If you read the ln manpage you'll see you need a SOFT link, which is more analogous to a windows "shortcut", it points to the other filename, rather than the actual data.

ln -s dir1 dir2
 
Old 01-12-2004, 11:43 AM   #3
MartinN
Member
 
Registered: Nov 2003
Location: Ronneby, Sweden
Posts: 555

Rep: Reputation: 30
You can't do a hard link from one partition to another. A symbolic link (ln -s) may be an option, but I'm not sure that the ftp daemon likes that.

Why don't you just mount it under /var/ftp/pub ?

Regards
Martin
 
Old 01-12-2004, 11:55 AM   #4
ajspliffs
LQ Newbie
 
Registered: Jan 2004
Location: Canada
Distribution: CentOS
Posts: 11

Original Poster
Rep: Reputation: 0
ya when i did the symbolic link it works well in console and ssh but in an ftp client it just shows a link file. there for i think i will mount my archives drive in the ftp pub directory and symbolic link it in to /archives


thanks guys.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Symbolic Links, directories, and relative paths (../). Can it be done? jimwillsher Linux - Newbie 1 03-11-2005 05:27 PM
linking directories david@aber Linux - Newbie 3 11-25-2004 07:45 AM
Linking Directories utahcon Linux - General 1 08-11-2004 06:54 PM
Symbolic linking directories leecming Linux - General 1 06-08-2004 11:11 AM
symbolic linking ???? salparadise Linux - Newbie 2 12-26-2002 12:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:22 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