Community Forums
Connect with us on LinkedIn
Closed Thread
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 26
  1. #1
    Member
    Join Date
    Feb 2003
    Posts
    10

    Default System Security

    If my server is fully updated with all the RedHat Network updates and is running the newest release of Cpanel, is there anything else I can do to ensure the security of my server? Any suggestion would be great. Thanks in advance.

    Scott

  2. #2
    Member
    Join Date
    Aug 2002
    Location
    Huntington Beach, Ca
    Posts
    232

    Default

    Here are a few items I have done. A few of the items are debateable by various folks (what isn't).

    1. Turn PHP safe mode on
    2. Disable direct root login
    3. Allow only trusted users to run cron jobs by /etc/cron.allow
    4. Run chkroot daily in cron
    5. Do not give shell access
    6. Disable unused services


    Pray

  3. #3
    Member
    Join Date
    Mar 2003
    Posts
    35

    Default

    Originally posted by xsenses
    Here are a few items I have done. A few of the items are debateable by various folks (what isn't).

    1. Turn PHP safe mode on
    2. Disable direct root login
    3. Allow only trusted users to run cron jobs by /etc/cron.allow
    4. Run chkroot daily in cron
    5. Do not give shell access
    6. Disable unused services


    Pray
    I have some questions about this...
    - How do you disable direct root login? What exactly does this do?
    - "Run chkroot daily in cron" what does this do? How do I turn it on?
    - "Disable unused services" such as....?
    And again, how would I do this?


    Thanks a lot,
    Greg

    cPanel.net Support Ticket Number:

  4. #4
    Member
    Join Date
    Aug 2002
    Location
    Huntington Beach, Ca
    Posts
    232

    Default

    Originally posted by MscLimp
    I have some questions about this...
    - How do you disable direct root login? What exactly does this do?
    - "Run chkroot daily in cron" what does this do? How do I turn it on?
    - "Disable unused services" such as....?
    And again, how would I do this?


    Thanks a lot,
    Greg

    cPanel.net Support Ticket Number:
    1. To disable root login you have to edit /etc/ssh/sshd_config (not really going to do much if running cPanel/WHM - because if someone gets root and logs into WHM it is over anyway), it denies the ability to ssh into root.
    2. chkrootkit is located at chkrootkit.org and must be installed
    3. You can disable quite a few services very easily from the Service Manager in WHM
    4. Use a firewall - do a search for APF on the forums
    5. use up2date


  5. #5
    Member
    Join Date
    Feb 2003
    Posts
    62

    Default

    Turning PHP safe mode to ON will not help you. CGI scripts will still work. It's better to use open_basedir + disable_functions.

    I dont get the root login part. Just change your password peridodically and don't write it anywhere, just keep it in your head. Nobody can get direct root access via ssh unless somebody can read your mind

    cPanel.net Support Ticket Number:

    cPanel.net Support Ticket Number:

  6. #6
    Member
    Join Date
    Aug 2002
    Location
    Huntington Beach, Ca
    Posts
    232

    Default

    I know this has been argued to death in other forums, but the main point on the ssh direct login is that if you have to su to root it would take 2 password cracks and php_safe_mode on is just another added measure not that it can't be worked around.


  7. #7
    Member casey's Avatar
    Join Date
    Jan 2003
    Location
    If there is trouble, it will find me
    Posts
    2,336

    Default

    Originally posted by xsenses
    I know this has been argued to death in other forums, but the main point on the ssh direct login is that if you have to su to root it would take 2 password cracks and php_safe_mode on is just another added measure not that it can't be worked around.
    Forgive my ignorance, but how does one go about "cracking" someone else's password? If I have one good root password, why would I need two of them? I'm not arguing, I just want to know what the advantage is. If it's more secure then I think I'd like to do it.

    cPanel.net Support Ticket Number:

  8. #8
    Member
    Join Date
    Aug 2002
    Location
    Huntington Beach, Ca
    Posts
    232

    Default

    Originally posted by casey
    Forgive my ignorance, but how does one go about "cracking" someone else's password? If I have one good root password, why would I need two of them? I'm not arguing, I just want to know what the advantage is. If it's more secure then I think I'd like to do it.

    cPanel.net Support Ticket Number:
    I am no security expert by any means, but was hoping to share the things I have done and things others have done. There are brute force cracking/library scripts and if you created any easy password or a word in the dictionary admin/god/superman etc. it might be real easy just to guess it, not to mention the datacenter most likely emailed it when they setup your server. If you have to su - root you would have to break 2 accounts.


  9. #9
    Member
    Join Date
    Mar 2003
    Posts
    35

    Default

    xsenses,
    Thanks for clearing me up on how to do those.... but you didn't really mention exactly what they do...

    cPanel.net Support Ticket Number:

  10. #10
    Member
    Join Date
    Aug 2002
    Location
    Huntington Beach, Ca
    Posts
    232

    Default

    Here is a link to a good security guide:
    http://admin0.info/security/introduction.html


  11. #11
    Member Pda0's Avatar
    Join Date
    Jun 2003
    Posts
    70

    Default

    Originally posted by www-lab
    [B]It's better to use open_basedir + disable_functions.
    Can you give details on that?

    thanks

    .pd

    cPanel.net Support Ticket Number:
    Join mailing lists and forums with M2F - www.mail2forum.com
    Ingenieria de Software en Español - www.fabricadesoftware.cl

  12. #12
    Member Pda0's Avatar
    Join Date
    Jun 2003
    Posts
    70

    Default

    Originally posted by xsenses

    5. use up2date
    I thought that upcp & co did upgrade packages? up2date can harm cpanel, yes?

    .pd

    cPanel.net Support Ticket Number:
    Join mailing lists and forums with M2F - www.mail2forum.com
    Ingenieria de Software en Español - www.fabricadesoftware.cl

  13. #13
    Member casey's Avatar
    Join Date
    Jan 2003
    Location
    If there is trouble, it will find me
    Posts
    2,336

    Default

    Originally posted by Pda0
    I thought that upcp & co did upgrade packages? up2date can harm cpanel, yes?

    .pd

    cPanel.net Support Ticket Number:
    If you follow the instructions at
    http://admin0.info/security/introduction.html
    you'll be fine. Upcp does not upgrade the kernel.

    cPanel.net Support Ticket Number:

  14. #14
    PbG
    PbG is offline
    Member PbG's Avatar
    Join Date
    Mar 2003
    Posts
    238

    Default Highly recommended!

    Minimally I suggest everyone update their pacakges and errata.
    Disable Telnet
    Disable compiler
    Terminate SSH for all except root/trusted customers
    Change root password frequently


    The following site provides very good instructions on doing all of this. Remember kernel upgrades require a reboot. Graceful as it may be . . . cheers!

    Originally posted by xsenses
    Here is a link to a good security guide:
    http://admin0.info/security/introduction.html
    cPanel.net Support Ticket Number:

  15. #15
    Member casey's Avatar
    Join Date
    Jan 2003
    Location
    If there is trouble, it will find me
    Posts
    2,336

    Default Re: Highly recommended!

    Originally posted by PbG

    Change root password frequently



    cPanel.net Support Ticket Number:
    Out of curiosity, why should the root password be changed frequently? Is there a chance that the password might get leaked physically (since I don't believe in psychic abilities)?

    cPanel.net Support Ticket Number:

Closed Thread
Page 1 of 2 1 2 LastLast
Similar Threads & Tags
Similar threads

  1. Security of system executables e.g. in /usr/bin/
    By jack01 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 07-01-2009, 08:06 AM
  2. Improving System Security On CPanel Systems
    By billau in forum cPanel and WHM Discussions
    Replies: 11
    Last Post: 10-12-2004, 07:28 AM
  3. new security voulnarabilities on Linux system
    By rustelekom in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 12-08-2003, 11:27 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube