Display Variable

Asked by Chris Z

Running Jaunty on a single, personal laptop. When I log in as normal user, then su- so I can install a database I get a DISPLAY error message (see my steps below)

root@czlt01:/opt/server# ./db2setup

DBI1190I db2setup is preparing the DB2 Setup wizard which will guide

      you through the program setup process. Please wait.

The DISPLAY variable is not set properly. Ensure that the DISPLAY variable is set properly and that permissions are set properly to open windows on the display specified, then rerun the command.

root@czlt01:/opt/server#

Tried
root@czlt01:/# DISPLAY=czlt01:0
root@czlt01:/# export DISPLAY
but no luck.

Reading about xauth, on the web, but seems like there might be a simpler way that is specific to Ubuntu 9.04.

Thank you kindly for any recommendations.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

try running the command as your normal user using sudo

as your user:

cd /opt/server; sudo ./db2setup

I do not recommend yuo use su as you ecome root rather than your user with elevated priveledges. If you have enabled the root account I strongly suggest you disableit for security reasons.

Running it as your user should give a different result. Let us know how you go.

Revision history for this message
Chris Z (chris-zampogna) said :
#2

Thank you. I would like to try this, but have one more question... The
database installation documentation makes a big deal out of the difference
between a root and a non-root installation. Will your code produce a root
or non-root install of db2?

Since this is my personal laptop, and I'm the only one who uses it, not sure
I'm so concerned about security issues working as root... and if I mess
something up I can always reinstall and start over :)

On Thu, Jul 2, 2009 at 5:02 AM, actionparsnip <
<email address hidden>> wrote:

> Your question #75875 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/75875
>
> Status: Open => Answered
>
> actionparsnip proposed the following answer:
> try running the command as your normal user using sudo
>
> as your user:
>
> cd /opt/server; sudo ./db2setup
>
> I do not recommend yuo use su as you ecome root rather than your user
> with elevated priveledges. If you have enabled the root account I
> strongly suggest you disableit for security reasons.
>
> Running it as your user should give a different result. Let us know how
> you go.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/ubuntu/+question/75875/+confirm?answer_id=0
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+question/75875
>
> You received this question notification because you are a direct
> subscriber of the question.
>

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

you will install it as your user but with elevated priveledges y using sudo. You will need to put an admin password on the databases so that it is protected that way.

Ubuntu (and linux in general) are not designed to be used as root. Linux uses proper access rights unlike Windows where all users have full system accesss making them essentially pointless.

The running of a system as root is not simply a case of "I know what I'm doing. I won't mess stuff up"

Its the fast that if you run a web browser as root, it has root access. So any Java or Flash app will also have root access, If one has a malicious piece of code to say, copy data from certain files then it certainly will be able to as you are root and have 100% access. It could even spawn its own root based processes and start modifying your system init.d so it always run.
If the browser itself is also compromised, they can capture that access too and add user accounts to give themselves full access to your system whenever it is online and even modify your firewall to weaken or even disable security

If the root account is disabled then their is a zero percent chance of accessing the account. root is common to ALL unix based systems so will be attacked first bu hackers etc. If the account is enabled this only means the password must be guessed. If the account is disabled then a valid username must also be guessed which makes it significantly more difficult to get access

The root account is disabled for all these reasons and many many many more. There is a reason it is disabled, its not to annoy you or make the OS harder to use. It just makes sense. Many seasoned Linux experts as well as te kernel team and several representatives of the major packages (like xorg) had meetings about this and decided it was a fantastic idea. The people come in with this attitude of "I know better" and go and enable it "because they don't like typing their password too often" when the actual advantages given are astronomical

It actually sickens me and I actively write messages similar to this one to people (as well as people online in guides who tell people how to enable the account and why its such a poor idea. They Usually email back with something like "wow, i didn't know that" and I simply send one back saying "yes, i know you didn't"

Can you help with this problem?

Provide an answer of your own, or ask Chris Z for more information if necessary.

To post a message you must log in.