Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'General Discussion' started by DragonByte Tech, Jan 22, 2018.

Tags:
  1. DragonByte Tech

    Joined:
    Aug 7, 2012
    Messages:
    15
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Website Owner
    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.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    41,507
    Likes Received:
    1,616
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
  3. DragonByte Tech

    Joined:
    Aug 7, 2012
    Messages:
    15
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Website Owner
    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
    
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    41,507
    Likes Received:
    1,616
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
    DragonByte Tech likes this.
  5. DragonByte Tech

    Joined:
    Aug 7, 2012
    Messages:
    15
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Website Owner
    That solved the issue, thank you very much! :D
     
    cPanelMichael likes this.
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    41,507
    Likes Received:
    1,616
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    I'm glad to see that helped. Thank you for updating us with the outcome.
     
Loading...

Share This Page