Link to home
Start Free TrialLog in
Avatar of ronayers
ronayers

asked on

/usr/adm/messages has been deleted

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.

Thanks
Avatar of Kent Olsen
Kent Olsen
Flag of United States of America image

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,
Kent
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 -
./var/opt/K/SCO/Unix/5.0.7Hw/usr/adm/messages
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
The command is ln (LN=Link). Found the SCO help entry  here - http://osr600doc.sco.com/en/man/html.C/ln.C.html
If you need anything else, post back.

Chris B
ASKER CERTIFIED SOLUTION
Avatar of Hanno P.S.
Hanno P.S.
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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