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

DReade83

Well-Known Member
Oct 20, 2006
196
0
166
Cheshire, UK
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.