Unix File Permissions
Unix file permissions control access to web pages that are stored on Unix servers. Most of the time, a web developer need not be concerned with Unix file permissions, but if you are encountering errors such as:
the permissions of your web files may need to be adjusted. Unix allows three types of permissions - read, write, and execute - and three types of people to which these permissions may be applied - user, group , and other. The basic
permissions that may be granted are read, write, and execute. Each
of these permissions has a slightly different meaning when applied to
either a file or a directory.
The three
types of people you can assign permissions to are user (yourself), group
(a predefined set of people), and other (everybody else).
The following is an example of what a file's permissions might look like:
In the example above:
If you suspect that you are having permissions-related troubles, you must first determine what type of site you have - single-user or group-maintained. A description of each type of site is below:
For single-user web sites, all files must be at a minimum readable by other, and all directories must be executable by other.
Please note: if the site in question is hosted on www.people.virginia.edu, the easiest way to fix incorrect file permissions is to use the Home Directory Accounts Maintenance Page. Log in and choose the option to "Set your WWW file permissions." For group-maintained sites, the same guidelines as above apply, but extra permissions are granted to the group. Additionally, you must verify that the group ownership is correct, otherwise you may unintentionally grant write privileges to the wrong group.
Once you have determined whether your site is single-user or group maintained, you may select an appropriate tool for correcting your site's permissions (please note that the built-in FTP clients in web editors such as Dreamweaver and FrontPage do not allow you to perform the necessary operations):
Web
Development Support | General
Info | Getting Started |
Design & Promotion If you need further assistance with Web applications or questions, send e-mail to web-consult@virginia.edu or call the ITC Help Desk at 924-3731. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||