I'm studying the scripts that run before a bash shell started by the user starts.
As far as I understand, the order is:
- /home/username/.bashrc (modifiable by user)
- /etc/bashrc (modifiable by root)
- /etc/profile.d (modifiable by root)
Does this mean that the user could change .bashrc to prevent the new shell from running bashrc and profile.d? Isn't this a security problem if the admin wanted to run some script to prevent the user from doing something when a new shell is instantiated?