Koozali.org: home of the SME Server

Cannot Access Server manager or phpmyadmin

Offline AaronW

  • *
  • 5
  • +0/-0
Cannot Access Server manager or phpmyadmin
« on: June 17, 2010, 12:12:57 PM »
I'm an idiot!!  :D

Some how last week while trying to get a remote reset script to work with PHP I have buggered up the admin accounts access to Server-Manager and PHPMyAdmin!

I can still use the admin account through the shell and have reset both the root and admin password using passwd however I still get access denied when loggin into server-manager

as a work around for PHPMyAdmin I have installed the multi user version but it has not solved my SM issue.

I have back tracked my setting changes, which was mostly to change the sudo settings to enable the www account to execute a script as root, however it has not helped!

I may have missed something or it may be unrelated to my fiddling last week!

Please help! I'm near out of ideas and a rebuild seems a little drastic at this stage!


Aaron  :???:

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Cannot Access Server manager or phpmyadmin
« Reply #1 on: June 17, 2010, 01:46:39 PM »
You do not give us any clues to work on. You should try and describe more specific what you try. Also have a look in the /var/log/httpd/admin_error_log file, perhaps a clue might be in there.
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 CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Cannot Access Server manager or phpmyadmin
« Reply #2 on: June 17, 2010, 02:51:18 PM »
I have back tracked my setting changes, which was mostly to change the sudo settings to enable the www account to execute a script as root, ...

That's quite a bad idea.

Offline Arffeh

  • 2
  • +0/-0
Re: Cannot Access Server manager or phpmyadmin
« Reply #3 on: June 17, 2010, 06:22:04 PM »
That's quite a bad idea.

Then what would be a more secure way of allowing the www account to execute a script that requires higher permissions?

Also, in /var/log/httpd/admin_error_log :
Quote
[Thu Jun 17 19:49:11 2010] [error] [client 127.0.0.1] Could not open pipe to pwauth: Permission denied at /etc/e-smith/web/common/cgi-bin/login line 59., referer: https://server/server-common/cgi-bin/login

Offline Arffeh

  • 2
  • +0/-0
Re: Cannot Access Server manager or phpmyadmin
« Reply #4 on: June 19, 2010, 03:24:24 AM »
So at this point I'm wondering what permissions are needed to be in place so that it can have the appropriate access.

Does anyone know?

Offline AaronW

  • *
  • 5
  • +0/-0
Re: Cannot Access Server manager or phpmyadmin
« Reply #5 on: June 23, 2010, 07:42:47 AM »
 :-P Sorted it out, as I suspected it was LOOSER ERROR!!

Some how I changed the Group file /etc/group and the value for www to : www:x:10:admin when it should have been www:x:102:admin.

All good now!  :lol: