Password resets automatically due to cpanel script /scripts/upcp

jana

Registered
Dec 16, 2005
2
0
151
We had created a ftp account using useradd with root privilage.Password
for that ftp account gets reset automatically.On checking we have found
the reason for the same.Looks like "!!" is added before the password
field in /etc/shadow. This is being added at 00:46 hours which is same
as the time the cpanel script "/scripts/upcp" is running every day. Is
there a way to tell cpanel that the ftp account created using useradd
is a valid id?.

Thanks.
Jana
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,453
31
473
Go on, have a guess
You should never ever allow FTP into root. If you need FTP functionality as a root user, you should use SFTP (FTP over SSH) or SCP.
 

jana

Registered
Dec 16, 2005
2
0
151
Ftp account created with root privilage can login through SFTP only.My problem is password for that account gets reset automatically after the cpanel script /scripts/upcp executes in the server.It just prefixes !! to tha password of that account in the shadow file.Is there any way to tell cpanel that account created through useradd utility is a valid account.

Thanks
Jana