777 Permissions

BillyS

Verified User
Joined
Jul 17, 2021
Messages
454
I just noticed that in this directory

My Files > domains > domain.com > awstats

There is one file with 777 permissions (index.html)

And if I look in

My Files > domains > domain.com > awstats > .data

awstats.www.domain.com.conf also has 777 permissions

I realize they are not in the public_html directory, but are these okay to leave as 777 or should I change them to something like 644?
 
There is one file with 777 permissions (index.html)
You are probably looking via the filemanager instead of via SSH correct?

When you look via SSH, looks like this:
Code:
lrwxrwxrwx 1 root    root      31 2019-09-15 00:11 icon -> /usr/local/awstats/wwwroot/icon
lrwxrwxrwx 1 username username   32 2021-11-12 00:12 index.html -> awstats.www.domain.com.2111.html
lrwxrwxrwx 1 root    root      39 2019-09-15 00:11 lang -> /usr/local/awstats/wwwroot/cgi-bin/lang
lrwxrwxrwx 1 root    root      38 2019-09-15 00:11 lib -> /usr/local/awstats/wwwroot/cgi-bin/lib
lrwxrwxrwx 1 root    root      42 2019-09-15 00:11 plugins -> /usr/local/awstats/wwwroot/cgi-bin/plugins

As you can see they are all symlinks. Same with the awstats.www.domain.com.conf which is a symlink to the awstats.domain.com.conf (without www) file which has 644 permissions.

So since they are symlinks, leaven them as they are, it's not really 777 with symlinks.
 
As you can see they are all symlinks. Same with the awstats.www.domain.com.conf which is a symlink to the awstats.domain.com.conf (without www) file which has 644 permissions.
I just looked via SSH and you're exactly right, thank you! (I'll check next time before asking)
 
Back
Top