Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] Can't Change ownership of symlink



Stephen,

Thanks for responding.

Symbolic links behave differently than other files.  Do man
on chown to see more details.  The safest way to change the
ownership of that file is to remove the link and re-create
it as the correct owner.

If I try to create a symlink in my /var/www as dave, it says "permission denied".

However, I did this, and it changed the ownership, but it still hasn't solved the "403 forbidden error".
sudo chown -R dave:dave web_sites

Also, as I investigate further, I'm not sure if the ownership is the issue. Check this out:
dave@example.com:/var/www$ ls -la
total 24
drwxr-xr-x  4 root root 4096 2007-06-27 09:41 .
drwxr-xr-x 17 root root 4096 2007-04-21 23:28 ..
drwxr-xr-x  2 root root 4096 2007-04-06 23:19 apache2-default
-rw-r--r--  1 dave dave  321 2007-04-07 20:04 dummy.php
-rwxrwxrwx  1 dave dave   20 2006-02-13 22:45 info.php
lrwxrwxrwx  1 dave dave   21 2007-04-07 13:55 phpmyadmin -> /usr/share/phpmyadmin
lrwxrwxrwx  1 dave dave   20 2007-06-27 09:41 web_sites -> /home/dave/web_sites
drwxr-xr-x  8 root root 4096 2007-04-07 20:04 ZendPlatform

Note that the ZendPlatform directory is owned by root. I can view and access it in FireFox via Apache.

Also note that the permission settings on phpmyadmin is exactly the same as the web_sites symlink. I can access phpmyadmin, but I still can't access web_sites.

It's there, but Apache won't see it.

I'm confused.

--
Dave M G
Ubuntu 7.10

Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links