Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cannot create /var/adm/utmpx - - error message after crash

Status
Not open for further replies.

robwall7

IS-IT--Management
Sep 25, 2001
17
0
0
US
sunos 5.8 on sparc -- system crash -- found at ok prompt -- entered boot -- skip cntrl-d for system maint -- get error -- cannot create /var/adm/utmpx --

what is the utmpx and what is the proper solution to bringing the box back up.
 
At OK prompt boot cdrom -s, check /etc/vfstab for any problems or try to cd /var; ls -l /var, check if there is adm directory is there, if not Mkdir adm and cd adm.
pwd
/var/adm
ls -l
check out if you have these files
utmp, utmpx and so On. if do not have, such create them
touch utmpx
touch utmp
then, reboot the system

.

F. regal
good luck
"think twice and hit enter once"
 

grep -i "user management" /etc/security/exec_attr
User Management:suser:cmd:::/usr/sbin/grpck:euid=0
User Management:suser:cmd:::/usr/sbin/pwck:euid=0
User Management:suser:cmd:::/etc/init.d/utmpd:uid=0;gid=sys


There are three commands available to the user management policy . First checks /etc/group for consistency; the second does the same for /etc/passwd . The Third is is actually a system startup Script to start and stop the Utmpd Deamon, which monitors the utmp and utmpx fiels. These Files contains information on active users.

WTMP this file contains a record of logins and logouts
UTMP this files contains current logins. .

F. regal
good luck
"think twice and hit enter once"
 
Thanks! The help was great! The box is back up now.
 
when I encountered this problem I had to fsck the system a couple of times before I could go beyond the error.
 
This happens often when you have /var as a separate
file system, i.e. not part of "/".
When /var is a file system in its own right, it won't be
mounted when the system is at single user (only / and
/usr are mounted by default). You may also notice write
failure messages to wtmp(x) when you shut the system down.
This is also because /var gets unmounted along with the
other file systems, leaving only / and /usr until much
later in the process.
The solution is to get /var mounted at the same time as
/ and /usr. John Philcox
Mobile Ventures Limited UK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top