Error login user file utmp

Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Error login user file utmp
# 1  
Old 09-05-2002
Error login user file utmp

could probably help me with a unix problem.
Basicallyu, when the users try to connect to the server they get this messge:
No UTMP entry. you must exec "LOGIN" from the lowest level "sh"

They are connecting using a windows emulator called TINYTERM.

We cannot connect from the console either (not even with root)....only in single user mode.

Any Ideas?
# 2  
Old 09-05-2002
again alot of the basic info is missing from this question.

1) what OS
2) what version of Q1

but for solaris it is done as follows.

the root issue edit the /etc/default/login and make sure the following line is uncommneted in the file adn or it is pointing to the console.

# If CONSOLE is set, root can only login on that device.
# Comment this line out to allow remote login by root.

as for the utmp error.

i get that error if the following conditions are met:

1) i am loged in as anyone
2) i su or su - to someone account
3) then type login
4) and continue to login after i supply proper credentials i then get that error and am pushed to the parent shell.
# 3  
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)


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

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:


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:


You may also check the following for any large files that can be deleted:


Subsequent logins should work fine after this.
# 4  
Old 09-06-2002

Smilie hey, thank you very much, this working
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
Login or Register to Ask a Question