Библиотека сайта rus-linux.net
7.1. Web Server and HTTP Caching Proxy Administration
Warning |
(WARNING: DISREGARD THIS SECTION!) |
Create an Internet user as per normal. The "shell" account should be ``
'' (as FTP requires a valid shell)./bin/bash
``
cd /home ; chown root.root theuser
'' This makes "theuser"'s directory belong to root, for security reasons.``
cd /home/theuser ; mkdir www ; chown theuser.theuser
'' This creates their "www" directory, and sets ownership so they can read/write to it.``
echo "exit" > .profile
'' This creates a ``
'' file with the single line ``.profile
exit
'' in it. If the user tries to log in via telnet, they will get disconnected immediately.Do an ``
ls -l
'' and make sure there are only 2 files in the directory (not including ``..'' and ``.''):.profile (owned by root.root)
www (owned by theuser.theuser)
All other files can be deleted (eg. ``
rm .less ; rm .lessrc
'')If the user needs to have e-mail forwarding enabled you could create a .forward file which simply has the proper e-mail as the first and only line in the file.
That's it. The user can use FTP to update the pages.
Prev | Home | Next |
Custom Configuration and Administration Issues | Up | Domain Name Server (DNS) Configuration and Administration |