Warum werden nach sudo -i weder /root/.bashrc noch /root/.profile ausgeführt?

Warum werden nach sudo -i weder /root/.bashrc noch /root/.profile ausgeführt?

Ich habe export PATH="$PATH:/opt/local/bin"in /root/.bashrcund /root/.profile(sonst nichts in /root/.profile) und /bin/bashist die Login-Shell für rootin /etc/passwd. Doch das Aufrufen sudo -i(das gemäß man sudoeine Login-Shell startet und ausgeführt werden sollte ~/.profile) führt dazu /opt/local/bin, dass PATHgemäß von fehlt echo $PATH.

BEARBEITEN: Das bashexplizite Aufrufen führt /root/.bashrczur Quellenangabe.

Die Ausgabe von sudo grep 'export PATH=' /root/.bashrcist

export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting
export PATH="$PATH:/opt/local/bin" # MacPorts

/etc/sudoers(99 % sicher, dass ich nichts geändert habe):

Defaults        env_reset
Defaults        mail_badpass
Defaults        secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
root    ALL=(ALL:ALL) ALL
%admin ALL=(ALL) ALL
%sudo   ALL=(ALL:ALL) ALL

verwandte Informationen