LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices



Reply
 
Search this Thread
Old 09-22-2004, 06:09 AM   #1
ooihc
LQ Newbie
 
Registered: Sep 2004
Posts: 4

Rep: Reputation: 0
No UTMPX entry, You must EXEC "login" for the lowest "shell"


Hi,

I had the above problem on my server and would like your advice to resolve it.

The problem happened when I restored the /etc/passwd and shadow file as the /etc/passwd file was accidenttally deleted. Lucky thing was, I have both the files' backup which created about 2 weeks ago.

would appreciate your advice....

thanks in advance ! cheers.....

ooihc
 
Old 09-22-2004, 07:14 PM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,523

Rep: Reputation: 365Reputation: 365Reputation: 365Reputation: 365
May be had you a file system full on /var (or on / is no /var slice exists), and your utmpx was corrupted.

Check you have sufficient space in / and /var,
try emptying /etc/utmpx:
mv /etc/utmpx /etc/utmpx.old
touch /etc/utmpx

and reboot
 
Old 09-23-2004, 09:34 AM   #3
ooihc
LQ Newbie
 
Registered: Sep 2004
Posts: 4

Original Poster
Rep: Reputation: 0
thanks a lot !!

will try it out.

cheers,
ooihc
 
Old 02-26-2007, 11:31 AM   #4
magkmonkie
LQ Newbie
 
Registered: Feb 2007
Posts: 3

Rep: Reputation: 0
Quote:
Originally Posted by ooihc
thanks a lot !!

will try it out.

cheers,
ooihc
Not new to Solaris but not expert either!
I'm having the same problem but I cannot log in at all. This may or may not be the same as what you'd just explained. The only reason I specify not being able to log in is that I cannot issue the commands you suggested. So I guess the question is; How do I access the FS to make the necessary changes?
 
Old 02-26-2007, 12:36 PM   #5
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,523

Rep: Reputation: 365Reputation: 365Reputation: 365Reputation: 365
Boot on an Installation or a Live CD, mount your disk filesystem and fix the /etc/passwd /etc/shadow files.
 
Old 02-27-2007, 05:10 PM   #6
mdhmi
Member
 
Registered: Dec 2005
Location: Detroit, Michigan
Distribution: Ubuntu
Posts: 86

Rep: Reputation: 15
\
After restoring /etc/passwd run pwconv and reboot the box.
 
Old 03-10-2007, 01:25 PM   #7
magkmonkie
LQ Newbie
 
Registered: Feb 2007
Posts: 3

Rep: Reputation: 0
Quote:
Originally Posted by jlliagre
May be had you a file system full on /var (or on / is no /var slice exists), and your utmpx was corrupted.

Check you have sufficient space in / and /var,
try emptying /etc/utmpx:
mv /etc/utmpx /etc/utmpx.old
touch /etc/utmpx

and reboot

This worked. I was able to login eventually as root by using LOMA, as a console login. I found that the FS was pretty much full so I cleaned up a bit and everything was fine again.

Thanks jlliagre.
 
Old 03-12-2007, 03:09 PM   #8
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,523

Rep: Reputation: 365Reputation: 365Reputation: 365Reputation: 365
By the way, after you have fixed the space issue in /var, you should restore the regular utmpx link:
Code:
mv /etc/utmpx /etc/utmpx.old
mv /var/adm/utmpx /var/adm/utmpx.old
touch /var/adm/utmpx
ln -s /var/adm/utmpx /etc/utmpx
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
what is "sticky bit mode" , "SUID" , "SGID" augustus123 Linux - General 10 08-03-2012 05:40 AM
Telling people to use "Google," to "RTFM," or "Use the search feature" Ausar General 77 03-21-2010 12:26 PM
Shell Script: Find "Word" Run "Command" granatica Linux - Software 5 07-25-2007 08:42 AM
"Xlib: extension "XFree86-DRI" missing on display ":0.0"." zaps Linux - Games 9 05-14-2007 04:07 PM
"cannot exec `as': ..." AND "C compiler cannot create ..." pr3st0 Linux - Software 0 10-15-2004 01:42 PM


All times are GMT -5. The time now is 08:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration