httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Viitasaari <pub...@viitasaari.ca>
Subject Re: [users@httpd] How to populate webspace
Date Sun, 12 Nov 2006 20:28:20 GMT
FYI

Without going to virtual hosting this seems to be the best way to set up
a webmaster to populate a webspace:

CREATE WEBMASTER USER/GROUP
useradd webmaster
passwd webmaster

CHROOT WEBMASTER
Uncomment the following from the /etc/vsftpd/vsftpd.conf file:
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd/chroot_list

Create /etc/vsftpd/chroot_list file and add the following:
webmaster

RESTART FTP
/sbin/service vsftpd restart

MOVE HTML DIRECTORY OUT OF THE WAY
mv /var/www/html /var/www/html.original

CREATE A SYMBOLIC LINK BETWEEN THE HTML AND WEBMASTERS DIRECTORY
cd /var/www
ln -s /home/webmaster html

I know this forum might not be the right place for it but since I
started the thread, I thought I might as well finish it.

Best Regards, Hedgehog

On Sun, 2006-11-05 at 23:07 -0800, Steven Pierce wrote:
> 
> On 11/5/2006 at 10:11 PM Viitasaari wrote:
> 
> >Hi...I am a newbie at this forum so my question may be obvious to many
> >of you.
> >
> >I have Apache, FTP and Telnet working on my Fedora 5 box.  Currently,
> >the only user on the box is root.
> >
> >What I would like to do next is set it up so that the webmaster can
> >populate the webspace using ftp.
> >
> 
> This is more of a Unix question, but you need to create a user for your
> FTP software that is webmaster, webguy, webwhatever and then allow
> that user to put files into the directory that you set up for Apache to
> look to for HTML files.
> 
> Apache does not care much about this, it just looks into the space that
> you allow it to.
> 
> I would not use telnet, that is really not very secure.  If this in an "Internal" network,
> maybe.  Otherwise I would a SSH, or something that Sftp that is secure.  
> 
> 
> 
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message