Me and a friend of mine are working through RHCSA together and we stumbled on something neither of us fully understands. This is the way we think it works and are wondering if it's correct.
When you login with a text-based, interactive login, the shell obtains the settings from
~/.bash_profile (.profile in Debian?).
Here's where we get confused. Any subshell that spawns from that session has the same settings as the parent (IE: What it got from
~/.bash_profile ? ) Or does it basically forget all those settings and only inherit from
when you login via X Windows is that a shell?
Is it just a session manager with its own special settings? Or does it also inherit from /etc/profile?
If I open a GUI application within X windows, where is it inheriting permissions from?