Search Mailing List Archives

Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[farmshare-discuss] How to allow a AFS CGI script delete/write a file

Adam Seishas aseishas at
Wed Jan 16 10:05:35 PST 2013

The CGI principal for the class (probably something like 1134-classname.cgi) needs write access to the directory; since course volumes are in AFS, you need to set AFS permissions (not standard UNIX permissions):

fs setacl [directory] [principal] write

If you’re not sure of the principal name, try running “fs la” on the course directory. has more information on access control in AFS.

Adam Seishas
IT Service Desk
Stanford University
aseishas at

On Jan 16, 2013, at 12:10 AM, Trevor Davis <trevor.l.davis at> wrote:

> Hello,
> I've enabled cgi in an AFS class directory and have created a sub-directory with a number of data files.  My cgi script has no problem reading these files but whenever I try to delete a file using the cgi script I get a "permission denied" error.  I've recursively set the permissions for the sub-directory using "chmod -R 777" but I still get the permission denied error.  What do I need to do in order to let the cgi script delete/write a file in this sub-directory?
> Thanks,
> Trevor
> _______________________________________________
> farmshare-discuss mailing list
> farmshare-discuss at

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the farmshare-discuss mailing list