Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19
Symbolic Links
Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Symbolic Links

  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.

    To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
    - 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
    Moderator
    Advisor
    redhead's Avatar
    Join Date
    Jun 2001
    Location
    Copenhagen, Denmark
    Posts
    811
    There is no synchronization issue involved, the files will only be located in one place, it's just the filedescriptor which is accessed from several places.

    The mount count can be virtualy infinite, it's only when you're talking about loop mounted devices that you'd run into an upper limit set by your kernel.
    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.

  8. #8
    Member honey bee's Avatar
    Join Date
    Feb 2006
    Location
    Pakistan
    Posts
    146
    thanks a lot for clearing

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

    Question

    I mounted:

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

    and then i tried to delete the /home/userA/music, i get the error "Could not remove" and when i tried to unmount it:

    umount /home/userA/music

    ,/var/ftp/music is removed.Now, how can i do it?

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

    Question

    Hello,

    I am facing another problem, when i reboot my system the link that i have created through "mount --bind" is finished.Why?.I don't want it to be finished.

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
  •