“-bash: /root/.bashrc: Permissão negada” ao efetuar login

4

Eu tenho este servidor rodando o Centos 7. Toda vez que faço login (remotamente ou localmente) com todos os usuários, recebo um erro. Se eu logar como root eu recebo

-bash: /root/.bashrc: Permission denied

Se eu fizer login como usuário normal, obtenho

-bash: /home/normal_user/.bashrc: Permission denied

A permissão para o .bashrc é

-rw-r--r--.  1 root root   176 Dec 29  2013 .bashrc

E seu conteúdo é

# .bashrc

# User specific aliases and functions

alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'

# Source global definitions
if [ -f /etc/bashrc ]; then
        . /etc/bashrc
fi

Não consigo descobrir o que está acontecendo. Além disso, tudo está funcionando como pretendido.

EDITAR: @terdon

[root@dmbi-va ~]# grep -F .bashrc /root/.profile /root/.bash_profile /root/.bash_login /etc/profile /etc/bashrc
grep: /root/.profile: No such file or directory
/root/.bash_profile:if [ -f ~/.bashrc ]; then
/root/.bash_profile:    . ~/.bashrc
grep: /root/.bash_login: No such file or directory

@roaima @ikkachu

[root@dmbi-va ~]# ls -Zld /etc /etc/bashrc .bashrc
-rw-r--r--.   1 system_u:object_r:admin_home_t:s0 root root  176 Dec 29  2013 .bashrc
drwxr-xr-x. 139 system_u:object_r:etc_t:s0       root root 8192 Jun 21 09:37 /etc
-rw-r--r--.   1 system_u:object_r:etc_t:s0       root root 2835 Aug 12  2015 /etc/bashrc
    
por Crysis85 21.06.2016 / 10:26

0 respostas

Tags