Additional FTP account not getting created

Questions regarding the FTP Server
vsFTPd, ProFTPd
elysiumservers
Posts: 19
Joined: Wed May 11, 2016 8:13 pm

Additional FTP account not getting created

Postby elysiumservers » Tue Jul 05, 2016 10:40 pm

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?

anthonyrossbach
Posts: 19
Joined: Thu May 21, 2015 6:00 am

Re: Additional FTP account not getting created

Postby anthonyrossbach » Wed Jul 06, 2016 9:56 pm

I am having the same problem. Only fix was to delete users and make new ones, something with permissions it looks like.

anthonyrossbach
Posts: 19
Joined: Thu May 21, 2015 6:00 am

Re: Additional FTP account not getting created

Postby anthonyrossbach » Wed Jul 06, 2016 9:59 pm

Yes, they did in fact change FTP default permissions in this update, v16. So it's really bugged up.

skamasle
Posts: 355
Joined: Mon Feb 29, 2016 6:36 pm

Re: Additional FTP account not getting created

Postby skamasle » Sat Jul 09, 2016 8:04 am

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

elysiumservers
Posts: 19
Joined: Wed May 11, 2016 8:13 pm

Re: Additional FTP account not getting created

Postby elysiumservers » Sun Jul 10, 2016 2:20 pm

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.

elysiumservers
Posts: 19
Joined: Wed May 11, 2016 8:13 pm

Re: Additional FTP account not getting created

Postby elysiumservers » Sun Jul 10, 2016 3:02 pm

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 tecnogaming_test4@thetechieblog.com
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

elysiumservers
Posts: 19
Joined: Wed May 11, 2016 8:13 pm

Re: Additional FTP account not getting created

Postby elysiumservers » Sun Jul 10, 2016 3:04 pm

The not found I don't know why it says that, the files are indeed there, I checked.

bruno.oliveira
Posts: 1
Joined: Tue Jul 12, 2016 2:31 pm

Re: Additional FTP account not getting created

Postby bruno.oliveira » Tue Jul 12, 2016 3:20 pm

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?

joem
Posts: 373
Joined: Thu Nov 13, 2014 8:33 am
Location: New York
Contact:

Re: Additional FTP account not getting created

Postby joem » Tue Jul 12, 2016 8:43 pm

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

elysiumservers
Posts: 19
Joined: Wed May 11, 2016 8:13 pm

Re: Additional FTP account not getting created

Postby elysiumservers » Wed Jul 13, 2016 10:33 pm

Any update on my problem?


Return to “FTP Server”



Who is online

Users browsing this forum: No registered users and 1 guest