Koozali.org: home of the SME Server

help cannot login root

Offline mgb

  • *****
  • 558
  • +0/-0
help cannot login root
« on: December 19, 2007, 02:19:00 PM »
login admin is ok
smb is ok
mail is not good
server-manager is not good
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, admin and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
 log ftp://217.194.194.154/linux/messages.txt
« Last Edit: December 19, 2007, 02:23:32 PM by mgb »
Thanks all for helping
Skype yosii2009

Offline mmccarn

  • *
  • 2,651
  • +10/-0
Re: help cannot login root
« Reply #1 on: December 19, 2007, 04:14:40 PM »
I see a lot of this
Quote
Dec 19 09:56:04 mail PAM-securetty[2237]: /etc/securetty is either world writable or not a normal file
in your messages.txt.

From this link http://www.linuxquestions.org/questions/linux-security-4/securetty-and-login-45396/ it looks like you may want to:
Code: [Select]
chmod 600 /etc/securetty

Then re-try your login.

If that fixes it, then you need to figure out how /etc/securetty acquired insecure file permissions...

On my system, this file contains the following:
Code: [Select]
tty1
tty2
tty3
tty4
tty5
tty6
tty7
tty8

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: help cannot login root
« Reply #2 on: December 19, 2007, 08:40:43 PM »
I hope this is your test server and not your production server as I see some dangerous instructions as well:

As I see in your log files you did update your system (due to the necessary events at Dec 16 around 16:25):

Code: [Select]
Dec 16 16:26:01 mail esmith::event[2614]: Processing event: bootstrap-console-save 
Dec 16 16:26:01 mail esmith::event[2614]: Running event handler: /etc/e-smith/events/bootstrap-console-save/S00initialize-default-databases
Dec 16 16:26:01 mail esmith::event[2614]: Migrating existing database networks 
Dec 16 16:26:01 mail esmith::event[2614]: Migrating existing database domains 
Dec 16 16:26:01 mail esmith::event[2614]: Migrating existing database yum_repositories 
Dec 16 16:26:01 mail esmith::event[2614]: Migrating existing database mailpatterns 
Dec 16 16:26:01 mail esmith::event[2614]: Migrating existing database yum_installed 
Dec 16 16:26:01 mail esmith::event[2614]: Migrating existing database spamassassin 
Dec 16 16:26:01 mail esmith::event[2614]: Migrating existing database configuration 
Dec 16 16:26:03 mail esmith::event[2614]: Migrating existing database hosts 
Dec 16 16:26:03 mail esmith::event[2614]: Migrating existing database yum_updates 
Dec 16 16:26:03 mail esmith::event[2614]: Migrating existing database yum_available 
Dec 16 16:26:03 mail esmith::event[2614]: Migrating existing database accounts 
Dec 16 16:26:03 mail esmith::event[2614]: Migrating existing database backups 
Dec 16 16:26:03 mail esmith::event[2614]: S00initialize-default-databases=action|Event|bootstrap-console-save|Action|S00initialize-default-databases|Start|1197815161 73900|End|1197815163 473780|Elapsed|2.39988
Dec 16 16:26:03 mail esmith::event[2614]: Running event handler: /etc/e-smith/events/bootstrap-console-save/S03conf-hostsdb
Dec 16 16:26:03 mail esmith::event[2614]: S03conf-hostsdb=action|Event|bootstrap-console-save|Action|S03conf-hostsdb|Start|1197815163 474053|End|1197815163 620552|Elapsed|0.146499
Dec 16 16:26:03 mail esmith::event[2614]: Running event handler: /etc/e-smith/events/bootstrap-console-save/S04purge-domain
Dec 16 16:26:03 mail esmith::event[2614]: S04purge-domain=action|Event|bootstrap-console-save|Action|S04purge-domain|Start|1197815163 620899|End|1197815163 750756|Elapsed|0.129857
Dec 16 16:26:03 mail esmith::event[2614]: Running event handler: /etc/e-smith/events/actions/generic_template_expand

... and see you disable the sme8os repository a few days later (Dec 19 around 09:26):
Code: [Select]
Dec 19 09:36:12 mail /etc/e-smith/web/panels/manager/cgi-bin/yum[4972]: /home/e-smith/db/yum_repositories: OLD sme8os=repository|BaseURL|http://mirror.contribs.org/smeserver/releases/testing/8/smeos/i386/|EnableGroups|yes|GPGCheck|no|Name|SME Server 8 - smeos|Visible|yes|status|enabled
Dec 19 09:36:12 mail /etc/e-smith/web/panels/manager/cgi-bin/yum[4972]: /home/e-smith/db/yum_repositories: NEW sme8os=repository|BaseURL|http://mirror.contribs.org/smeserver/releases/testing/8/smeos/i386/|EnableGroups|yes|GPGCheck|no|Name|SME Server 8 - smeos|Visible|yes|status|disabled
Dec 19 09:36:12 mail /etc/e-smith/web/panels/manager/cgi-bin/yum[4972]: /home/e-smith/db/yum_repositories: OLD smeupdates-testing=repository|BaseURL|http://mirror.contribs.org/pub/smeserver/releases/7/smeupdates-testing/$basearch|EnableGroups|yes|GPGCheck|yes|MirrorList|file:///etc/yum.repos.d/mirrors-smeupdates-testing|Name|SME Server - updates testing|Visible|yes|status|enabled
Dec 19 09:36:12 mail /etc/e-smith/web/panels/manager/cgi-bin/yum[4972]: /home/e-smith/db/yum_repositories: NEW smeupdates-testing=repository|BaseURL|http://mirror.contribs.org/pub/smeserver/releases/7/smeupdates-testing/$basearch|EnableGroups|yes|GPGCheck|yes|MirrorList|file:///etc/yum.repos.d/mirrors-smeupdates-testing|Name|SME Server - updates testing|Visible|yes|status|disabled
Dec 19 09:37:13 mail /etc/e-smith/web/panels/manager/cgi-bin/groups[5044]: /home/e-smith/db/accounts: OLD tot=group|Description|tot|Gid|5014|Members|admin|Uid|5014
Dec 19 09:37:13 mail /etc/e-smith/web/panels/manager/cgi-bin/groups[5044]: /home/e-smith/db/accounts: NEW tot=group-deleted|Description|tot|Gid|5014|Members|admin|Uid|5014

I suspect that you updated from the sme8os repository. Can you confirm that? Can you post the /var/log/yum.log from that update so we can see if you did leave the sme8os repository enabled and perhaps drag in any RPMS from there unintended?
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 mgb

  • *****
  • 558
  • +0/-0
Re: help cannot login root
« Reply #3 on: December 22, 2007, 07:11:52 AM »
Thank You
cannot login root 
to fixes
chmod 600 /etc/securetty
Thanks all for helping
Skype yosii2009

Offline mgb

  • *****
  • 558
  • +0/-0
to fix login root
« Reply #4 on: December 24, 2007, 03:46:53 PM »
log yum http://217.194.194.155/log/
to fix login
1 - boot
start sme  sme ... 1

chmod 600 /etc/securetty
2 boot
login is ok
in server-manager is
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
 
Please contact the server administrator, admin and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
« Last Edit: December 24, 2007, 04:10:51 PM by mgb »
Thanks all for helping
Skype yosii2009

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: to fix login root
« Reply #5 on: December 24, 2007, 07:50:50 PM »
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 mgb

  • *****
  • 558
  • +0/-0
Re: help cannot login root
« Reply #6 on: December 24, 2007, 08:22:42 PM »
log yum http://217.194.194.156/log/

? to backup  from root  to sme-server 7.2
backup smeserver.zip
for new server  7.3
(I hope this is your test server and not your production server as I see some dangerous instructions as well:
)
« Last Edit: December 24, 2007, 08:25:43 PM by mgb »
Thanks all for helping
Skype yosii2009

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: help cannot login root
« Reply #7 on: December 24, 2007, 11:44:56 PM »
log yum http://217.194.194.156/log/
Are you sure this is the latest data as I am still missing the part of Dec 16th?

Waht did you do on your server at December 16th around 1630 local time?
« Last Edit: December 24, 2007, 11:48:58 PM by cactus »
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 mgb

  • *****
  • 558
  • +0/-0
i sure
« Reply #8 on: December 25, 2007, 01:27:48 PM »
 copy all log  to http


help  to backup  from root  to sme-server 7.2 smeserver.tgz
the backup from admin is not work
backup smeserver.tgz
i need all users profile
for new server  7.3 open   backup smeserver.tgz
Thanks all for helping
Skype yosii2009

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: i sure
« Reply #9 on: December 25, 2007, 01:33:32 PM »
copy all log  to http


help  to backup  from root  to sme-server 7.2 smeserver.tgz
the backup from admin is not work
backup smeserver.tgz
i need all users profile
for new server  7.3 open   backup smeserver.tgz
Please try and use the quote function to clarify your replies...

I am still not clear on how and from where you did retrieve the log files you have put on your web server. Did you take them from the server or from a backup?

You also did not specify what actions you performed on Dec 16th around 16.30 (local time).
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 mgb

  • *****
  • 558
  • +0/-0
Re: help cannot login root
« Reply #10 on: December 25, 2007, 02:36:41 PM »
 
http://217.194.194.156/log/new
the server is not work server-managrt  217.194.194.156


look link http://217.194.194.156/log/new/log/messages.20071115011202
check pass; user unknown !!! 15 06:34:05  is not mgb
« Last Edit: December 25, 2007, 09:05:45 PM by mgb »
Thanks all for helping
Skype yosii2009