LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Accessing Web folder using proftpd (https://www.linuxquestions.org/questions/linux-networking-3/accessing-web-folder-using-proftpd-449594/)

Unicron 05-29-2006 08:44 AM

Accessing Web folder using proftpd
 
Ive set up a ubuntu box as a router for my house. Ive installed apache, mysql, php and proftpd on there. Im new to this sort of thing and Im having trouble confiduring proftpd to work how I want it to.

In my configuration file I have the lines:

# grant login only for members of the group
<Limit LOGIN>
DenyGroup !ftpuser
</Limit>

Which I believe only lets users that are part of the group ftpuser access the ftpserver. This is fine but when I log on it gives access to the users home folder.

What I want to do is be able to access the /var/www/ folder using an ftp program directly so that I can upload web-pages there rather than having to load them to my home folder then moving them to the web-folder.

Any help with the conf file is greatly appreciated :)

Thanks in advance

zhjim 05-30-2006 01:05 AM

Try something like

<Anonymous /var/www/htdocs>
<Limit WRITE>
AllowALL
</Limit>
</Anonymous>

For completness I have included my part of the config.

Code:

<Anonymous /mnt/cdrom/slackware>
  RequireValidShell            off
  User                          ftp
  Group                        ftp
  # We want clients to be able to login with "anonymous" as well as "ftp"
  UserAlias                    anonymous ftp

  # Limit the maximum number of anonymous logins
  MaxClients                    50

  # We want 'welcome.msg' displayed at login, and '.message' displayed
  # in each newly chdired directory.
  DisplayLogin                  welcome.msg
  DisplayFirstChdir            .message

  # Limit WRITE everywhere in the anonymous chroot
  <Limit WRITE>
    AllowAll
  </Limit>

</Anonymous>



All times are GMT -5. The time now is 12:27 AM.