Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have been using a cron job to duplicate a folder into another users account every day and someone suggested using symbolic links instead although I cannot get them to work.

In summary user GAMER generates log files that they want to access via HTTP, however I only have a web-server in the user account SERVER, in the past I would copy the logs folder from GAMERS account into SERVER/public_html/. and then chmod the files so the server could access them.

Trying to use symbolic links I set up a link from root (as only root can access both accounts) I used: ln -s /home/GAMER/game/logs/ /home/SERVER/public_html/logs

However it seems that only root can use this link, I tried chmoding the link, all the files in the gamers /game/logs/*, /game/logs itself to 777 as well as changing chown and chgrp to server the files still cannot be read.

When viewed from servers account my shell shows the link and where it is to hi-lighted in black with red text.

Am I doing something wrong? Please enlighten me!

/home/GAMER/game/ (chmod & chgrp)

drwxrwxrwx 3 SERVER SERVER  4096 2011-01-07 15:46 logs

/home/SERVER/public_html (chmod -h & chgrp -h)

lrwxrwxrwx 1 server server 41 2011-01-07 19:53 logs -> /home/GAMER/game/logs/
share|improve this question
When you say you "cmod'd everything to 777 and changing chown and chgrp to server", what files and/or directories did you chmod and/or chown/chgrp? – Harper Shelby Jan 7 '11 at 20:00
Added lots of info above! – Pez Cuckow Jan 7 '11 at 20:13
up vote 1 down vote accepted

2 things that may be blocking (or both).

1) filesystem: the symlink doesn't change file system perms. The perms will still be determined by the file pointed to, not the symlink perms.

2) Your webserver (probably apache) may not allow symlinks in the files it serves, for security reasons. You'd need to understand your config to fix this if this is the problem

share|improve this answer
Fixed it, didn't realize that the SERVER user would need access to all the directories above the logs folder – Pez Cuckow Jan 12 '11 at 22:26

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.