<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=Big5" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hello,<br>
<br>
I want to use the command of chmod and chown config the limitation for
a Web User account...<br>
eg : /home/abc and /home/abc/html<br>
<br>
Allow user "abc" read / modify / delete files under /html directory...<br>
But can't modify / delete System files ( dot files ) under /home/abc
directory...<br>
Allow anyone they can read only the files under /html directory (
actually, <a class="moz-txt-link-abbreviated" href="http://www.abc.com">www.abc.com</a> )...<br>
<br>
May be these operation steps ( sample ) are okey ?<span lang="EN-US"><br>
1, chown root /home/abc</span><span lang="EN-US"><br>
2, chmod 1775 /home/abc</span><span lang="EN-US"><br>
3, chown root /home/abc/.*</span><br>
4,chmod 775 /home/abc/html ( Read only on the Internet )<br>
<br>
Edward.<br>
<br>
Tim wrote:
<blockquote cite="mid1171987202.24014.5.camel@giggles.lan.cameratim.com"
 type="cite">
  <pre wrap="">On Tue, 2007-02-20 at 22:54 +0800, <a class="moz-txt-link-abbreviated" href="mailto:edwardspl@ita.org.mo">edwardspl@ita.org.mo</a> wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">If I want to config the web service, eg : <a class="moz-txt-link-freetext" href="http://www.abc.com">http://www.abc.com</a>, then the
actual location is /home/abc/html/All_of_homepage_files...
So, how to operator every web user account similar with above
setting ?
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Some of what you want is getting lost in translation.  Are you wanting
different people to have their own files in there?  Different people to
edit common files?  One person editing the HTML files?  Something else?

An easy solution for users to have their own websites is for them to use
a "public_html" directory in their homespace, and to configure Apache to
allow userdirs.  They'll get a sub-directory off the domain:

e.g.  <a class="moz-txt-link-freetext" href="http://www.example.com/~john/">http://www.example.com/~john/</a>
      <a class="moz-txt-link-freetext" href="http://www.example.com/~jane/">http://www.example.com/~jane/</a>

If you wanted each user to have their own domain name, that'd require
more configuration (DNS records, and the Apache webserver
configuration), then you could have addresses like:

     <a class="moz-txt-link-freetext" href="http://john.example.com/">http://john.example.com/</a>
     <a class="moz-txt-link-freetext" href="http://jane.example.com/">http://jane.example.com/</a>

The "file permissions" thread is discussing Apache at the moment, you
might want to have a look at that.

  </pre>
</blockquote>
<br>
</body>
</html>