I have a rhel 7 server that users will be connecting to, and I created ALL the users/groups then realize I needed to add a command to /etc/skel/.bashrc such that it executes upon login, but this doesn't seem to apply to the users I've already created. I created a new user and the commands execute upon logging in, just not for the existing users. Is there a way to update/force this upon existing users?
Don't add the command to the skeleton .bashrc. Instead, put it in /etc/profile, which will be read upon startup for all interactive login (bash) shellsand non-interactive (bash) shells invoked with --login.
Even better (thanks, @glennjackman!) is to add a link in /etc/profile.d that ends with
.sh with the necessary command.