Ring for service University of Washington Computer Science & Engineering
 Why Can't I Write to File "foo" on the Web Server?
  CSE Home  About Us    Search    Contact Info 

 CSE Support
 /cse/www/ File Attributes
 What Groups Am I In?
   

This document helps answer the question "why can't I edit file 'foo' on the web server?" It includes links to web tools that allow you to examine the file attributes of files on the web server, and to see what groups you belong to- information that will help you answer that question.

Where Are the Goods?

Web server files are available in the /cse/www/ file tree. That tree is mounted on all the "research" Unix hosts, and is accessible to Windows users via either Samba or NTDFS. For example, you can map \\ntdfs\cs as a drive and navigate down to \cse\www using Windows Explorer. The web server runs a Unix-like operating system, and web server files are on a Unix file system.

Who Can Edit the Files?

Unix file permissions are defined in terms of three classes of users and three distinct permissions. The user classes are:

  1. Owner. Every file is owned by a single user.
  2. Group. Every file is associated with a single Unix group. A group is simply a list of users, such as offic_cs, that share a need to collaborate.
  3. World. Every other user is in this class.
The permissions are these:
  1. Read. The file can be opened and the contents examined.
  2. Write. The contents of the file can be changed.
  3. Execute. The file can be run as a program.
To be able to edit a file, it needs to be writable by you. That means either
  1. You own the file, and it is writable by owner, or
  2. You are a member of the group associated with the file, and it is writable by group, or
  3. It is writable by world.

How Can I Tell if I Can Edit a File?

  • To see what the permission settings are for a particular file, follow this link. Unix users can use ls to see permission settings. For example, ls -l /cse/www/index.html.
  • To see what groups you belong to, follow this link. Unix users can use the groups command.

It's Not Group-writable- What Now?

If you are a member of the group that is associated with a file, but group-write is not set, all is not lost. Follow this sequence of operations (Windows users can use the Windows Explorer to do each step):

  1. Copy the file to a new filename. For example, a Unix user could type:
     cp /cse/www/directory/file.html /cse/www/directory/newfile.html
  2. Delete the orginal file. On Unix:
     rm /cse/www/directory/file.html.
  3. Rename the copy to the original name. On Unix:
     mv /cse/www/directory/newfile.html /cse/www/directory/file.html.


CSE logo Computer Science & Engineering
University of Washington
Box 352350
Seattle, WA  98195-2350
(206) 543-1695 voice, (206) 543-2969 FAX
[comments to support@cs.washington.edu]