Koozali.org: home of the SME Server

cannot get to admin console

Offline mercyh

  • *
  • 824
  • +0/-0
    • http://mercyh.org
cannot get to admin console
« on: December 08, 2009, 05:06:05 PM »
Hi,
I have an SME that I have inherited with a consulting job I have accepted. I do not know the history of this server. It is current with updates and I can run updates from server manager.

For some reason I cannot login as admin on the console of the server. Root login works fine but if I try to SU to admin in putty it gives the following error:

Code: [Select]
[root@mail ~]# su admin
Real UID cannot exec script

If I try to login directly as admin the putty session is immediately closed.

I get the same result directly from the server console as putty.

I have googled this and have been unable to find a satisfactory answer.

Has anyone seen this behavior before and do you have a suggestion of how to fix it?

Thanks in advance


Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: cannot get to admin console
« Reply #1 on: December 08, 2009, 05:42:00 PM »
what if you give
Code: [Select]
console

as root?

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: cannot get to admin console
« Reply #2 on: December 08, 2009, 05:44:35 PM »

Offline mercyh

  • *
  • 824
  • +0/-0
    • http://mercyh.org
Re: cannot get to admin console
« Reply #3 on: December 08, 2009, 05:57:48 PM »
Stefano,

Thanks a million, I didn't know about the console command. I also had searched but did not find the bugs you referenced   :-?

I have not looked at the groups issue but I am pretty sure we would be over the limit on this.

Royce




Offline mercyh

  • *
  • 824
  • +0/-0
    • http://mercyh.org
Re: cannot get to admin console
« Reply #4 on: December 23, 2009, 04:30:54 AM »
further research with problem still not resolved

Code: [Select]
console
at the root login takes me to a # prompt


after removing unnecessary groups to get the number of groups below 32, I no longer get the "Real UID cannot exec script error" but have the following results:

Login as admin directly in putty immediately closes the putty session.

Code: [Select]
su admin at the root prompt takes me to a # prompt

"I sure wish i knew the history of this server. It is a DC in a 20 user Domain and I am reluctant to do anything drastic while it is mostly working"
« Last Edit: December 23, 2009, 03:43:08 PM by mercyh »

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: cannot get to admin console
« Reply #5 on: December 23, 2009, 09:04:54 AM »
after removing unnecessary groups to get the number of groups below 32, I no longer get the "Real UID cannot exec script error" but have the following results:

Login as admin directly in putty immediately closes the putty session.

Code: [Select]
su admin at the root prompt takes me to a # prompt
Any clues in the log files, e.g. in /var/log/messages around the time you observed this behavior?

"I sure wish i knew the history of this server. It is a DC in a 20 user workgroup and I am reluctant to do anything drastic while it is mostly working"
A shot in the dark, but what is the output of:
Code: [Select]
db accounts show admin
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline mercyh

  • *
  • 824
  • +0/-0
    • http://mercyh.org
Re: cannot get to admin console
« Reply #6 on: December 23, 2009, 03:35:09 PM »
Quote
A shot in the dark, but what is the output of:
Code: [Select]
db accounts show admin

really no clues here that I can see

Code: [Select]
admin=system
    EmailForward=both
    FirstName=Local
    ForwardAddress=reports@moundridgemanor.net
    LastName=Administrator
    Lockable=no
    PasswordSet=yes
    Removable=no
    Shell=/sbin/e-smith/console
    VPNClientAccess=no

Will do some more research in the log files.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: cannot get to admin console
« Reply #7 on: December 23, 2009, 03:36:49 PM »
really no clues here that I can see
Nope, this looks OK to me as well.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline mercyh

  • *
  • 824
  • +0/-0
    • http://mercyh.org
Re: cannot get to admin console
« Reply #8 on: December 23, 2009, 03:39:18 PM »
another thing I found. I executed the following as root:

Code: [Select]
[root@mail ~]# /sbin/e-smith/console
Can't exec "/usr/bin/dialog": No such file or directory at /usr/lib/perl5/site_perl/esmith/console.pm line 184.
Couldn't exec:: No such file or directory

I thought I was getting no response when I issued

Code: [Select]
su admin
however if I scroll the putty window back up I find that same error.

Thanks a lot for your help in pointing me the right direction so far.....

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: cannot get to admin console
« Reply #9 on: December 23, 2009, 03:47:37 PM »
Code: [Select]
[root@mail ~]# /sbin/e-smith/console
Can't exec "/usr/bin/dialog": No such file or directory at /usr/lib/perl5/site_perl/esmith/console.pm line 184.
Couldn't exec:: No such file or directory
It seems that the file is not found or inaccessible. Do you have dialog installed?
Code: [Select]
rpm -q dialogIf not can you have a look throught your yum log files to see if it was removed somehow:
Code: [Select]
grep -A 5 -B 5 -i dialog /var/log/yum/yum.log*
Thanks a lot for your help in pointing me the right direction so far.....
No problem.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline mercyh

  • *
  • 824
  • +0/-0
    • http://mercyh.org
Re: cannot get to admin console
« Reply #10 on: December 23, 2009, 03:51:25 PM »
It seems to be there.

[
Code: [Select]
root@mail ~]# rpm -q dialog
dialog-1.0.20040731-3

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: cannot get to admin console
« Reply #11 on: December 23, 2009, 03:53:29 PM »
It seems to be there.

Code: [Select]
root@mail ~]# rpm -q dialog
dialog-1.0.20040731-3
And these:
Code: [Select]
ls -la /usr/bin/dialog
rpm -V dialog
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline mercyh

  • *
  • 824
  • +0/-0
    • http://mercyh.org
Re: cannot get to admin console
« Reply #12 on: December 23, 2009, 04:04:53 PM »
Cactus,

You are getting over my head, I am following you blindly here so you will have to interpret the output for me.......

Code: [Select]
[root@mail ~]# ls -la /usr/bin/dialog
ls: /usr/bin/dialog: No such file or directory

Code: [Select]
[root@mail ~]# rpm -V dialog
missing     /usr/bin/dialog
missing     /usr/share/locale/ca/LC_MESSAGES/dialog.mo
missing     /usr/share/locale/cs/LC_MESSAGES/dialog.mo
missing     /usr/share/locale/cy/LC_MESSAGES/dialog.mo
missing     /usr/share/locale/da/LC_MESSAGES/dialog.mo
missing     /usr/share/locale/de/LC_MESSAGES/dialog.mo
missing     /usr/share/locale/el/LC_MESSAGES/dialog.mo
missing     /usr/share/locale/es/LC_MESSAGES/dialog.mo
missing     /usr/share/locale/et/LC_MESSAGES/dialog.mo
missing     /usr/share/locale/eu/LC_MESSAGES/dialog.mo
missing     /usr/share/locale/fr/LC_MESSAGES/dialog.mo
missing     /usr/share/locale/hu/LC_MESSAGES/dialog.mo
missing     /usr/share/locale/it/LC_MESSAGES/dialog.mo
missing     /usr/share/locale/ja/LC_MESSAGES/dialog.mo
missing     /usr/share/locale/nl/LC_MESSAGES/dialog.mo
missing     /usr/share/locale/pl/LC_MESSAGES/dialog.mo
missing     /usr/share/locale/pt/LC_MESSAGES/dialog.mo
missing     /usr/share/locale/pt_BR/LC_MESSAGES/dialog.mo
missing     /usr/share/locale/ru/LC_MESSAGES/dialog.mo
missing     /usr/share/locale/uk/LC_MESSAGES/dialog.mo
missing   d /usr/share/man/man1/dialog.1.gz

This doesn't look real promising to me.

One of the reasons I need to get to console is that I cannot yum from the command line, (I get the following error):

Code: [Select]
Setting up repositories
Cannot find a valid baseurl for repo: smeaddons
Error: Cannot find a valid baseurl for repo: smeaddons

and I need to see what is setup for network settings. I can use the software installer panel from server-manager just fine.

I may be needing to spend an afternoon onsite and just clean install this thing so I know what I have.
« Last Edit: December 23, 2009, 04:13:05 PM by mercyh »

Offline mercyh

  • *
  • 824
  • +0/-0
    • http://mercyh.org
Re: cannot get to admin console
« Reply #13 on: December 23, 2009, 04:10:33 PM »
This is a little interesting:

Code: [Select]
[root@mail ~]# grep -A 5 -B 5 -i dialog /var/log/yum/yum.log*
/var/log/yum/yum.log-Mar 15 17:35:45 Installed: perl-Mail-SPF-Query.noarch 1.999.1-1.2.el4.rf
/var/log/yum/yum.log-Mar 15 17:35:45 Installed: mod_auth_tkt.i386 2.0.0rc1-4.2.el4.sme.of
/var/log/yum/yum.log-Mar 15 17:35:46 Installed: perl-Net_SSLeay.pm.i386 1.25-4.el4.at
/var/log/yum/yum.log-Mar 15 17:35:46 Installed: perl-IO-Socket-SSL.noarch 1.01-1.c4
/var/log/yum/yum.log-Mar 15 17:35:46 Installed: perl-IO-Zlib.noarch 1.04-1.2.el4.rf
/var/log/yum/yum.log:Mar 15 17:35:47 Installed: dialog.i386 1.0.20040731-3
/var/log/yum/yum.log-Mar 15 17:35:47 Updated: e-smith-lib.noarch 1.18.0-8.el4.sme
/var/log/yum/yum.log-Mar 15 17:35:48 Updated: e-smith-manager.noarch 1.14.0-1.el4.sme
/var/log/yum/yum.log-Mar 15 17:35:49 Updated: e-smith-samba.noarch 1.14.0-26.el4.sme
/var/log/yum/yum.log-Mar 15 17:35:49 Updated: e-smith-nutUPS.noarch 1.2.0-8.el4.sme
/var/log/yum/yum.log-Mar 15 17:35:49 Updated: e-smith-grub.noarch 1.0.0-5.el4.sme

but quite inconclusive.

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: cannot get to admin console
« Reply #14 on: December 23, 2009, 04:19:01 PM »
I would download the rpm and force the reinstall..