ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Well, as I understand, whenever we start a terminal the .bashrc is executed and it can be like this:
# .bashrc
# User specific aliases and functions
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
And the bashrc executes the *.sh files in /etc/profile.d.
I have done a configure.sh that I want to be executed for all the users when they open a terminal, but if comes out that it is only executed for the root.
Does someone know why?, and if it isn't the way,
how can I do to make work the configure.sh for all the users when they log in?
Could you maybe post the Configure.sh script so we could look at it? Maybe you are making calls to programs or scripts outside of the users path (such as programs in /sbin or /usr/sbin).
If you don't want it *executed* but only *available* to ppl IMO add it to /etc/profile (which is mode 0644, not 755, btw):
if ! echo $PATH | /bin/grep -q "/usr/lib/info" ; then
PATH="$PATH:/usr/lib/info"
fi
# Only export DATA_PATH if your app *needs* the variable in the env
# DATA_PATH=/usr/lib/info
# then add it to the export line:
# export <the other declarations> DATA_PATH
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.