0
votes
1answer
60 views

check as a root if a special path set

How do I check as a root if a special path set? This command sudo echo $ANDROID_SDK_HOME will show the path's value for a normal user and not for a root.
2
votes
1answer
551 views

Shared library not loading. Loading only under root

I have an executable that requires a shared library that resides in /opt/... folder. I have included the path in LD_LIBRARY_PATH under /etc/environment and updated it using source /etc/environment. ...
1
vote
2answers
1k views

Why the value of $PATH is different for root and normal user?

for normal user I get : /usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/monty/google_appengine which is actually the ...
14
votes
3answers
39k views

How to configure ADB access for Android devices?

I'm using Ubuntu 12.10 and I have installed Android SDK, set it's path in my user .bashrc and it works. The problem is that my phone requires adb to be ran by root for permissions, but running adb ...
8
votes
2answers
7k views

How do I set persistent environment variables for root?

To create persistent environment variables, I add the script file to /etc/profile.d directory, for example: # my script export MY_VAR=var_value This works properly for current user: ...
3
votes
2answers
333 views

Environment variables in motd not working

I’m trying to send user login logs to my email with the users name and location. After making the script I found that environment variables can’t run in this script, I’m hoping that someone out there ...