Page 1 of 5

Additional FTP account not getting created

Posted: Tue Jul 05, 2016 10:40 pm
by elysiumservers
My main FTP accounts are working but the "add additional FTP account" is not working.

I traced the problem back to user add.

The user is not getting created.

My local vestacp is working just fine, user gets created, you can check

nano /etc/passwd

and the new additinal user ftp is created, like this:tecnogaming_testt:x:1002:1002::/home/tecnogaming/web/tecnogaming2.com:/usr/bin/rssh


But on my online vesta which is already with customers, it's not creating anything, If I check the /etc/passwd the new user is not getting created.

I cannot use proftpd either, because you're instructions to install proftpd are NOT working on debian since the mod-vroot is no longer provided on Jessie.

Can someone provide me with a hint on where to look at?

Re: Additional FTP account not getting created

Posted: Wed Jul 06, 2016 9:56 pm
by anthonyrossbach
I am having the same problem. Only fix was to delete users and make new ones, something with permissions it looks like.

Re: Additional FTP account not getting created

Posted: Wed Jul 06, 2016 9:59 pm
by anthonyrossbach
Yes, they did in fact change FTP default permissions in this update, v16. So it's really bugged up.

Re: Additional FTP account not getting created

Posted: Sat Jul 09, 2016 8:04 am
by skamasle
Hi,

I cant reproduce this error,

Can you say us more details ?

Also can you try create ftp account from cli ?

v-add-web-domain-ftp user domain ftp_account ftp_password

Re: Additional FTP account not getting created

Posted: Sun Jul 10, 2016 2:20 pm
by elysiumservers
root@cp:/usr/local/vesta/bin# ./v-add-web-domain-ftp
Usage: USER DOMAIN FTP_USER FTP_PASSWORD [FTP_PATH]
root@cp:/usr/local/vesta/bin# ./v-add-web-domain-ftp tecnogaming cinematicblog.com test test
chpasswd: (user tecnogaming_test) pam_chauthtok() failed, error:
Authentication token manipulation error
chpasswd: (line 1, user tecnogaming_test) password not changed




This started happening just after the update and now I have a customer who is complaining. Deleting and recreating the user is not an option, deleting and recreating the additional FTP account does not work, nothing works on the additional accounts since no user is being created.

I need a fix, you introduced a serious bug to a system that ws previosly working perfectly.

At least you should tell us what is it that you tweak on the FTP accounts that made this bug to appear, so we can tweak it ourselves and fix the problem.

It's been getting increasingly difficult for me to keep using this control panel or recommend it, because I'm almost out of luck when something comes up.

Also, you need to build a better FAQ for internal workings on the panel se we ourselves can find and fix bugs if we can.

Re: Additional FTP account not getting created

Posted: Sun Jul 10, 2016 3:02 pm
by elysiumservers
Here is the command run with sh -x

root@cp:/usr/local/vesta/bin# sh -x v-add-web-domain-ftp tecnogaming thetechieblog.com test4 test45
+ user=tecnogaming
+ idn -t --quiet -u thetechieblog.com
+ domain=thetechieblog.com
+ idn -t --quiet -a thetechieblog.com
+ domain_idn=thetechieblog.com
+ ftp_user=tecnogaming_test4
+ password=test45
+ HIDE=4
+ ftp_path=
+ source /usr/local/vesta/func/main.sh
v-add-web-domain-ftp: 21: v-add-web-domain-ftp: source: not found
+ source /usr/local/vesta/func/domain.sh
v-add-web-domain-ftp: 22: v-add-web-domain-ftp: source: not found
+ source /usr/local/vesta/conf/vesta.conf
v-add-web-domain-ftp: 23: v-add-web-domain-ftp: source: not found
+ check_args 4 4 USER DOMAIN FTP_USER FTP_PASSWORD [FTP_PATH]
v-add-web-domain-ftp: 30: v-add-web-domain-ftp: check_args: not found
+ is_format_valid user domain ftp_user
v-add-web-domain-ftp: 31: v-add-web-domain-ftp: is_format_valid: not found
+ is_system_enabled WEB_SYSTEM
v-add-web-domain-ftp: 32: v-add-web-domain-ftp: is_system_enabled: not found
+ is_object_valid user USER tecnogaming
v-add-web-domain-ftp: 33: v-add-web-domain-ftp: is_object_valid: not found
+ is_object_unsuspended user USER tecnogaming
v-add-web-domain-ftp: 34: v-add-web-domain-ftp: is_object_unsuspended: not found
+ is_object_valid web DOMAIN thetechieblog.com
v-add-web-domain-ftp: 35: v-add-web-domain-ftp: is_object_valid: not found
+ is_object_unsuspended web DOMAIN thetechieblog.com
v-add-web-domain-ftp: 36: v-add-web-domain-ftp: is_object_unsuspended: not found
+ grep ^tecnogaming_test4: /etc/passwd
+ check_ftp_user=
+ [ ! -z ]
+ is_password_valid
v-add-web-domain-ftp: 43: v-add-web-domain-ftp: is_password_valid: not found
+ get_domain_values web
v-add-web-domain-ftp: 50: v-add-web-domain-ftp: get_domain_values: not found
+ [ -z ]
+ shell=/sbin/nologin
+ [ -e /usr/bin/rssh ]
+ shell=/usr/bin/rssh
+ [ -z ]
+ ftp_path_a=/tecnogaming/web/thetechieblog.com
+ id -u tecnogaming
+ id -u tecnogaming
+ /usr/sbin/useradd tecnogaming_test4 -s /usr/bin/rssh -o -u 1005 -g 1005 -M -d /tecnogaming/web/thetechieblog.com
+ echo tecnogaming_test4:test45
+ /usr/sbin/chpasswd
chpasswd: (user tecnogaming_test4) pam_chauthtok() failed, error:
Authentication token manipulation error
chpasswd: (line 1, user tecnogaming_test4) password not changed
+ awk -v user=tecnogaming_test4 -F : user == $1 {print $2} /etc/shadow
+ ftp_md5=
+ [ ! -z ]
+ echo /tecnogaming/web/thetechieblog.com
+ sed s%/tecnogaming/web/thetechieblog.com%%
+ ftp_path_r=
+ [ ! -z ]
+ add_object_key web DOMAIN thetechieblog.com FTP_PATH PROXY
v-add-web-domain-ftp: 112: v-add-web-domain-ftp: add_object_key: not found
+ update_object_value web DOMAIN thetechieblog.com $FTP_USER tecnogaming_test4
v-add-web-domain-ftp: 115: v-add-web-domain-ftp: update_object_value: not found
+ update_object_value web DOMAIN thetechieblog.com $FTP_MD5
v-add-web-domain-ftp: 116: v-add-web-domain-ftp: update_object_value: not found
+ update_object_value web DOMAIN thetechieblog.com $FTP_PATH
v-add-web-domain-ftp: 117: v-add-web-domain-ftp: update_object_value: not found
+ log_history added ftp account [email protected]
v-add-web-domain-ftp: 120: v-add-web-domain-ftp: log_history: not found
+ log_event
v-add-web-domain-ftp: 121: v-add-web-domain-ftp: log_event: not found
+ exit

Re: Additional FTP account not getting created

Posted: Sun Jul 10, 2016 3:04 pm
by elysiumservers
The not found I don't know why it says that, the files are indeed there, I checked.

Re: Additional FTP account not getting created

Posted: Tue Jul 12, 2016 3:20 pm
by bruno.oliveira
Hi all,

Just updating this topic, create/delete the ftp addiotional account by cli was successfull:

Code: Select all

[root@ws bin]# sh v-add-web-domain-ftp account domain.com ftp02 passwordtest02
[root@ws bin]# sh v-delete-web-domain-ftp account domain.com account_ftp02
But, can't assign the home path when create:

Code: Select all

[root@ws bin]# sh v-add-web-domain-ftp account domain.com ftp02 passwordtest02 /home/account/web/domain.com/public_html
Error: absolute path is invalid
As showed below, the path is valid and contains files:

Code: Select all

[root@ws bin]# ll /home/account/web/domain.com/public_html
total 31464
So, there are two important points:

1 - Create and delete by cli is functional;
2 - Someone knows how to set the home path when create by cli?

Re: Additional FTP account not getting created

Posted: Tue Jul 12, 2016 8:43 pm
by joem
bruno.oliveira wrote:Hi all,

Just updating this topic, create/delete the ftp addiotional account by cli was successfull:

Code: Select all

[root@ws bin]# sh v-add-web-domain-ftp account domain.com ftp02 passwordtest02
[root@ws bin]# sh v-delete-web-domain-ftp account domain.com account_ftp02
But, can't assign the home path when create:

Code: Select all

[root@ws bin]# sh v-add-web-domain-ftp account domain.com ftp02 passwordtest02 /home/account/web/domain.com/public_html
Error: absolute path is invalid
As showed below, the path is valid and contains files:

Code: Select all

[root@ws bin]# ll /home/account/web/domain.com/public_html
total 31464
So, there are two important points:

1 - Create and delete by cli is functional;
2 - Someone knows how to set the home path when create by cli?

Code: Select all

v-add-web-domain-ftp USER DOMAIN FTP_USER FTP_PASSWORD /public_html

Re: Additional FTP account not getting created

Posted: Wed Jul 13, 2016 10:33 pm
by elysiumservers
Any update on my problem?