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!

Can't edit .bash_profile

Discussion in 'General Discussion' started by Finley Ave, Jan 6, 2007.

  1. Finley Ave

    Finley Ave Active Member

    Joined:
    Feb 28, 2004
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    San Ramon, CA
    When I try to edit, rename, or change permissions for root .bash_profile, I get permission denied. The permissions showing are 644, owner and group is root. I have this problem only recently on both my cpanel boxes, but not on a non-cpanel box. Any help is appreciated.
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    You've probably chattr'd the file (or installed a script that did so). You can check with:

    lsattr .bash_profile

    If it's not all dashes then you need to remove the attribute. It's probably immutable (i), so to remove that you would:

    chattr -i .bash_profile
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Finley Ave

    Finley Ave Active Member

    Joined:
    Feb 28, 2004
    Messages:
    37
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    San Ramon, CA
    Thanks, that did it.
     
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