Operating System - HP-UX
1826408 Members
4046 Online
109692 Solutions
New Discussion

Problem starting an application (unable to open /dev/console)

 
fario
Occasional Advisor

Problem starting an application (unable to open /dev/console)

Hi !!!,

I'm having some problems when starting an application. Everytime I'm trying to run a binary of the application (over HPUX 11i) I'm obtaining the same error:

*********************************************************
* FILE: ushbin
* Unable to open console.
* Unix system call open(/dev/console) failed,
* errno(1) = Not owner
*********************************************************

I have checked the /dev/console and it seems to have the right permissions:

$ ll /dev/console
crw--w--w- 1 root tty 0 0x000000 Oct 17 10:23 /dev/console

The binaries are owned by an special user (the one I use to start the ap.). Do I have to include this user in some group in order to use /dev/console ??? or have I to check any configuration file?

Thank you very much for your help,
Best Regards.
4 REPLIES 4
Ted Ellis_2
Honored Contributor

Re: Problem starting an application (unable to open /dev/console)

any chance you have console listed in the /etc/securetty file? Maybe that is preventing the launch... This is a recommended security setting, but if it is there, go ahead and remove it and retest. If it works, you at least know the culprit. You should try and find a way to let you keep that securetty setting for security reasons

Ted
fario
Occasional Advisor

Re: Problem starting an application (unable to open /dev/console)

Good Idea...but there is no /etc/securetty file.

Thank you very much.
Ken Hubnik_2
Honored Contributor

Re: Problem starting an application (unable to open /dev/console)

Look at the man page on console. It suggest other ways to communicate the the system console perhaps the app is using one of these methods.
Jeff Schussele
Honored Contributor

Re: Problem starting an application (unable to open /dev/console)

Hi fario,

My guess is that this is a GUI application & you need to do either:

A) export DISPLAY=xxx.xxx.xxx.xxx:0 (The IP of your workstation running an X server)
OR
B) Install Xvfb (X-windows virtual frame buffer) that will "fake-out" the app to make it think there's an graphic device local to the server.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!