Sponsored Content
Full Discussion: Error login user file utmp
Top Forums UNIX for Dummies Questions & Answers Error login user file utmp Post 27757 by RTM on Friday 6th of September 2002 09:52:54 AM
Old 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

SCO utmp file

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

Hp-Unix user login file collection

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 create user but i cant login the user i created.

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

Error, Login Limit Exceeded by 1 user

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

/etc/utmp file does not get updated with boot up details

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

Help Needed using utmp file!

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

error message rmclomv ... SC Login Failure for user Please login:

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

error in .login file

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

How to Login as another user through Shell script from current user[Not Root]

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

User Account Login Login on your AIX server

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)						     Linux Programmer's Manual							  LOGIN(3)

NAME
login, logout - write utmp and wtmp entries SYNOPSIS
#include <utmp.h> void login(const struct utmp *ut); int logout(const char *ut_line); Link with -lutil. DESCRIPTION
The utmp file records who is currently using the system. The wtmp file records all logins and logouts. See utmp(5). The function login() takes the supplied struct utmp, ut, and writes it to both the utmp and the wtmp file. The function logout() clears the entry in the utmp file again. GNU Details More precisely, login() takes the argument ut struct, fills the field ut->ut_type (if there is such a field) with the value USER_PROCESS, and fills the field ut->ut_pid (if there is such a field) with the process ID of the calling process. Then it tries to fill the field ut->ut_line. It takes the first of stdin, stdout, stderr that is a tty, and stores the corresponding pathname minus a possible leading /dev/ into this field, and then writes the struct to the utmp file. On the other hand, if no tty name was found, this field is filled with "???" and the struct is not written to the utmp file. After this, the struct is written to the wtmp file. The logout() function searches the utmp file for an entry matching the ut_line argument. If a record is found, it is updated by zeroing out the ut_name and ut_host fields, updating the ut_tv timestamp field and setting ut_type (if there is such a field) to DEAD_PROCESS. RETURN VALUE
The logout() function returns 1 if the entry was successfully written to the database, or 0 if an error occurred. FILES
/var/run/utmp user accounting database, configured through _PATH_UTMP in <paths.h> /var/log/wtmp user accounting log file, configured through _PATH_WTMP in <paths.h> CONFORMING TO
Not in POSIX.1-2001. Present on the BSDs. NOTES
Note that the member ut_user of struct utmp is called ut_name in BSD. Therefore, ut_name is defined as an alias for ut_user in <utmp.h>. SEE ALSO
getutent(3), utmp(5) COLOPHON
This page is part of release 3.27 of the Linux man-pages project. A description of the project, and information about reporting bugs, can be found at http://www.kernel.org/doc/man-pages/. GNU
2004-05-06 LOGIN(3)
All times are GMT -4. The time now is 06:00 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy