SUMMARY: who and consvar commands behave differently in single/mu lti-useu

From: Wagner, Ronald P <ronald.p.wagner_at_lmco.com>
Date: Fri, 10 Aug 2001 08:22:10 -0400

I sort of discovered the answer on my own. Both who and consvar rely on
information in the utmp and wtmp files. To access these files, after
booting to single user mode, you must do a mount /a or a bcheckrc to mount
the file systems. I had missed this step so the commands were unable to
return complete information. This is probably not a behavior change between
4.0d and 5.1.

> -----Original Message-----
> From: Wagner, Ronald P [SMTP:ronald.p.wagner_at_lmco.com]
> Sent: Thursday, August 09, 2001 11:20 AM
> To: tru64-unix-managers_at_ornl.gov
> Subject: who and consvar commands behave differently in
> single/multi-user modes
>
> I am running a 433au workstation with Tru64 5.1 PK 3 installed. I have
> noticed that the consvar and who commands return somewhat different
> results
> when invoked in single-user and multi-user mode.
>
> When in multi-user mode, the commmands return results similar to the
> following:
>
> # consvar -l
> auto_action = HALT
> boot_dev = dsk0
> bootdef_dev = dsk0
> booted_dev = dsk0
>
>
> # who -r
> . run-level 3 Aug 9 14:29 3 0 S
>
>
>
> When in single user mode, consvar shows blanks for the boot_dev,
> bootdef_dev, and booted_dev. And the who -r command returns a line
> containing the single word 'root' which of course is the current user.
>
> I believe these behaviors are new to version 5.1. We previously used 4.0d
> and did not notice anything unusual.
>
> Any ideas?
>
> Ron Wagner
> Lockheed Martin Management & Data Systems
> MARK IVB Program
> * Bldg. 100, Rm. U1237
> PO Box 8048
> Philadelphia, PA 19101
> * (610) 354-5649
> e* ronald.p.wagner_at_lmco.com
> FAX: (610) 354-7216
>
>
Received on Fri Aug 10 2001 - 12:22:20 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:42 NZDT