FTP for admin domain works, but not for ftp user

I had no problems creating the domain owner and adding sub domains. The ftp access for the domain owner works fine, but when I add a New User or FTP user for website, the access from proftpd is denied.

I read somewhere that it might be the shells, but they are all present in /etc/shells

Anything else it could be? This is diriving me crazy because I don’t want to create an admin for each domain.

Thanks.

Jeff

For the sake of it, I also tried reinstalling proftpd usig the virtualmin repo version (cenots 5).

Nada, same error. Well not really an error. Problem is that it just says login incorrect (site admin still works fine, only extra users not working)

Any advice? :slight_smile:

Well, the underlying problem is probably mentioned within the logs. Which one depends on your distro.

First, try logging in over FTP again. Then look in /var/log, and check out “messages”, “auth.log”, and/or “secure” (again, which one depends on your distro), you’ll hopefully be able to see the problem.
-Eric

I thought about that, they are in /var/log/sercure

These are the logs for 2 users: yankeeduck in the admin of the domain and he works, then I created a user jeff.yankeeduck and no luck :wink:

But problem is they say nothing special (as far as I see…):

Oct 25 21:18:26 li10-14 proftpd: Deprecated pam_stack module called from service “proftpd”
Oct 25 21:18:26 li10-14 last message repeated 2 times
Oct 25 21:18:26 li10-14 proftpd: pam_unix(proftpd:session): session opened for user yankeeduck by (uid=0)
Oct 25 21:18:26 li10-14 proftpd: Deprecated pam_stack module called from service “proftpd”
Oct 25 21:18:26 li10-14 proftpd[25079]: li10-14.members.linode.com (::ffff:82.56.181.214[::ffff:82.56.181.214]) - USER yankeeduck: Login successful.
Oct 25 20:18:26 li10-14 proftpd[25079]: li10-14.members.linode.com (::ffff:82.56.181.214[::ffff:82.56.181.214]) - Preparing to chroot to directory ‘/home/yankeeduck’
Oct 25 20:18:26 li10-14 proftpd[25079]: li10-14.members.linode.com (::ffff:82.56.181.214[::ffff:82.56.181.214]) - mod_delay/0.5: delaying for 14209 usecs
Oct 25 20:18:28 li10-14 proftpd[25079]: li10-14.members.linode.com (::ffff:82.56.181.214[::ffff:82.56.181.214]) - error setting IPV6_V6ONLY: Protocol not available
Oct 25 20:18:30 li10-14 proftpd: Deprecated pam_stack module called from service “proftpd”
Oct 25 20:18:30 li10-14 proftpd: pam_env(proftpd:setcred): Unable to open config file: /etc/security/pam_env.conf: No such file or directory
Oct 25 20:18:30 li10-14 proftpd[25079]: li10-14.members.linode.com (::ffff:82.56.181.214[::ffff:82.56.181.214]) - PAM(setcred): System error
Oct 25 20:18:30 li10-14 proftpd: Deprecated pam_stack module called from service “proftpd”
Oct 25 20:18:30 li10-14 proftpd: pam_succeed_if(proftpd:session): error retrieving information about user 0
Oct 25 20:18:30 li10-14 proftpd: pam_unix(proftpd:session): session closed for user yankeeduck
Oct 25 20:18:30 li10-14 proftpd[25079]: li10-14.members.linode.com (::ffff:82.56.181.214[::ffff:82.56.181.214]) - PAM(close_session): System error
Oct 25 20:18:30 li10-14 proftpd[25079]: li10-14.members.linode.com (::ffff:82.56.181.214[::ffff:82.56.181.214]) - FTP session closed.
Oct 25 21:19:18 li10-14 proftpd: Deprecated pam_stack module called from service “proftpd”
Oct 25 21:19:20 li10-14 proftpd[25081]: li10-14.members.linode.com (::ffff:82.56.181.214[::ffff:82.56.181.214]) - USER jeff.yankeeduck (Login failed): Incorrect password.
Oct 25 21:19:21 li10-14 proftpd[25081]: li10-14.members.linode.com (::ffff:82.56.181.214[::ffff:82.56.181.214]) - FTP session closed.

Some of those look pretty "special" to me. :wink:

I’m thinking you have a proftpd configuration from a different proftpd package–one that is broken in odd ways.

You might check to see if there’s a proftpd.conf.rpmnew file in etc, and copy that over the current proftpd.conf. See if things look a little less weird. Note the pam setup stuff looks very suspicious, to me. Also it looks like it’s trying to load some modules and use some options that aren’t sane for the ProFTPd you have installed.