Technical article 105027

I get the error "dynamic linker: /etc/devnm: Cannot open /dev/zero for file /lib/libprot.so.1"

OpenServer 5.0.0OpenServer 5.0.2

Written · Last revised

Problem

When my system boots, I get the error:

dynamic linker: /etc/devnm:  Cannot open /dev/zero for file /lib/libprot.so.1
I may also see the error:
su: 23 Killed
or:
su: /dev/null: cannot create
This message also appears when users try to log in and they
are returned to the login prompt.  The user 'root' is able to
log in without a problem.  The bourne shell may work, while
C shell and Korn shell do not.

Cause

The permissions on the /dev/zero file, the /dev/null file, or
the /dev directory are incorrect.  The correct permissions are:
drwxr-xr-x  13 bin      bin         5920 Feb  8 13:33 /dev
crw-rw-rw-   1 root     sys        4,  2 Feb 25 23:45 /dev/null
crw-rw-rw-   1 root     root      23,  0 Apr 25  1995 /dev/zero

Solution

Change the permissions using chmod(C) and reboot.  These
commands will restore the correct permissions:
chmod 755 /dev
chmod 666 /dev/null /dev/zero

From the Xinuos technical article database, record 105027. Reproduced with permission. The original is at www.sco.com/ta/105027, which is reachable but blocked from search engines. Xinuos marks this article against a retired product line. That refers to the product’s lifecycle, not to whether the advice still works — plenty of it still applies to running systems.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.