How to make an alias in root permament?

1

I did with an especific user, but i can't do that when the user is root (I know user root is not recomendable to use, but in my current job security policies are null in some systems and we want to make an easy way for a normal user to execute a program) when i restart the tty or the machine all changes are rolled back, and i wanted to find .bash_rc for root but it doesn't exist.

Francisco Tapia

Posted 2015-06-26T17:32:29.967

Reputation: 2 383

Answers

1

There is a system wide bashrc which can be found in /etc. Making a change in the system wide bashrc will make it available for all. It is usually located at /etc/bash.bashrc Do not forget to source it. . /etc/bash.bashrc

sajinmp

Posted 2015-06-26T17:32:29.967

Reputation: 258

ok, it works big thx. – Francisco Tapia – 2015-06-26T17:50:49.027

1Glad it helped :) – sajinmp – 2015-06-26T17:53:59.543