Saravana's Musings
Tuesday, June 6, 2017
sudo su to execute bash( and avoid sh)
Problem:
"sudo su" does not read /etc/bashrc and executes "sh" instead of bash
Solution:
You need to add the following lines in your /root/.bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
that's it.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment