SOLVED Transfer Tool: ctl_dir /root/.libnet-openssh-perl/ is not secure

Aug 7, 2012
17
2
128
cPanel Access Level
Root Administrator
When I attempt to connect to another server (using Plesk), I receive "ctl_dir /root/.libnet-openssh-perl/ is not secure".

The password is correct, as I can SSH manually.

I have tried removing "/root/.libnet-openssh-perl/" and allowing the script to re-generate it, and I have tried changing the permissions on /root/ to 500, but nothing has worked.

Please advise.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,270
463
Hello,

Can you verify which version of cPanel is installed on this system? Also, please post the output from the following commands:

Code:
stat /root/.libnet-openssh-perl
stat /root
Thank you.
 
Aug 7, 2012
17
2
128
cPanel Access Level
Root Administrator
Sorry I forgot to include the cPanel / OS version; CENTOS 6.9 standard - v68.0.26

Code:
root@web01 [~]# stat /root/.libnet-openssh-perl
  File: `/root/.libnet-openssh-perl'
  Size: 4096            Blocks: 8          IO Block: 4096   directory
Device: 823h/2083d      Inode: 11665409    Links: 2
Access: (0700/drwx------)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2018-01-22 16:44:01.928872546 +0000
Modify: 2018-01-22 16:44:01.928872546 +0000
Change: 2018-01-22 16:46:05.635794638 +0000
Code:
root@web01 [~]# stat /root
  File: `/root'
  Size: 4096            Blocks: 8          IO Block: 4096   directory
Device: 823h/2083d      Inode: 11534337    Links: 22
Access: (0550/dr-xr-x---)  Uid: ( 1002/ UNKNOWN)   Gid: (    0/    root)
Access: 2018-01-22 16:46:11.853690205 +0000
Modify: 2018-01-22 16:44:01.928872546 +0000
Change: 2018-01-22 16:46:23.162500271 +0000
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,270
463
Hello,

It looks like the UID on the /root directory is set to 1002/UNKOWN. Try running the following command to correct this:

Code:
chown root.root /root
Thank you.
 
  • Like
Reactions: DragonByte Tech

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,270
463
I'm glad to see that helped. Thank you for updating us with the outcome.