Topic
12 replies Latest Post - ‏2012-10-05T09:43:47Z by SystemAdmin
Imad77
Imad77
2 Posts
ACCEPTED ANSWER

Pinned topic Chroot FTP

‏2009-05-04T17:09:27Z |
Hi,

I want to setup chroot FTP in AIX 5.3 server. The created user "test"
should access to this FTP server and should browse his home directory
and not the other directories via the FTP client tool.
I created this file /etc/ftpaccess.ctl and I added this lines:
puseronly:test
readwrite:/home/test
When I try to connect with this account "test" from the AIX server,
I'm able to list the content of the chrooted directory.
But when I try to connect to this FTP server via a GUI FTP client from
my XP station, I cannot list the directory content, but I'm able to
put some files to this directory by uploading some files from my XP
station to this chrooted FTP.
How can I be able to list the chrooted file from a GUI FTP client
tool?
Thanks a lot.
Updated on 2012-10-05T09:43:47Z at 2012-10-05T09:43:47Z by SystemAdmin
  • Imad77
    Imad77
    2 Posts
    ACCEPTED ANSWER

    Re: Chroot FTP

    ‏2009-05-08T19:58:51Z  in response to Imad77
    I was able to resolve my FTP issues, and I installed Proftpd where I could perfom a chroot jail FTP.

    You should follow this link:

    http://www.nixblog.org/post/2008/08/12/Installation-et-configuration-de-Proftpd-sous-AIX-52

    Thanks guys for your great help.....
    • SystemAdmin
      SystemAdmin
      134 Posts
      ACCEPTED ANSWER

      Re: Chroot FTP

      ‏2012-10-03T14:37:17Z  in response to Imad77
      please i have the same problem but i didn't use Proftpd

      i need to know what is the difference bettew useronly and puseronly

      this is my file /etc/file access.ctl

      puseronly: ftpuser
      readwrite: /etc/ftpaccess
      when i log using filezela i have an empty folder and i can not create any thing
      can you help please
      • SystemAdmin
        SystemAdmin
        134 Posts
        ACCEPTED ANSWER

        Re: Chroot FTP

        ‏2012-10-04T04:21:20Z  in response to SystemAdmin
        Taken from publib link of AIX :
        The useronly: and grouponly: lines define anonymous users similar to the user anonymous in that they are not password protected. The puseronly: and pgrouponly: lines define anonymous users that are password protected.
        Note:
        For puseronly: and pgrouponly: users, passwords must be created and login must be disabled.

        Can you let me know the steps you used to create 'ftpuser'

        Thanks
        • SystemAdmin
          SystemAdmin
          134 Posts
          ACCEPTED ANSWER

          Re: Chroot FTP

          ‏2012-10-04T07:45:40Z  in response to SystemAdmin
          i used this link

          http://www.aixmind.com/?p=1094

          please using the software Proftpd, i can not log ftp using filezela, have you any idea?
          • SystemAdmin
            SystemAdmin
            134 Posts
            ACCEPTED ANSWER

            Re: Chroot FTP

            ‏2012-10-04T09:26:09Z  in response to SystemAdmin
            i used Proftpd
            but i can not connect
            please help me
            • SystemAdmin
              SystemAdmin
              134 Posts
              ACCEPTED ANSWER

              Re: Chroot FTP

              ‏2012-10-04T09:41:19Z  in response to SystemAdmin
              Can you clarify your setup please.

              AIX box : Proftpd server
              Client node : FileZilla Client

              Is this your setup ?
              • SystemAdmin
                SystemAdmin
                134 Posts
                ACCEPTED ANSWER

                Re: Chroot FTP

                ‏2012-10-04T10:37:12Z  in response to SystemAdmin
                yes this is but i can not connect
                it tell me timeout
                • SystemAdmin
                  SystemAdmin
                  134 Posts
                  ACCEPTED ANSWER

                  Re: Chroot FTP

                  ‏2012-10-04T10:52:41Z  in response to SystemAdmin
                  I hope you have done the required configuration for Proftpd anonymous user.
                  http://www.proftpd.org/docs/configs/anonymous.conf

                  Thanks
                  • SystemAdmin
                    SystemAdmin
                    134 Posts
                    ACCEPTED ANSWER

                    Re: Chroot FTP

                    ‏2012-10-04T10:59:45Z  in response to SystemAdmin
                    Request you to post your query in
                    https://lists.sourceforge.net/lists/listinfo/aixtoolbox-list

                    As Proftpd is a open source tool supported on AIX
                    • SystemAdmin
                      SystemAdmin
                      134 Posts
                      ACCEPTED ANSWER

                      Re: Chroot FTP

                      ‏2012-10-04T12:51:37Z  in response to SystemAdmin
                      i have your original problem
                      did you solved your original problem without using proftpd

                      I have an interesting issue - I am in the process of setting up a chroot jail for ftp users, so they can only access their home directory. It works fine when connecting via command line ftp, but when I connect to the AIX host via a Filezilla client, I can connect OK but the files in the directory are not visible. I can upload files to the directory without any problem, but you can't see...
                      • SystemAdmin
                        SystemAdmin
                        134 Posts
                        ACCEPTED ANSWER

                        Re: Chroot FTP

                        ‏2012-10-05T07:35:29Z  in response to SystemAdmin
                        when i install proftpd, i can not connect to server please help
                        • SystemAdmin
                          SystemAdmin
                          134 Posts
                          ACCEPTED ANSWER

                          Re: Chroot FTP

                          ‏2012-10-05T09:43:47Z  in response to SystemAdmin
                          it'is ok now with proftpd
                          but how can i autorase ftp with root account please