This is all off the top of my head, so please lmk if I'm wrong ... On Fri, 7 May 2004, Richard Miller wrote: > My question is about permissions. The folder to which the file is > uploaded has to be world writable (777) and after being uploaded it is > owned by "99", which is apparently Apache.
I believe you should be able to make the folder 775 (or 77whatever), and chrgrp the folder to be owned by 99 (which on my box is "nobody"). > I can't copy it to other folders unless they too are 777. I can't change > the owner to me because I don't have root access (it's a shared server.) Do you mean you-as-PHP (i.e. user 99), or you-as-your-login-account? If I'm not mistaken, you should be able to copy it anywhere you have permission to write to, and the new copy will be owned by you. If you have write access to a directory, and read access to the file inside, you basically "own" the file even if you don't have root access to chown it. (Make a copy of the contents of the file, put it in a file that you own, delete the original, and put your copy in its place. I discovered that vim does this automagically to a file you don't have write access to if you have write access to the directory it's in and :w!) ~ ross -- This sentence would be seven words long if it were six words shorter. ____________________ BYU Unix Users Group http://uug.byu.edu/ ___________________________________________________________________ List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list
