Koozali.org: home of the SME Server

Re: SME Sever-Manager fails login with Can't exec "/usr/bin/pwauth": Permission denied

Offline waldviertler

  • ***
  • 107
  • +0/-0
I have the same problem. A fresh install BUT I used the console restore, to restore from 9.2 Backup.

I get "Invalid username or password." but I am sure the username and the password are correct. I typed the pw in editor and pasted it.

What can I do?

THanks in advice.
Martin

Offline Jean-Philippe Pialasse

  • *
  • 2,747
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
is the username admin?

if not, the username is not correct.

Offline waldviertler

  • ***
  • 107
  • +0/-0
Yes, the user is "admin".



Offline TerryF

  • grumpy old man
  • *
  • 1,821
  • +6/-0
I typed the pw in editor and pasted it.

Can you explain this please, what editor and why not just type into server-manager directly?
--
qui scribit bis legit

Offline waldviertler

  • ***
  • 107
  • +0/-0
The situation is:
I use Chrome to log in at the server manager since long time ago. Usually I only have to type the a from admin and auto fill in appears with username and pw. So I tried this a few times, then typed the password in and since there are no visible letters I typed the server password in the microsoft editor and pasted it to the pw field - just to make sure I typed it correctly. (I tried other browsers also.)
So after typing in username and pw and clicking on login, the fields are empty and above the field appears "Invalid username or password."
I use the SME-server since 1999 an I am pretty sure, how to use the login to the server-manager.

Martin

Offline ReetP

  • *
  • 3,722
  • +5/-0
Have you tried a ssh login?

If you use ssh keys as you should, then you should be able login and reset your password.

You can then also check the logs for login errors too.
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline waldviertler

  • ***
  • 107
  • +0/-0
the login works  on the console on the server and it works well over putty.

I get this in the admin_error_log:

Code: [Select]
[Mon Jun 28 00:16:15.066253 2021] [cgi:error] [pid 15182] [client 127.0.0.1:40130] AH01215: Can't exec "/usr/bin/pwauth": Permission denied at /etc/e-smith/web/common/cgi-bin/login line 56., referer: https://192.168.1.254//server-common/cgi-bin/login?back=https%3a%2f%2f192.168.1.254%2fserver-manager
[Mon Jun 28 00:16:15.066940 2021] [cgi:error] [pid 15182] [client 127.0.0.1:40130] AH01215: Could not open pipe to pwauth: Permission denied at /etc/e-smith/web/common/cgi-bin/login line 58., referer: https://192.168.1.254//server-common/cgi-bin/login?back=https%3a%2f%2f192.168.1.254%2fserver-manager

When I look with chown: the user and the group of /etc/e-smith/web/common/cgi-bin/login is "root".
« Last Edit: June 28, 2021, 12:17:16 AM by waldviertler »

Offline ReetP

  • *
  • 3,722
  • +5/-0
Hmmm. Permission is likely right. Don't try and change it.

Have you got any custom-templates lying about?

Think there is one or more threads here on failure to access server-manager on previous version upgrades.

This is an old one but similar so I'm thinking something you have restored from v9 is giving v10 indigestion.

https://forums.contribs.org/index.php/topic,50179.15.html

Can you check the logs during restore? May be an errror there somewhere.

See here for some command to parse errors:

https://wiki.koozali.org/User_talk:Stephdl

Was it a brand new and fully updated v10 prior to restore?

Have you added any contribs or custom items at all?
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline waldviertler

  • ***
  • 107
  • +0/-0
I don't have any errors seen, while installation.
The version, that I installed, was the download from the website.
Then I restored from my backup, after that I updated SME10.
I added
Dehydrated
phpmyadmin

Thanks
Martin

Offline ReetP

  • *
  • 3,722
  • +5/-0
Can you be a bit more specific please.

Did you test directly after the restore BEFORE you added contribs?

Exactly which contribs did you install and the commands did you use?

Have you any other repos installed?

...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline waldviertler

  • ***
  • 107
  • +0/-0
No, I restored and added deydrated and myphpadmin, after that I checked the server-manager.
I installed both like in wiki suggested:

Code: [Select]
yum install --enablerepo=smecontribs smeserver-phpmyadmin

and

Code: [Select]
yum install smeserver-letsencrypt --enablerepo=smecontribs

Offline TerryF

  • grumpy old man
  • *
  • 1,821
  • +6/-0
Re: can't access the server-manager. refused access : refused to connect.
« Reply #11 on: June 28, 2021, 11:58:51 AM »
OK, just to make sure, anything in
# ls -l /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf

and just poking about, contents of
# ls -l /etc/e-smith/templates/etc/httpd/admin-conf/httpd.conf
--
qui scribit bis legit

Offline waldviertler

  • ***
  • 107
  • +0/-0
Re: can't access the server-manager. refused access : refused to connect.
« Reply #12 on: June 28, 2021, 12:08:01 PM »
This is from my server:

Code: [Select]
[root@www Cal-neu]#  ls -l /etc/e-smith/templates/etc/httpd/admin-conf/httpd.conf
insgesamt 36
-rw-r--r--. 1 root root  667  2. Nov 2006  01localAccessString
-rw-r--r--. 1 root root 4022 19. Mär 04:33 20Manager
-rw-r--r--. 1 root root  250 19. Mär 04:33 20ManagerAuthTKT
-rw-r--r--. 1 root root  215  2. Nov 2006  85DefaultAccess
-rw-r--r--. 1 root root  212  2. Nov 2006  85ServerResourcesAccess
-rw-r--r--. 1 root root  349  2. Nov 2006  90e-smithAccess15brand
-rw-r--r--. 1 root root 1369 19. Mär 04:33 90e-smithAccess15common
-rw-r--r--. 1 root root 1536 19. Mär 04:33 90e-smithAccess20manager
-rw-r--r--. 1 root root  463 19. Mär 04:33 90e-smithAccess20password

[root@www Cal-neu]# ls -l /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf
insgesamt 12
-rw-r--r-- 1 root root  117 22. Jän 2020  75AddTypePlist
-rw-r--r-- 1 root root 2130  5. Dez 2019  92nutupscmon
-rw-r--r-- 1 root root  124  9. Jän 2017  VirtualHosts40ACME

Offline TerryF

  • grumpy old man
  • *
  • 1,821
  • +6/-0
Re: can't access the server-manager. refused access : refused to connect.
« Reply #13 on: June 28, 2021, 12:22:36 PM »
Code: [Select]
[quote author=waldviertler link=topic=54516.msg285645#msg285645 date=1624874881]
This is from my server:
[root@www Cal-neu]# ls -l /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf
insgesamt 12
-rw-r--r-- 1 root root  117 22. Jän 2020  75AddTypePlist
-rw-r--r-- 1 root root 2130  5. Dez 2019  92nutupscmon
-rw-r--r-- 1 root root  124  9. Jän 2017  VirtualHosts40ACME
[/quote]

Delete all and give the httpd service a kick or reboot/reconfig
or better still, move all to a safe place and give the httpd service a kick or reboot/reconfig
--
qui scribit bis legit

Offline TerryF

  • grumpy old man
  • *
  • 1,821
  • +6/-0
--
qui scribit bis legit