Re: cannot chang directory to www folder in vsftpd

From: Jeff Vian (jvian10_at_charter.net)
Date: 08/25/05

  • Next message: Jack Howarth: "Re: how smart will wireless be in FC5?"
    To: David L <david@livelysolutions.biz>, For users of Fedora Core releases <fedora-list@redhat.com>
    Date: Thu, 25 Aug 2005 16:53:55 -0500
    
    

    On Wed, 2005-08-24 at 21:14 -0400, David L wrote:
    > I have been using windows for some time as a server and was told by
    > many that Linux is better. However I have tried and tried to be able
    > to navigate to the /var/www/html directory using ftp and cannot seem
    > to do that simple little thing. Any way I can ftp to my home
    > directorys fine. I would like to use fedora for a web/mail/ftp server
    > but this is driving me nuts. Everything else is working fine. Help
    > please! David
    > --
    > fedora-list mailing list
    > fedora-list@redhat.com
    > To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list

    An easy way to set that up would be to use one of the options to mount
    that allows you to remount a directory.

    1. create a directory in your home directory named whatever you choose
    (I use html).

    2. issue the command "mount -o bind /var/www/html /home/<username>/html

    You now should be able to see all the contents of the /var/www/html
    directory at /home/user/html

    The next thing you need is for the user to be able to write to
    the /var/www/html directory.

    To accomplish that I make the applicable users members of the apache
    group, set their umask accordingly (the files created/modified need to
    be group writable so I use 002 for the umask.), and last set
    the /var/www/html directory and contents as group writeable "chmod -R
    g+w /var/www/html".

    While there are other ways to achieve the same thing this works for me
    and does not change security in any way except to make the /var/www/html
    directory to be group writable by the apache group. Since the server is
    already able to write to that directory tree as the owner (apache) it
    seems to me to not make a big difference.

    If you are running selinux it likely has other ramifications that are
    not addressed above.

    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    

  • Next message: Jack Howarth: "Re: how smart will wireless be in FC5?"

    Relevant Pages

    • Re: apache question
      ... # Based upon the NCSA server configuration files originally by Rob McCool. ... # configuration directives that give the server its instructions. ... Directives that control the operation of the Apache server process as ...
      (alt.php)
    • Re: Apache and SSL
      ... # Based upon the NCSA server configuration files originally by Rob McCool. ... # This is the main Apache server configuration file. ... # configuration directives that give the server its instructions. ...
      (RedHat)
    • Re: Apache vs IIS
      ... Windows Server not on my Linux Server so there for I would chose IIS. ... Not that Apache is bad but ASP.NET is far easier and faster to create good web forms in. ... PHP on a IIS server is rather easy to run once you install PHP on a PC but if you only use PHP why not use Apache for Windows. ...
      (alt.php)
    • Re: HTTP servers on z/OS
      ... developed by the Apache Software Foundation. ... Also know as IHS ... "...the current IBM HTTP Server for z/OS and IHS for z/OS Powered by Apache, ...
      (bit.listserv.ibm-main)
    • Re: webalizer
      ... I'm trying to get webalizer and apache working together. ... # Based upon the NCSA server configuration files originally by Rob McCool. ... # configuration directives that give the server its instructions. ...
      (freebsd-questions)