Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

When I want to launch some applications from root user it alerts me that it may not be run as root and i need to log in as normal user. For example for Google Chrome or Glob database visualization. Why it says so and how can I enable it?

share|improve this question
    
I can't understand: Are you trying to enable the application being run as root, or are you trying to enable the warning fro every application? –  hexafraction Oct 17 '12 at 19:07
    
I would like to run this programs from root –  torayeff Oct 18 '12 at 5:40
1  
This is not recommended, for security reasons as in my answer. –  hexafraction Oct 18 '12 at 10:29
    
even if it is not recommended how can I enable it –  torayeff Oct 19 '12 at 17:24
    
Please see edits to my post. You can't unless you either remake the program using the existing source, or find a configuration option to disable this check. –  hexafraction Oct 19 '12 at 19:19
add comment

2 Answers

This is mainly for security reasons. Software with root access can do anything on your system if an attacker manages to get it to execute arbitrary code, which is a common attack. A malicious user can run apt-get, change your passwords file keeping you from logging in, or worse, wipe your hard disk and destroy all traces of your data, possibly beyond the help of ext4undelete or Photorec. As a limited user, any malicious code will only be able to do what that user can do. Since sudo requires a password at runtime, the malicious script cannot get it.

Also, if you run a program as a normal user with username username, then any data con configuration is stored in a subdirectory of /home/username. When you try to run it as root, it looks for and places config files in /root, where they won't be seen when you run the program as a normal user. This can cause user frustration if a user unwittingly does this.

In order to enable this on a program that does not allow this, you have two options:

  • Find a command-line switch or configuration file that allows you to do this. This may not work on some programs, and is different for every one.

  • Recompile the program after editing the source. You must remove the check for the user. This is very difficult and cumbersome.

As stated, there is not much you can do if the program does not have an option for this.

share|improve this answer
add comment

It was in plane English .If you can not understand words with out capitals and full stops .How the hell you cope using a terminal ? Ubuntu was about helping new user,s not no more its all about putting user,s down .all I see is sarcastic comments to user,s asking for help .

share|improve this answer
    
I have no idea how this post ended up in this post .my post was a answer to a user a bout bios and settings –  user49102 Feb 6 at 12:43
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.