The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

anonymous FTP not access FTP dir. chdir denied

Discussion in 'General Discussion' started by scarar, Aug 29, 2016.

  1. scarar

    scarar Registered

    Joined:
    Dec 2, 2013
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Here is what I'm getting for an error using anonymous@mydomain.net:

    Status: Connecting to 45.63.11.179:21...
    Status: Connection established, waiting for welcome message...
    Status: Logged in
    Status: Retrieving directory listing...
    Command: PWD
    Response: 257 "/" is your current location
    Command: TYPE I
    Response: 200 TYPE is now 8-bit binary
    Command: PORT 10,0,0,67,218,175
    Response: 200 PORT command successful
    Command: MLSD
    Response: 150 Connecting to port 55983
    Response: 421 chdir: Permission denied
    Error: Failed to retrieve directory listing
    Status: Connection closed by server

    and also without the @mydomain.net will list:
    421 Can't change directory to /var/ftp/ [/]
     
    #1 scarar, Aug 29, 2016
    Last edited by a moderator: Aug 29, 2016
  2. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,146
    Likes Received:
    34
    Trophy Points:
    48
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hello :),

    You can not access any directory which is outside the user home directory trough FTP. If you want to access your /var directory then you need to access your server with SFTP using root user login details.
     
  3. scarar

    scarar Registered

    Joined:
    Dec 2, 2013
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    ok, ty. I had to add the default dir in my FTP client: /my_domain/public_ftp
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    I'm happy to see you were able to determine the cause of the error message. Thank you for updating us with the outcome.
     
Loading...

Share This Page