System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Unix system call open(/dev/console) failed

Osvaldo Dias Damaceno_1
Occasional Visitor

Unix system call open(/dev/console) failed

I am with the same problem to start BMP. Help me!! See:

usrv64: ./startbmp

***********************************************
* FILE: manmbin
* Unable to open console.
* Unix system call open(/dev/console) failed,
* errno(1) = Not owner
***********************************************
4 REPLIES
Osvaldo Dias Damaceno_1
Occasional Visitor

Re: Unix system call open(/dev/console) failed

I seed, same problem, because have a question on forum whith title, "subject: Problem starting an application (unable to open /dev/console)" but not have good answer to resolve this problem. I need help!!
Steven E. Protter
Exalted Contributor

Re: Unix system call open(/dev/console) failed

Either you have no rights or the device has been accidently deleted.

As root:

insf -e

If the device is missing, that command will make it return.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Bill Hassell
Honored Contributor

Re: Unix system call open(/dev/console) failed

The console must have these permissions and ownership:

ll /dev/console
crw--w--w- 1 root tty 0 0x000000 Mar 7 10:02 /dev/console

Now the errno(1) error is:

from /usr/include/sys/errno.h:
define EPERM 1 /* Not super-user */

from man 2 errno:
[EPERM] Not owner. Typically, this error indicates an attempt to modify a file in some way forbidden except to its owner or the superuser, such as to change its mode. It is also returned for attempts by ordinary users to do things for which they need, but lack, a special privilege.

So the BMP program is trying to do something with the console (like read it) without being run by the superuser. I would not run this program as superuser until you contact the manufacturer to see why this error is being reported.


Bill Hassell, sysadmin
Ramcy
Occasional Visitor

Re: Unix system call open(/dev/console) failed

Hi All,

Please check the permission of the console and check if its not overwritten.

crw--w----   1 root     tty        0,  0 May 19 18:30 cn@0:console

We faced a similar issue in which the permission got overwritten by a user wrongly. When the permission was reverted the issue got resolved.

Regards,

Ramcy