1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Need help with my VPS...

Discussion in 'General Scripting Chat' started by IMpossible, Aug 8, 2012.

  1. IMpossible

    IMpossible Supreme Member

    Joined:
    Apr 15, 2012
    Messages:
    1,338
    Likes Received:
    302
    Occupation:
    Internet Marketing Guru
    Location:
    Somewhere on earth
    Don't know where to put it so I put it here... Hope you guys can help me asap. Appreciate that!
    I'm using a VPS with CentOS 5,
    I installed ProFTPd on it, when I connect via filezilla and try to upload stuff, or anything else, it says "Error 503: Permission denied".
    Any idea guys?
     
  2. Untouchable

    Untouchable Supreme Member

    Joined:
    Mar 22, 2012
    Messages:
    1,345
    Likes Received:
    1,173
    Location:
    Canada
    Recheck your FTP details. Double-Check username/password.
     
    • Thanks Thanks x 1
  3. toosmooth

    toosmooth Registered Member

    Joined:
    Feb 24, 2012
    Messages:
    77
    Likes Received:
    36
    Location:
    canada
    check the file permissions on what ever folder you are uploading to. i think you need to change the permissions to 777 if i am not mistaken
     
    • Thanks Thanks x 1
  4. roamer

    roamer Power Member

    Joined:
    Dec 2, 2008
    Messages:
    500
    Likes Received:
    479
    Occupation:
    Gfx designer, vfx and mgfx
    Location:
    plɹoʍ ǝɥʇ punoɹɐ ƃuıɯɐoɹ
    Maybe check user's credentials/directory permissions?.

    Edit: What the user above said. Took a bit longer for me to reply I guess. Check your tmp's directory permissions as well.
     
    • Thanks Thanks x 1
  5. zkozi

    zkozi Registered Member

    Joined:
    May 22, 2011
    Messages:
    54
    Likes Received:
    56
    check your conf file

    Code:
    <Directory> /home/ftp/upload/>
    Umask 022 022
    AllowOverwrite on
        <Limit READ RMD DELE>
              DenyAll
            </Limit>
    
            <Limit STOR CWD MKD>
              [B]AllowAll[/B]
            </Limit>
    </Directory>
    check also that your upload directory have 777 rights.
     
    • Thanks Thanks x 1
  6. SicKk

    SicKk Newbie

    Joined:
    Jan 23, 2012
    Messages:
    19
    Likes Received:
    5
    add your user name to the group which the folder belongs to and you shlould be fine.
     
    • Thanks Thanks x 1
  7. IMpossible

    IMpossible Supreme Member

    Joined:
    Apr 15, 2012
    Messages:
    1,338
    Likes Received:
    302
    Occupation:
    Internet Marketing Guru
    Location:
    Somewhere on earth
    I'm currently connecting by root (I know I shouldn't, it's a security risk) and I got my website in /var/www/html
    However, whatever I do won't work, even if I try to change the permissions of let's say the html folder. Says permission denied. Can you guys please explain me how I change the /tmp/ folder with ssh commands?
     
  8. Zapdos

    Zapdos Power Member

    Joined:
    Oct 22, 2011
    Messages:
    597
    Likes Received:
    708
    Location:
    Eastern North Carolina
    chmod for changing permission levels
    chgrp for changing owner/group
     
    • Thanks Thanks x 1
  9. SicKk

    SicKk Newbie

    Joined:
    Jan 23, 2012
    Messages:
    19
    Likes Received:
    5
    do you mean to change your actual upload folder to /tmp/ ? btw, you can use WinSCP to upload via ssh.
     
    • Thanks Thanks x 1
  10. IMpossible

    IMpossible Supreme Member

    Joined:
    Apr 15, 2012
    Messages:
    1,338
    Likes Received:
    302
    Occupation:
    Internet Marketing Guru
    Location:
    Somewhere on earth
    Do you mean I can screw FTP, remove my ftp server and just you WinSCP?
     
  11. SicKk

    SicKk Newbie

    Joined:
    Jan 23, 2012
    Messages:
    19
    Likes Received:
    5
    yep :) I dont have on any of my dedicated servers a ftp server running. it's going to take a bit longer to transfere data to the server because the port is secure.
     
    • Thanks Thanks x 1
  12. Zapdos

    Zapdos Power Member

    Joined:
    Oct 22, 2011
    Messages:
    597
    Likes Received:
    708
    Location:
    Eastern North Carolina
    Or get Filezilla. Then you can set the login type to SFTP (SSH FTP) and login as root/another SSH account. Much safer than standard FTP as you can use private keys, IP Whitelisting etc.
     
    • Thanks Thanks x 1
  13. devnull

    devnull Registered Member

    Joined:
    Aug 25, 2010
    Messages:
    55
    Likes Received:
    8
    Just switch to SFTP, you'll most likely fix your permissions issues as well as eliminating a service which could be hacked someday.
     
    • Thanks Thanks x 1
  14. IMpossible

    IMpossible Supreme Member

    Joined:
    Apr 15, 2012
    Messages:
    1,338
    Likes Received:
    302
    Occupation:
    Internet Marketing Guru
    Location:
    Somewhere on earth
    Thanks for all your help guys. Appreciate that!