Community Forums
Connect with us on LinkedIn
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Oct 2010
    Location
    Brasil
    Posts
    17

    Default Restrict Root Login

    I've wrote a module which restrict root logins only to allowed ip addresses using the Security Policy framework. Where is the best place to share it?

    Regards,
    Ruy Rocha

  2. #2
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Restrict Root Login

    This can already be done in WHM > Host Access Control area which writes to /etc/hosts.allow file. What difference does this module have over that behavior for sshd?
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  3. #3
    Member
    Join Date
    Oct 2010
    Location
    Brasil
    Posts
    17

    Default Re: Restrict Root Login

    It's valid only for WHM and root account like the 'AllowUsers root@x.x.x.x' directive for sshd. Using host access control would be fine for dedicated servers, but what about a shared server? We cannot list every permitted address. Let me show you: TNT root password is 3Y6Nn5CW44bY0F?5F}gHoWDy:KFzAGtp and you cannot access it, please try: https://tnt.ruyrocha.com:2087/login/?user=root&pass=3Y6Nn5CW44bY0F?5F}gHoWDy:KFzAGtp

    You IP address isn't allowed to login but mine. With that module we can work only with root account and WHM app.

    Am I in the right section? If I cannot post a direct link, can I send you via PM?

    Regards,
    Ruy Rocha

  4. #4
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Restrict Root Login

    This wouldn't be a feature request specifically but a module you want to provide. You'd probably want to post this in the Security forum instead. If you want me to move the thread there, I could do that.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  5. #5
    Member
    Join Date
    Oct 2010
    Location
    Brasil
    Posts
    17

    Default Re: Restrict Root Login

    Please close this thread, I'll post there. Thank you!

Similar Threads & Tags
Similar threads

  1. Restrict Root Login
    By ruyrocha in forum Security
    Replies: 14
    Last Post: 05-02-2012, 04:03 PM
  2. Restrict Features to root user
    By JTZEnterprise in forum New User Questions
    Replies: 6
    Last Post: 04-10-2009, 01:24 PM
  3. Replies: 2
    Last Post: 09-29-2006, 12:27 PM
  4. how to change root login user to other for Cpanel WHM login page?
    By onnetsupport in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 06-07-2006, 09:21 AM
  5. SFTP to root files with root login disabled; is su or sudo possible?
    By srjonah in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 06-12-2004, 02:37 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube