Skip to main content

chdir to /home/virtfs/username failed

Comments

9 comments

  • cPanelMichael
    Hello :) Please try creating /home/virtfs/$username if it does not yet exist and let us know if the issue continues:
    /scripts/update_users_jail $username
    Thank you.
    0
  • BottyZ
    Hello :) Please try creating /home/virtfs/$username if it does not yet exist and let us know if the issue continues:
    /scripts/update_users_jail $username
    Thank you.

    Hi Michael, Sorry for the late reply, I've only just seen your post (didn't get the usual email notification of a reply). The username for the account is the one that was migrated and is the only one on the server except for root. So it does already exist. Would running the script you mentioned harm the system if the username does already exist?
    0
  • cPanelMichael
    Could you verify if you are using Mod_Security, and if so, if you have enabled the OWASP ruleset? Thank you.
    0
  • BottyZ
    Hi Michael, I had mod_security enabled but no vendors such as OWASP set. I didn't realise I needed to install the OWASP since I was using mod_ruid2 which I confused for not needing any. I've just installed the OWASP now, do you think that would have been the issue? I'll monitor the logs over the next few days to see if it clears up and let you know. Thanks.
    0
  • BottyZ
    Hi again, Only had this running very briefly with the OWASP and already seeing numerous errors in the error_log such as:
    ModSecurity: Geo Lookup: Failed to lock proc mutex: Permission denied [hostname "www.HIDDEN.com"> [uri "/shop/images/ABC.jpg"> [unique_id "VriQ5y4RXxUAAAgKTEsAAAAB"> ModSecurity: Rule processing failed. [hostname "www.HIDDEN.com"> [uri "/shop/images/ABC.jpg"> [unique_id "VriQ5y4RXxUAAAgKTEsAAAAB"> ModSecurity: collection_store: Failed to access DBM file "/var/cpanel/secdatadir/ip": Permission denied [hostname "www.HIDDEN.com"> [uri "/shop/images/ABC.jpg"> [unique_id "VriQ5y4RXxUAAAgKTEsAAAAB"> ModSecurity: Audit log: Failed to create subdirectories: /usr/local/apache/logs/modsec_audit/USERHIDDEN/20160208/20160208-1258 (Read-only file system) [hostname "www.HIDDEN.com"> [uri "/shop/images/ABC.jpg"> [unique_id "VriQ5y4RXxUAAAgKTEsAAAAB"> ModSecurity: Warning. Operator EQ matched 0 at REQUEST_HEADERS. [file "/usr/local/apache/conf/modsec_vendor_configs/OWASP/rules/REQUEST-20-PROTOCOL-ENFORCEMENT.conf"> [line "283"> [id "960008"> [rev "2"> [msg "Request Missing a Host Header"> [severity "WARNING"> [ver "OWASP_CRS/3.0.0"> [maturity "9"> [accuracy "9"> [tag "Host: "> [tag "application-multi"> [tag "language-multi"> [tag "platform-multi"> [tag "attack-protocol"> [tag "OWASP_CRS/PROTOCOL_VIOLATION/MISSING_HEADER_HOST"> [tag "WASCTC/WASC-21"> [tag "OWASP_TOP_10/A7"> [tag "PCI/6.5.10"> [hostname "server.HIDDEN.com"> [uri "/"> [unique_id "VriQQS4RXxUAAAgARroAAAAJ">
    So not sure if this is even working properly, but I would hope to have not seen any errors to be honest. Are the above ok? Or are there further underlying issues with the setup??
    0
  • cPanelMichael
    I didn't realise I needed to install the OWASP since I was using mod_ruid2 which I confused for not needing any.

    Hello :) You do not have to enable this ruleset. The reason I asked is because this ruleset often conflicts with Mod_Ruid2: Mod RUID 2 and ModSecurity Thus, I suggest disabling the ruleset. Thank you.
    0
  • BottyZ
    Hi Michael, I've disabled the OWASP again and left mod_security with no vendors listed, after seeing your revised suggestion and now I'm back to my original problem in the first post. Any further thoughts? Or is this a cpanel assistance job for one of your techs to fix?
    0
  • cPanelMichael
    Feel free to open a support ticket using the link in my signature so we can take a closer look at your system. You can post the ticket number here so we can update this thread with the outcome. Thank you.
    0
  • BottyZ
    Feel free to open a support ticket using the link in my signature so we can take a closer look at your system. You can post the ticket number here so we can update this thread with the outcome. Thank you.

    Hi Michael, As requested the support ticket is as follows: Ticket ID: 7461819 Error Logs showing: chdir to /home/virtfs/username failed Hopefully, one of you experts can figure out what is wrong and fix it for me. I would be keen to know what exactly (if anything) I've set up wrong to generate this issue. Thanks.
    0

Please sign in to leave a comment.