09-06-2002
Without knowing your OS/version - errors such as you are receiving found on SunSolve - some solutions (use only if the problem discribed is what you are having) (I would first check diskspace for /var - if it's full and can't write to the file it will cause this error - this has happened before in my experience)
1.
On a headless system with the console directed to serial port a,
boot up messages are seen but no login prompt is displayed.
The output of the ps -ef|grep /dev/console command does not show the
/usr/lib/saf/ttymon process for the /dev/console device.
Executing that process manually per the last line in /etc/inittab does produce a
login prompt and the /dev/console process starts to run, but attempts to login to
the serial console return:
No utmpx entry.
The user must execute "login" from lowest level "shell" and the console login process dies.
This problem is caused by changing the console login entry in
/etc/inittab from respawn to off.
To fix the problem, change the line back to respawn and execute the init q command to
reread inittab. The console process should start normally, the user can login, and that process
will respawn if killed.
If it is still not working, type:
# cat /dev/null > /var/adm/utmpx
# cat /dev/null > /var/adm/wtmpx
This will clean the utmpx and wtmpx, which will fix the problem
2.
Problem
During login "file system full" errors are seen and login fails with
the message "No utmpx entry".
This is caused by a full file system and the system has no space
to write its utmpx (login info) entry.
To get around this condition the system must be booted up
into single user mode. Then clear (do not delete) the files:
/var/adm/utmp
/var/adm/utmpx
This can be done by typing:
#cat /dev/null > filename
This command will zero out the file but keep it there with
the correct permissions.
In some cases after removing these files your /var filesystem may
still be full. In this case type:
du -askd /var |sort -nr |more
This will give you a listing of the files from largest to smallest
on the /var filesystem.
In order to create space you may zero out the following files:
/var/cron/log
/var/spool/lp/logs
/var/adm/messages
You may also check the following for any large files that can be deleted:
/.wastebasket
/lost+found
----------------------------------------------------
Subsequent logins should work fine after this.
10 More Discussions You Might Find Interesting
1. SCO
I am tring to recover a SCO system remotely, when I try to login with multiple user support, i get the following message
No UTPM entry, you must execute from the lowest level (sh)
Can anyone shed some light on this issue. I have never came seen this error before.
Also it will allow me to... (1 Reply)
Discussion started by: scott_williams1
1 Replies
2. HP-UX
Dear All,
how to check the unix log file which mean how many(who) user has been log in the server for the day, when they log in & when they log out? (8 Replies)
Discussion started by: whl123
8 Replies
3. UNIX for Dummies Questions & Answers
I created a user, i login as a root. I add him in the group where he can access and login as a root! I checked it in users' list and in group's list, he is there. My problem is this, I cant login using the username/account I just created! What should i do to use and login the user/account i've just... (5 Replies)
Discussion started by: jerome
5 Replies
4. UNIX for Dummies Questions & Answers
Would appreciate some help, system was displaying an error regarding the kernal when a "sar" was run, after a reboot we get "WARNING user login limit exceeded by 1 user". We have plenty of licences. any ideas? (1 Reply)
Discussion started by: nchrocc
1 Replies
5. UNIX for Advanced & Expert Users
In a frequent interval the system bootup is not updating the /etc/utmp file with the system boot details.
This leads to blank output of who - b command.
What can be the reason for the same? (1 Reply)
Discussion started by: jyoti_mil
1 Replies
6. UNIX for Dummies Questions & Answers
Hi.
I am working on a small assignment where i need to extract the login information of currently logged in users in a Linux client-server environment.I am able to extract only the userID,IP/HOST name,TTY,device name,GID,PID and login time using the structure 'utmp'.Also when i am saving the... (2 Replies)
Discussion started by: maverixxx
2 Replies
7. Solaris
Hello World ~
HW : SUN Fire V240
OS : Solaris 8
Error message prompts 'rmclomv ... SC login failure ...' on terminal.
and
Error Message prompts continually 'SC Login Failure for user Please login:' on Single Mode(init S)
The System is in normal operation, though
In case of rain, Can... (1 Reply)
Discussion started by: lifegeek
1 Replies
8. Shell Programming and Scripting
I have one server (consider A) .While logining into server A using username as u1 .I am not getting any command not found error but while I am loging into that server A using username as u2 , I am getting this below error while login... (5 Replies)
Discussion started by: maitree
5 Replies
9. Shell Programming and Scripting
Hi Every body,
I would need a shell script program to login as different user and perform some copy commands in the script.
example: Supppose ora_toms is the active user
ora_toms should be able to run a script where user: ftptomsp pass: XXX should login through and run the commands
... (9 Replies)
Discussion started by: ujjwal27
9 Replies
10. AIX
I want to learn AIX. I would like to find someone who would be willing to give me a login to their AIX home lab server. My intent is to poke around and discover the similarities and differences of AIX compared to other *NIXs.
I am a UNIX admin so I can think of what some immediate concerns may... (1 Reply)
Discussion started by: perl_in_my_shel
1 Replies
LOGIN(3) BSD Library Functions Manual LOGIN(3)
NAME
login, logout, logwtmp -- login utility functions (DEPRECATED)
SYNOPSIS
#include <util.h>
void
login(struct utmp *ut);
int
logout(const char *line);
void
logwtmp(const char *line, const char *name, const char *host);
DESCRIPTION
The login(), logout(), and logwtmp() functions are DEPRECATED; use pututxline(3) instead.
These functions operate on the database of current users in /var/run/utmpx and the system log file. Superuser permission is required.
The login() function updates the /var/run/utmpx files with user information contained in ut (after converting to a struct utmpx, as described
in pututxline(3)).
The logout() function removes the entry from /var/run/utmpx corresponding to the device line.
The logwtmp() function adds an entry to the system log file. Since login() will add the appropriate entry during a login, logwtmp() is usu-
ally used for logouts.
RETURN VALUES
logout() returns non-zero if it was able to find and delete an entry for line, and zero if there is no entry for line in /var/run/utmpx.
However, there is no error indication due to lack of permissions.
FILES
/dev/*
/var/run/utmpx
SEE ALSO
pututxline(3), utmp(5), utmpx(5)
BSD
December 14, 1995 BSD