Koozali.org: home of the SME Server

FTP access denied

Offline meelis

  • ****
  • 112
  • +0/-0
FTP access denied
« on: June 11, 2013, 09:10:10 AM »
My ftp not working, i can use only SCP protocol (winscp), if i try connect width ftp i see error "access denied". Server manager under remote access enabled ftp access to? SCp protocol fine  but WordPress needs ftp or sftp.
This my ftp settings:
ftp=service
    DisableAnonymous=yes
    LoginAccess=public
    TCPPort=21
    access=public
    status=enabled


Offline meelis

  • ****
  • 112
  • +0/-0
Re: FTP access denied
« Reply #1 on: June 11, 2013, 10:03:10 AM »
I installed vsftpd, but if run command  /etc/init.d/vsftpd  not started. Have anyone get work this?

Offline mmccarn

  • *
  • 2,652
  • +10/-0
Re: FTP access denied
« Reply #2 on: June 11, 2013, 02:35:36 PM »
ftp on SME works (or always has for me), but still passes user login information in plain text.

The devs have been hoping to remove ftp from the base  since 2006, or re-work how SME handles it: Bug 717

If you still want to use ftp:
Anyone listed in /etc/ftpusers will be denied ftp access.  By default this includes 'root' and any groups you have created in server-manager (which also denies access to the members of those groups).

You can get a server-manager panel for configuring ftp users and chroot paths by installing Remoteuseraccess (but search the forums and bugzilla for any recent reports of problems before you install).

As for why things aren't working, check your log files to see if you're getting any useful error message -
/var/log/messages
/var/log/ftp/*
/var/log/secure

Offline meelis

  • ****
  • 112
  • +0/-0
Re: FTP access denied
« Reply #3 on: June 12, 2013, 07:03:16 AM »
I tried chmod 0777 but nothing, i tried login as root, nothing?
/var/log/messages
Jun 12 07:59:43 www proftpd[4200]: 192.168.4.2 (192.168.4.30[192.168.4.30]) - FTP session opened.
Jun 12 07:59:43 www proftpd[4200]: 192.168.4.2 (192.168.4.30[192.168.4.30]) - FTP session closed.
/var/log/ftp/*
-bash: /var/log/ftp/@400000004e2d2d25059eca14.u: Permission denied
/var/log/secure
-bash: /var/log/secure: Permission denied


Offline newburns

  • *
  • 345
  • +0/-0
  • A good plumber, noob developer
    • Mt. Rose MEdia
Re: FTP access denied
« Reply #4 on: June 15, 2013, 06:53:31 PM »
If you still want to use ftp:
Anyone listed in /etc/ftpusers will be denied ftp access.  By default this includes 'root' and any groups you have created in server-manager (which also denies access to the members of those groups).

I personally use remoteuseraccess, and it allows you to change a user to sudo access, so no need to login as root. Also, I don't think you can login as root no matter what. I've tried deleting the user from /etc/ftpusers, but it still didn't work. But it's not even worth trying now that you can assign sudo to any user.

I use it a lot when I purchase a web app that needs troubleshooting by the developer.
You can login as root, however, for SFTP
SME 8.0
Quad 6600
8gb DDR2 800
8 TB RAID 5
Dual Gigabit NIC
I Still Don't KNOW WHAT I AM DOING. Please, don't assume I know anything about Linux or Centos, I just know hardware