Strange file permissions issue

Hi Folks,

I'm moving from one linode to another, and have a strange file permissions issue. I have a number of virtual hosts and would like to have them be owned by different users.

My proposed set up is:

User: mthaddon

Home: /home/mthaddon

HTML dir: /home/mthaddon/web.url/html

Apache root dir: /var/www/html

Dir permissions: 644 mthaddon.users

I then symlink from /var/www/html/web.url to /home/mthaddon/web.url and specify in the Apache config file that the doc root is /var/www/html/web.url/html. Everything looks like it should work fine, and in my test case it did. I then set up another user, moved his files over, and followed the same pattern for this user. Problem is, for some reason his files show "you don't have permission to access this" unless I make the permissions 777.

I should specify that these are php files, not cgi files, and also jpg/png files.

Can anyone help out?

Thanks, Tom

1 Reply

@mthaddon:

Dir permissions: 644 mthaddon.users
Normally directories need the "x" pemission as well to allow people to enter them, so 755 is a better permission. Files can be 644.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct