Unable to "su - user" , throws an error "bash: /root/.bash_profile: Permission denied"
Issue
-
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
Environment
- Red Hat Enterprise Linux 8
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.