I have an embedded platform running an Arago linux distribution. Right now the only "user" is root
but there will eventually be others, but I don't know how many or what user IDs they will have.
Every user of this system must have a particular environment variable exported in order for the GUI to work correctly. I found that if I created and then added the export command to /home/root/.profile
it is set correctly for root
.
Where should I place the command such that it is exported for every (current and future) user of the system?
Note: On my system, at start up there were no files present in /home/root
, I added .bash_profile
but that didn't work, then I added .profile
and that did work. I thought I might have a dash shell because of that, but when I check /bin/sh
it points to bash
... so I tagged both.
/etc/bashrc
or/etc/profile.d/...
– Eddy_Em Feb 13 '14 at 19:57/etc/bashrc
doesn't exist, but/etc/profile.d/
does. There's a couple of shell scripts in there. I take it I just add another one that does anexport
and that will be autorun? – Mike Feb 13 '14 at 19:59~/.bashrc
. But you can replacebash
by a script that will run bash with needed environment. – Eddy_Em Feb 13 '14 at 20:11~/.profile
, that doesn't solve my problem because I need this command done for *all current and future users*, which is why it needed to be done in the/etc/profile.d/
area – Mike Feb 14 '14 at 15:05