Where shall i put an export for all the users?
Hello,
i would like to do the following for each user each time it logs in. export DISPLAY=*:10.0 Some users don't user bash, so I need a different place than bash_profile where to put it. Shall I put it on /etc/profile or there is another place to put that kind of stuff? May be /etc/rc.local? many thanks. |
You can put in any place, but it should be called after the machine boots up.
I would recommend /etc/bash_profile, If you are planning to put in some other file named file1. Run this command from some where else (source file1). |
correct me if I'm wrong, but bash_profile is executed only if the user goes with bash shell.
if the user has on its /etc/passwd zsh as the default shell it will not execute bash_profile. Am I correct? |
Yes .. it will be used only for bash.
|
Please check this:
http://www.linuxfromscratch.org/blfs...s/profile.html Can we put this under /etc/profile ? |
Yes, by now is where i've put my line, but I think(not sure) that etc/profile it is only for bash purposes.
|
/etc/profile is common for all.
Check the booting scripts. |
Quote:
|
All times are GMT -5. The time now is 05:21 PM. |