/usr/adm/messages has been deleted

Posted on 2007-08-03
Last Modified: 2013-12-05
OS = SCO Openserver 5.0.5

Let me start off by saying that I know very little about SCO. I have reason to believe that the systems administrator that worked on this system before me deleted /usr/adm/messages. I'm sure that there is an easy fix but it eludes me. Any help here would be much appreciated.

Question by:ronayers
    LVL 45

    Expert Comment

    Hi Ron,

    I'm not an SCO person, but I've got a couple of ideas.

    Does the kernel (or one of the daemons) automatically create the file at boot?  If so, a boot may solve it.

    If not, boot in single user mode, and create the file

      touch /usr/adm/messages
      chmod 755 /usr/adm/messages

    I'm just guessing at the permissions but that seems reasonable.

    Good Luck,
    LVL 28

    Expert Comment

    messages doesn't actually live at that location. This reference is a link shown by the filename being displayed thus - messages@. Permissions are 644. To locate the actual file, log in as root and from / type find . -name messages -print. I see the actual item here -
    Now, I was shown how to create such a link years ago, but I cannot recall the process. I have manuals in the office. I will see if I can work it out, but it is Friday night here, I will be in the office Monday.

    I am assuming that the real file still exists and just the link is broken. I suspect you would be seeing errors if this were not the case.

    Chris B
    LVL 28

    Expert Comment

    The command is ln (LN=Link). Found the SCO help entry  here -
    If you need anything else, post back.

    Chris B
    LVL 16

    Accepted Solution

    Before linking the file, make sure it's really (!) the actual messages file you want to use.

    In more recent Unix variants, this file lives in /var/adm/messages. Only very old variants have it in /usr/adm/messages.

    # ln -s /var/opt/K/SCO/Unix/5.0.7Hw/usr/adm/messages /usr/adm/messages
    LVL 28

    Expert Comment

    Version in question is 5.05, older than mine, so the path I listed won't match exactly. ./var/opt/K/SCO/Unix/5.0.5Hw/usr/adm/messages may be correct, but the find command will clarify.

    Chris B

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Suggested Solutions

    A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
    I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
    This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now