LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (http://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   No UTMPX entry, You must EXEC "login" for the lowest "shell" (http://www.linuxquestions.org/questions/solaris-opensolaris-20/no-utmpx-entry-you-must-exec-login-for-the-lowest-shell-233759/)

ooihc 09-22-2004 06:09 AM

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

jlliagre 09-22-2004 07:14 PM

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

ooihc 09-23-2004 09:34 AM

thanks a lot !!

will try it out.

cheers,
ooihc

magkmonkie 02-26-2007 11:31 AM

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?

jlliagre 02-26-2007 12:36 PM

Boot on an Installation or a Live CD, mount your disk filesystem and fix the /etc/passwd /etc/shadow files.

mdhmi 02-27-2007 05:10 PM

\
After restoring /etc/passwd run pwconv and reboot the box.

magkmonkie 03-10-2007 01:25 PM

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.

jlliagre 03-12-2007 03:09 PM

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



All times are GMT -5. The time now is 10:56 PM.