Koozali.org: home of the SME Server

HELP! server-manager not working

rickjones

HELP! server-manager not working
« on: September 05, 2004, 12:44:56 PM »
Aaarrghh! Almost all actions in server-manager have suddenly stopped working properly. The various errors and logs seem to show that it's a permissions problem.

I know the manager pages run as admin, but all the actions have to be performed as root, so there's a setuid change that has to take place - this doesn't seem to be happening.

I'm not aware of having changed anything to cause this, but I suspect a setuid bit on a file has got turned off somehow. The problem is I can't work out which file or where - can anyone enlighten me please?

TIA

jcoleman

HELP! server-manager not working
« Reply #1 on: September 05, 2004, 03:52:18 PM »
Just a quick guess....make sure that all of the files in /etc/e-smith/web/functions are chmod'd to 4750.

That will set the setuid bit.

-jeff

rickjones

HELP! server-manager not working
« Reply #2 on: September 05, 2004, 04:34:17 PM »
Thanks a million! I knew some bunch of key scripts had to be setuid but I couldn't work out which.

For some unknown reason ALL the scripts in that directory had lost bit 4000 - now how the hell did that happen? :-?

Cheers

Offline arne

  • *****
  • 1,116
  • +0/-4
HELP! server-manager not working
« Reply #3 on: September 05, 2004, 07:39:11 PM »
Don't know about this bit, but I believe that if you run a recursive chmod command you can change it all. Stay at one level above the directory and run something like "chmod -R 4750 <dir name>"
......

rickjones

HELP! server-manager not working
« Reply #4 on: September 05, 2004, 09:27:53 PM »
Quote from: "arne"
Don't know about this bit, but I believe that if you run a recursive chmod command you can change it all. Stay at one level above the directory and run something like "chmod -R 4750 <dir name>"


Actually you don't need recursive in this instance, as there are no subdirectories, just "chmod u+s *". What's weird is that to the best of my knowledge I haven't run any chmods in that directory, so I can't understand why the files got changed in the first place.

I've spent enough years supporting users to be highly skeptical when told "I haven't done anything to the system, honest - it just stopped working" - "yeah, right!" is the usual thought. It's a mite embarassing now to be on the other end of that one :oops:. I know things don't "just happen", and no-one else has access, so it has to be me. Maybe I was sleep walking?  :-)