limitation of user a/c ( telnet service ) now drifted to webserving
edwardspl at ita.org.mo
edwardspl at ita.org.mo
Tue Feb 20 16:56:18 UTC 2007
Hello,
I want to use the command of chmod and chown config the limitation for a
Web User account...
eg : /home/abc and /home/abc/html
Allow user "abc" read / modify / delete files under /html directory...
But can't modify / delete System files ( dot files ) under /home/abc
directory...
Allow anyone they can read only the files under /html directory (
actually, www.abc.com )...
May be these operation steps ( sample ) are okey ?
1, chown root /home/abc
2, chmod 1775 /home/abc
3, chown root /home/abc/.*
4,chmod 775 /home/abc/html ( Read only on the Internet )
Edward.
Tim wrote:
>On Tue, 2007-02-20 at 22:54 +0800, edwardspl at ita.org.mo wrote:
>
>
>>If I want to config the web service, eg : http://www.abc.com, then the
>>actual location is /home/abc/html/All_of_homepage_files...
>>So, how to operator every web user account similar with above
>>setting ?
>>
>>
>
>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. http://www.example.com/~john/
> http://www.example.com/~jane/
>
>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:
>
> http://john.example.com/
> http://jane.example.com/
>
>The "file permissions" thread is discussing Apache at the moment, you
>might want to have a look at that.
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20070221/399e8548/attachment-0001.htm>
More information about the fedora-list
mailing list