On Thu, 04 Jul 2002, Chris Wagner wrote: > >On Fri, 05 Jul 2002, Jason Lim wrote: > >They don't have write access to its parent directory: > > > >[EMAIL PROTECTED]:~/test$ mkdir public_html > >[EMAIL PROTECTED]:~/test$ sudo chown root. . > >[EMAIL PROTECTED]:~/test$ rmdir public_html > >rmdir: `public_html': Permission denied > >[EMAIL PROTECTED]:~/test$ ls -la > >total 16 > >drwxrwxr-x 3 root root 4096 Jul 5 02:28 ./ > >drwxr-xr-x 135 weasel weasel 8192 Jul 5 02:28 ../ > >drwxrwxr-x 2 weasel weasel 4096 Jul 5 02:28 public_html/
To go into some details, I have a setup like this: (owned by) (directory) root client1/ root client1/logs/ root client1/site1/ client1 client1/site1/cgi-bin/ client1 client1/site1/htdocs/ root client1/site2/ client1 client1/site2/cgi-bin/ client1 client1/site2/htdocs/ root client1/site3/ client1 client1/site3/cgi-bin/ client1 client1/site3/htdocs/ root client1/site4/ client1 client1/site4/cgi-bin/ client1 client1/site4/htdocs/ root client2 root client2/logs/ root client2/site1/ client2 client2/site1/cgi-bin/ client2 client2/site1/htdocs/ root client2/site2/ client2 client2/site2/cgi-bin/ client2 client2/site2/htdocs/ [..] > But won't "rmdir ." succeed if they are in the public_html directory? rmdirs _below_ client1/site1/cgi-bin/ and client1/site1/htdocs/ would all work. rmdirs of client1/site1/htdocs/, or client1/site1/cgi-bin/ themselves will not work as that requires modifying the parent directory (client1/site1) for which the client has no write priviliges. [that quoting thing goes for you too] yours, peter -- PGP signed and encrypted | .''`. ** Debian GNU/Linux ** messages preferred. | : :' : The universal | `. `' Operating System http://www.palfrader.org/ | `- http://www.debian.org/
pgp54ATBTY9th.pgp
Description: PGP signature