Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Weird Logging In problem

168 views
Skip to first unread message

DOKNIK

unread,
Feb 12, 2003, 9:51:47 AM2/12/03
to

All,

I am experiencing a weird problem on one of our E250's.When i try to login both remotely or locally i get  the error messages below.I also tried login in using a tip session but still upon entering the root password it refuses connection  throwing the errors below.

The system will not allow me to login because someone might have made some changes in the /etc/pam.conf and /var/adm/utmpx .I have tried booting from CDROM to use the installation CD to chmod the /etc/pam.conf .It allowed me to do that but it would not  allow me to chmod to 644 on the other file ie /var/adm/utmpx.

After this change i tried login in again but still no joy

Any thoughts on this anyone.We are running Solaris 2.6, and the system has VXVM 3.0.4 installed on it.Any help would be greatly appreciated.Thanks

 

 

 

Feb 4 13:46:26 moss16 last message repeated 1 time

Feb 4 13:46:28 moss16 login[12084]: open_pam_conf: Owner of /etc/pam.conf is not root

Feb 4 13:46:28 moss16 syslogd: /var/adm/utmpx not owned by root or not mode 644.\nThis file must be owned by root and not writable by\nanyone other than root. This alert is being dropped because of\nthis problem.

Joachim Baumgartner

unread,
Feb 12, 2003, 2:44:18 PM2/12/03
to
"DOKNIK" <domi...@o2.co.uk> wrote in message news:<10450611...@ernani.logica.co.uk>...

> All,
>
> I am experiencing a weird problem on one of our E250's.When i try to
> login both remotely or locally i get the error messages below.I also
> tried login in using a tip session but still upon entering the root
> password it refuses connection throwing the errors below.
>
> The system will not allow me to login because someone might have made
> some changes in the /etc/pam.conf and /var/adm/utmpx .I have tried
> booting from CDROM to use the installation CD to chmod the /etc/pam.conf
> .It allowed me to do that but it would not allow me to chmod to 644 on
> the other file ie /var/adm/utmpx.
>
> After this change i tried login in again but still no joy
>
> Any thoughts on this anyone.We are running Solaris 2.6, and the system
> has VXVM 3.0.4 installed on it.Any help would be greatly
> appreciated.Thanks
>
>
>
>
>
>
>
> Feb 4 13:46:26 moss16 last message repeated 1 time
>
> Feb 4 13:46:28 moss16 login[12084]: open pam conf: Owner of
> /etc/pam.conf is not root
>
> Feb 4 13:46:28 moss16 syslogd: /var/adm/utmpx not owned by root or not
> mode 644.\nThis file must be owned by root and not writable by\nanyone
> other than root. This alert is being dropped because of\nthis problem.
>
>
> --
Probably you have your boot disk under VxVM control (encapsulated?)
That means that you have to:
- boot from cdrom
- try to mount the "rootvol" volume (i.e /dev/vx/dsk/rootdg/rootvol
or something similar)
- if this is not possible (that's probably a problem because
you don't have any VxVM modules loaded when you're booting
from cdrom) you have to try to mount the "original" devices
where your utmpx and pam.conf files are lying
Example for /etc/pam.conf
-> df -k .
-> lies on /
-> is mounted on /dev/vx/dsk/rootd/rootvol
-> has an "underlying" device /dev/dsk/c0t0d0s0 + /dev/dsk/c0t1d0s0 (RAID1)
-> mount /dev/dsk/c0t0d0s0 /mnt1
-> mount /dev/dsk/c0t1d0s0 /mnt2
-> edit or chmod /mnt1/etc/pam.conf and /mnt2/etc/pam.conf
-> umount /mnt1
-> umount /mnt2
-> reboot
If your /var/adm/utmpx file is located on another VxVM volume
you have to repeat the steps above.

The permissions of the files should look like this:
root@nfs1 > ls -l /etc/pam.conf /var/adm/utmpx
-rw-r--r-- 1 root sys 2431 Dec 29 03:59 /etc/pam.conf
-rw-r--r-- 1 root bin 4836 Feb 12 17:46 /var/adm/utmpx

If you know your former disk layout it could work.
Attention: I never tried it myself! It's just an idea...

Greetings and good luck,
Joe.

0 new messages