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!

CSH script is not running for a non "cpanel created" user

Discussion in 'General Discussion' started by yoachan, Aug 7, 2011.

  1. yoachan

    yoachan Well-Known Member

    Joined:
    Jan 10, 2010
    Messages:
    65
    Likes Received:
    0
    Trophy Points:
    56
    Dear all,

    As I did WHM upgrade few days ago, I just notice even weirder cases...
    After strangely I can't set my MySQL query_cache, now all my custom backup script which is CSH scripts are fails to run -- which used to be fine before upgrade.
    I did test by making just a simple hello world

    Code:
    #!/bin/csh
    echo "Hello World"
    
    and it shows nothing. Really nothing.

    Code:
    admin@machine [/home/admin]# helloworld.csh
    admin@machine [/home/admin]# 
    
    Out of curiosity, I tried to run the script with root user, and it runs like a charm. And when I tried that script with a cpanel created user, the script works too.
    As a note, "admin" user is a non-cpanel user. It was created using regular shell command for it's only a maintenance account. Not an account with a domain, etc, so we decided to create "admin" without cpanel.
    So my question is how can I re-enable csh script for my "admin" account?

    this after-upgrade thing really makes me devastated....
    It's just the second issue from all three issues that we currently found after WHM upgrade.... :(

    Any help appreciated.
    Regards,

    Yoachan
     
    #1 yoachan, Aug 7, 2011
    Last edited: Aug 7, 2011
  2. yoachan

    yoachan Well-Known Member

    Joined:
    Jan 10, 2010
    Messages:
    65
    Likes Received:
    0
    Trophy Points:
    56
    I've search for file .cshrc, .login, .history but no luck....

    Can anyone help? What configuration changes that WHM made that make csh script no longer available for my non-cpanel user???
     
  3. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,608
    Likes Received:
    32
    Trophy Points:
    238
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    You might try opening up a ticket. Without access to your machine, it's difficult to say what changes were made whether by cPanel or something else. Tickets can be opened using WHM > Support Center > Contact cPanel or via the link in my signature.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. yoachan

    yoachan Well-Known Member

    Joined:
    Jan 10, 2010
    Messages:
    65
    Likes Received:
    0
    Trophy Points:
    56
    Dear Tristan,

    Thanks for your reply.
    I'll say case closed.
    I just got a helping hand from nearby forum.

    It really is a cpanel bug.
    I'll post the solution here, in case anyone suffering same issue with me.
    And I'm pretty much sure that I'm not the only one....

    from: [SOLVED] disable/enable C-Shell Script (CSH) for certain user

    Regards,

    Yoachan
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice