Unable to "su - user" , throws an error "bash: /root/.bash_profile: Permission denied"

Solution Verified - Updated -


  • User is unable to login through user using su command after upgrading the system from RHEL 7 to RHEL 8. Giving below error-

    [root@example ~]# su - user
    Last login: Mon Apr 10 08:54:19 PDT 2023 on pts/0
    -bash: /root/.bash_profile: Permission denied
    -bash-4.4$ logout
    -bash: /root/.bash_logout: Permission denied


  • Red Hat Enterprise Linux 8

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content