Guidelines for proper file and directory permission settings
The following are guidelines for proper file and directory permissions on Webserve:First and foremost, from the /ip/{account_name} all the way down, no file or directory is
permitted to be group or other "writable". There should be no exceptions.
-
Top-level directory (
/ip/{account_name}should be protected for all access to owner and execute only to group and others. -
Common dot (".") files and directories in the login directory which are normally hidden like
.ssh, .ssh2, .login, .profile, .cshrc, .bash_history, .bashrc, etc should be set to all access to owner and no access to group and others. -
Generally *all* other non-dot (".") directories like
binshould be set to all access to owner and no access to group and other. -
Generally *all* other non-dot (".") files in the login directory should be protected for all access
to owner and no access to group and other.
-
Generally *all* executable file in the entire account directory should be proected for all access to owner
and no access to group or other.
In thewwwandwwwsdirectories the ~accountname feature of the webserver will ensure that the executable file executes *as* the account name. -
If the account is a member of the the
UNIX "ip" group, all files in the entire
/ip/{account_name}directory tree should have their owner set to the account name and the group set to ip -
The www and wwws (if present) directories should be set to all access to owner and
execute only to group and other.
You can find out whether there are files/directories that have improper permission settings in your account,
by running a script, check_file_security. To run this script,
- Login to your account using an SSH Secure Shell Client. For information on how to use the SSH client, PuTTY, please see How to use PuTTY on Webserve.
- Type
/usr/local/bin/check_file_security - Type
y, when prompted with the question,
Do you want to continue and run the report? (y/n). - The result will be written to a file named
account_name-check-file-security-report.txt, located in the login directory.



