I added these lines to /etc/profile
and when I log in as a regular user the path is modified. When I log in as root too.
However, if I am logged in as a regular user and if from a terminal I log in as root (su root), the path doesn't contain /usr/realtime/bin anymore! Or if I try to call one of the scripts in /usr/realtime/bin with sudo, it's not found.
I tried to modify /root/.bash_profile but that leads to the same result.
Can anybody explain?
And then, how should I do to be able to sudo a script in that directory?
PS: I am working with Ubuntu, latest release