Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Oct 2006
    Location
    Cheshire, UK
    Posts
    196

    Question How to access a symlink pointing at a folder in another user's account?

    From what I can tell this is a permissions problem, but don't want to be using root to FTP in as the answer.

    I have two accounts on my CentOS 5.3 server:

    user1
    user2

    Logged in as root I have done the following:

    cd /home/user1/www/
    ln -s /home/user2/www/images images
    chown -hR user1.user1 /home/user2/www/images

    ** SymLink created **

    sudo -u user1 ls images/

    Response: "ls: images/: Permission denied"

    I have ensured both ends are set to 777 mode.

    I have created a script using PHP, which is able to run from a domain hosted under the user1 account, upload a file and move the file into the symlink without an issue.

    Any help on this issue highly appreciated. Thanks in advance.

  2. #2
    Member Janak's Avatar
    Join Date
    Jul 2009
    Posts
    71

    Default

    Once you do ls -l in /home/user2/www/images are you able to see if symlink was created properly?

    Also, verify the ownership of images folder on user2 and check if its ownership was assigned to user1 or not?

  3. #3
    Member
    Join Date
    Oct 2006
    Location
    Cheshire, UK
    Posts
    196

    Default

    It's OK, all sorted, turns out I didn't do CHMOD 755 on the user's home folder too. Thanks anyway.

Similar Threads & Tags
Similar threads

  1. Symlink across user accounts
    By solesurvivor in forum New User Questions
    Replies: 3
    Last Post: 09-09-2009, 04:56 PM
  2. How can I give a user ftp access to backup folder
    By Biotron2000 in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 10-31-2006, 06:41 PM
  3. SymLink to new folder - rewrite [moved]
    By wookiee in forum New User Questions
    Replies: 1
    Last Post: 03-26-2006, 03:28 PM
  4. Pointing parked domain to specific folder
    By eter4 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 04-05-2003, 10:24 PM
  5. A user can access all account :(
    By cosmin in forum cPanel and WHM Discussions
    Replies: 41
    Last Post: 12-20-2002, 06:14 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube