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.

Unexpected security changes

Discussion in 'Security' started by s37n, Apr 28, 2014.

  1. s37n

    s37n Active Member

    Joined:
    May 22, 2011
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    6
    after setting up my server, I installed csf, logwatch, and chkrootkit.

    after configuring all three, I created my main account with root privileges, and disabled root logins for SSH.

    when I tried to SU with my new account, I got the following error:
    su: cannot set user id: Resource temporarily unavailable

    after searching google, I found that making the following changes fixed the issue:
    Edit limit.conf below or change if needed.
    #vi /etc/security/limit.conf
    #### add/change on these line below:
    * soft nproc 2047
    * hard nproc 16384
    * soft nofile 2048
    * hard nofile 65536

    my question...
    which one of the programs I installed could have made these changes? I'd like to know, so I don't make the same mistake again, as I've never had this problem in the past, so it has to be something I did differently this time around.

    thanks in advance for any assistance you may provide,
    7
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Are you sure it was one of those third-party applications that modified /etc/security/limit.conf and it was not just the default settings for those values? You could test this by installing each application one at a time and seeing what changes are made.

    Thank you.
     
  3. s37n

    s37n Active Member

    Joined:
    May 22, 2011
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    6
    i guess that's possible, just haven't ever ran across it before, and this is the 3rd server I've setup with this host. It is the first time I've installed centos 6 (64-bit), so maybe there's some differences within the OS.

    it's not really a big deal, just like to try and educate myself a little when "strange" things come up
     
Loading...

Share This Page