Hi all,

Complete Linux newbe.

Server:

Linux, CentOS 5.x

root path: /var/www/vhosts/domainname/httpdocs/

Question: I want to create an FTP account that has access to the following directory:

/var/www/vhosts/domainname/hal

Can anyone lead me through the command to get this up and running.

    Which FTP daemon are you using? And how are you planning on creating this account... are you trying to do this via a PHP script, for example?

      Hi,

      How do I find out which FTP daemon is installed?

      I would like to set this up from the server command line if possible.

      Many thanks for such a fast reply.

      Dereck

        Well... do you know where the binaries or config files are installed? For example, if you were using vsftpd ("Very Secure FTP Daemon"), you'd have files like /etc/vsftpd.conf or perhaps /etc/vsftpd/vsftpd.conf, etc.

        EDIT: Also, you could try doing something like:

        rpm -qa | grep ftpd

        to search for the string 'ftpd' in all installed package names.

          Hi,

          The command result:

          psa-proftpd-1.2.2e-cos5
          psa-proftpd-xinetd-1.3.2e-cos5

          Again, thank you

          Dereck

            Ah, there we go - you're using ProFTPD; you can look up its docs and man page on the web.

            I've never used it, so I can't comment on experience. There are different authentication schemes that it supports, and one of them is to simply authenticate local users, e.g. user accounts on the server itself.

            If that is how your server is setup, you can take a look at this guide on adding new users to CentOS.

              Hi Brad,

              Many thanks, now I can go away and read up on the issue.

              Best regards,

              Dereck

                Hi Brad,

                After reading most if not all of the links you send I thought I would be able to solve this issue, but sadley not.

                Completed so far.

                Created the user
                Created the password

                Created the directory where I want the user to have access to

                /var/www/vhosts/mydomain/hal

                Changed the owner of the directory the the user

                The problem I now have, is when the user FTP's into the site they have access to all the directories able the "hal"

                For the moment I have removed the user from the system.

                Can you help in any way.

                  Write a Reply...