Answer the question
In order to leave comments, you need to log in
Variables set in /etc/profile.d/xxx.sh are not visible to root, how to treat?
I set variables in /etc/profile.d/xxx.sh
so that the programs are available to all users, however, when executed, it sudo название-софта
writes that it does not know about such software, without sudo
everything works fine
Use symbolic links in /usr/bin
, an option, but not convenient, you will have to create a lot of links, and at any time when updating software may be added or removed.
Where can variables be moved so that they are also available from root, and so that when updating the OS, you do not have to add a new one
Answer the question
In order to leave comments, you need to log in
try turning on the -i option to simulate login as a user, with loading profiles
sudo -i .....
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question