Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

symlink not working

Discussion in 'General Discussion' started by hostnex, Jul 23, 2011.

  1. hostnex

    hostnex Well-Known Member

    Joined:
    May 2, 2008
    Messages:
    77
    Likes Received:
    1
    Trophy Points:
    58
    Location:
    Islamabad, Pakistan, Pakistan
    cPanel Access Level:
    Root Administrator
    We made a symlink between a cpanel user name backup and a 2nd HDD mounted on /backup with the command

    root@[/home/backup]# ln -s /backup

    It makes a symlink for /backup to /home/backup/backup instead of making symlink for /backup to /home/backup. Can anyone help what we are doing wrong in it.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. hostnex

    hostnex Well-Known Member

    Joined:
    May 2, 2008
    Messages:
    77
    Likes Received:
    1
    Trophy Points:
    58
    Location:
    Islamabad, Pakistan, Pakistan
    cPanel Access Level:
    Root Administrator
    Anyone there for help ?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,609
    Likes Received:
    32
    Trophy Points:
    238
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    The directory cannot already exist that is going to be the symlink, only the directory you are linking from can exist:

    Code:
    ln -s /backup /home/backup
    The above should work provided the /home/backup directory doesn't exist already and /backup one does.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice