Results 1 to 10 of 12

Thread: Symbolic Links

Hybrid View

  1. #1
    Member honey bee's Avatar
    Join Date
    Feb 2006
    Location
    Pakistan
    Posts
    146

    Question Symbolic Links

    Hello,

    Is it possible to create a symbolic link which points to different locations , e.g i have a directory, DATA, which has subdirectories, html, jsp and log.Now i want to create a symbolic link which points to the two subdirectories of DATA i.e. to html and log and not jsp.

  2. #2
    Moderator
    Good Guru
    Compunuts's Avatar
    Join Date
    May 2001
    Location
    California
    Posts
    3,935
    Yes. "man ln" will show you what options you can use.
    LinuxVillage - The truely community run Linux/Floss forum !

    No IT BS !!

  3. #3
    Member honey bee's Avatar
    Join Date
    Feb 2006
    Location
    Pakistan
    Posts
    146
    Thanks for the reply.When i login through ftp i cannot access the symbolic links, like if i have user1 folder, which has further three different symbolic links to different locations.Now, when user1 logins it can see the names of three symbolic links but when i click them they show me error.

  4. #4
    Moderator
    Advisor
    redhead's Avatar
    Join Date
    Jun 2001
    Location
    Copenhagen, Denmark
    Posts
    811
    If your users ftp login jails them to the ftp directory, you cant follow the symbolic links if they extend the jail.
    Don't worry Ma'am. We're university students, - We know what We're doing.
    'Ruiat coelum, fiat voluntas tua.'
    Datalogi - en livsstil; Intet liv, ingen stil.

  5. #5
    Member honey bee's Avatar
    Join Date
    Feb 2006
    Location
    Pakistan
    Posts
    146

    Question

    Then how can i use it?, i want my users to be jailed in their given home directories and want the symlinks to work also

  6. #6
    Member honey bee's Avatar
    Join Date
    Feb 2006
    Location
    Pakistan
    Posts
    146

    Question

    I have read to use the following, instead of symbolic links and is working fine:

    mount --bind /var/ftp/music /home/userA/music

    Now, can any one help me with this that is there any limitation to the number of mounts we can do, and any synchronization issue involved with it.

  7. #7
    1. try man chroot. This will give your users their home directory

    2. Use the automounter. or put your mount in /etc/fstab

    service autofs start
    vi /etc/auto.master
    "magic directory" "/misc" --timeout=60

    vi /etc/auto.misc
    linux /mount_point ftp:blahh

    service autofs restart; chkconfig autofs on

    vi /etc/fstab
    mount_device mount_dir filesys_type defaults 0 0
    :wq

Similar Threads

  1. nano editor symbolic links vulnerability
    By Kernel_Killer in forum Security
    Replies: 0
    Last Post: 06-02-2010, 04:43 PM
  2. Symbolic Link - Inode number
    By jaiganeshmca in forum Linux - General Topics
    Replies: 4
    Last Post: 03-24-2010, 09:34 AM
  3. libXmu.so: cannot open shared object file: Too many levels of symbolic links
    By shupi in forum Linux - Software, Applications & Programming
    Replies: 0
    Last Post: 07-04-2006, 05:18 AM
  4. Coltrane Wants Your BSD Links!
    By coltrane in forum BSD
    Replies: 5
    Last Post: 08-05-2003, 01:43 AM
  5. CGI links
    By t048 in forum Linux - Software, Applications & Programming
    Replies: 0
    Last Post: 12-04-2002, 10:37 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •