Koozali.org: home of the SME Server

Modifying server-manager

Jim Huneycutt

Modifying server-manager
« on: November 01, 2002, 05:33:26 AM »
I need to be able to remove some of the items in server-manager and cannot find where this could be done. I need a slimmed down version that only allows, for example, managing users and groups and shutting down/reboot. This would allow a limited admin function without the potential for damaging the system or
changing remote access, etc.

The "new" admin-lite function would need to be accessible from a browser. I would envision making a copy of server-manager and stripping out most of the current options and giving access from say a userAdmin login. Perhaps this is a future but if someone can point in the right direction I will take a crack at the mods.

Any help would be appreciated.

jim

Terry Brummell

Re: Modifying server-manager
« Reply #1 on: November 01, 2002, 05:46:23 AM »
You need to do a search through the forum for "user manager" or something similar (make sure you select all dates).  This allows the admin to allow other users access to certian panels within the server-manager function.  Do a search and report back how you do.

Terry

PS-I have no expierence with 'user manager' but have seen it mentioned many times in the forum.

Jim Huneycutt

Re: Modifying server-manager
« Reply #2 on: November 01, 2002, 05:52:46 AM »
Thanks for the quick reply Terry. As I understand the user manager panel it allows users to change their passwords and set up the autoresponder. It would not allow the addition and deletion of users for example. I have not used it so if I am wrong someone please correct me.

Thanks again,
jim

Terry Brummell

Re: Modifying server-manager
« Reply #3 on: November 01, 2002, 06:28:35 AM »
Sorry if I wasn;t specific enough, try here:

http://www.dungog.net/sme/howto/delegate.php

Jim Huneycutt

Re: Modifying server-manager
« Reply #4 on: November 01, 2002, 06:35:09 AM »
Thanks for the link. Have downloaded and will try it on a test server tomorrow.
jim

Ray Mitchell

Re: user-manager
« Reply #5 on: November 01, 2002, 06:48:18 AM »
Jim
The user-manager is quite good, I have it running on v5.1.2 and v5.5. It would appear the dungog version has been written to suit changes in v5.5 but is still OK on v5.1.2.
It is in effect the server-manager but with a few extras.
Using server manager you can set which users have access to which panels, thus restricting a user to only do reboots and set vacation messages if that is what you wanted. Different users can have different acess rights.
Remember to log on using https://yourdomain/user-manager with the user name and user password. Even as the system administrator you could set access to all panels for your user name and log on securely using your own username and password rather than admin and the admin p/w.

Hope this helps
Ray Mitchell

Brian Kirk

Re: Modifying server-manager
« Reply #6 on: November 01, 2002, 07:05:15 AM »
I've just modified my server manager to show only those entries I want - see
http://myezserver.com/downloads/mitel/contrib/servermanager-navigation-0.0.1/
Valid entries are in /etc/e-smith/web/panels/manager/cgi-bin
edit the file  /sbin/e-smith/servermanager-navigation-default.sh with MC to leave out the panels you dont want. Save and run
sh /sbin/e-smith/servermanager-navigation-default.sh
Regards
brian

Darrell May

Re: Modifying server-manager
« Reply #7 on: November 01, 2002, 09:44:47 AM »
Correct, the user-manager is for users.  The server-navigation rpm is for customizing the server-manager.  Follow this HowTo:

http://myezserver.com/downloads/mitel/contrib/servermanager-navigation-0.0.1/servermanager-nav-howto.html

Darrell

Ray Mitchell

Re: Modifying server-manager
« Reply #8 on: November 01, 2002, 10:07:13 AM »
I accept the server-navigation rpm is for modifying the server-manager look and feel. But it sounds like Jim wants a cut down server manager for users to log on to with their own user name and password (without issuing them the admin password) and only have some limited server-manager panels available, this is exactly what user-manager will provide. Each user can have a user-manager that has all, some or even none of the server -manager panels accessible. Its a "user-server-manager"
And it is secure login https://

Regards
Ray Mitchell

> I need to be able to remove some of the items in
> server-manager .......

> I need a slimmed down version that only allows, for example,
> managing users and groups and shutting down/reboot........

> I would envision making a copy of
> server-manager and stripping out most of the current options
> and giving access from say a userAdmin login.........

Jim Huneycutt

Re: Modifying server-manager
« Reply #9 on: November 01, 2002, 04:36:40 PM »
Thanks, all. It looks like I can use both the user manager and the navigation rpm. These should do the trick.
jim

Jim Huneycutt

Re: Modifying server-manager
« Reply #10 on: November 01, 2002, 06:10:11 PM »
OK, I followed the servermanager-navigation HowTo for the install but I have not made any modifications. Guess I should have tried to backup the orgininal server-manager first. I see that the initial Mitel screen cannot be found - not a big deal since I would like to modify it to include my tech support number anyway. Also, my portforwarding and portopening panels do not show up.

Anyone know the easiest way to get those three items back? I suppose I could just re-install portforwarding, etc.

My objective is to have the original server-manger for top-level admin use and a second-level limited version for an authorized "power user" to do limited admin functions. Perhaps I am asking for too much with the tools available.

Thanks for the help.
jim

Arkman

Re: Modifying server-manager
« Reply #11 on: November 01, 2002, 09:18:41 PM »
It sounds to me like the user-manager will do exactly what you want.

Have you tried un-installing the servermanager-navigation rpm? Never used/installed it, but I'm assuming that an 'rpm -e rpmname.rpm' will remove it and put you back to where you were.

Brian Kirk

Re: Modifying server-manager
« Reply #12 on: November 02, 2002, 10:16:08 AM »
I would think that running
sh /sbin/e-smith/servermanager-navigation-default.sh
will restore the default panel but why not finish the process and get what you want? Add the lines portforwarding,\ and portopening,\ and delete the lines for the panels that you dont want in the file /sbin/e-smith/servermanager-navigation-default.sh then run the command sh /sbin/e-smith/servermanager-navigation-default.sh
Works a treat - I have just the panels showing that I want by doing this.
Regards
brian

Jim Huneycutt

Re: Modifying server-manager
« Reply #13 on: November 03, 2002, 06:45:09 PM »
Brian or anyone,
I have managed to get the portopening and portforwarding panels restored thanks to Brian's suggestion. However, I cannot get the initial screen restored or figure out how to show a replacement screen. Thus the admin user, whether given the default or custom navigation screens starts out with a "page cannot be found" screen, although the navigation panels display properly on the left side. I would like to present the user with something other than "not found" at startup.

Lastly, I would still like to limit the full server-manager to admin and assign server-manager "lite" to another user, or if that is not easily achieved create a server-manager2 function so that entering "http://servername/server-manger2 brings up the modified version. Is this possible?

Thanks,
jim

Brian Kirk

Re: Modifying server-manager
« Reply #14 on: November 04, 2002, 12:39:37 AM »
Jim - sorry you are having such dramas. The initial right hand panel file is/etc/e-smith/web/panels/manager/html/initial.html.
I suspect this file isn't there or you have tried to modify it. I modified it in windoze and had to reset its permissions under linux before I could see it. I suspect this is the case with you. If so midnight commander can reset its permissions. F9Pulldown,File,Advanced chown.  Check that the owner,group and other are set to r and owner and group are root.
You may need a reboot after all this?
Good luck
Brian

Ray Mitchell

Re: Modifying server-manager
« Reply #15 on: November 04, 2002, 02:45:10 AM »
Jim
I installed user-manager for the same reasons you have (although I did not have a need to alter the opening screen appearance).

The user-manager has a series of tick boxes that enable or disable each panel for each user. You can set up global defaults so all users have access to a standard set of panels by default or all users could have access to no panels depending what you want. Other than installing the rpms there is no command line intervention required. Very easy to setup.

You could add a new "power" user to the system and use that as a second lower level "admin" account or you could just let the power users log on with their own name and password, having previously set the access rights to panels for that user in server-manager.

See my earlier posts, I think user-manager may better suit your needs, it is the same as server manager if full access is given and depending how you set it up can give limited access to panels for users or lower level admin users.

Regards
Ray Mitchell

Jim Huneycutt

Re: Modifying server-manager
« Reply #16 on: November 04, 2002, 03:20:42 AM »
Hi Brian,
What you said makes sense but checking in etc/e-smith/web/panels/manager/html I find the following three files: index.cgi, index.html and initial.cgi. There is no initial.html. Nor could I have deleted it since until now I had never navigated to that folder.

Interestingly, checking on another e-Smith server that is working properly and one in which I have not run the servermanager-navigation-custom.sh, the same folder only contains index.cgi and inititial.cgi - no index.html and no initial.html. As far as I know, these two systems are pretty much identical 5.5 servers except for running the servermanager routine. I cannot explain the missing initial.html nor the lack of an index.html on the properly functioning system. These are areas of e-Smith I have not yet explored.  Does the server-navigation add-on create the index.html file?

A reboot of the afflicted server did not fix it - I still get the not found message with server-manager. After a bit of tinkering by trying to create an initial.html file I now get a duplicate of the panels frame.

By removing the index.html file I get the orginal starting screen, but now above the security/password panel there is listed an "Unknown" panel with an "Unknown" selection that, when selected, runs another instance of the server-navigation frame.

Next I re-installed the server-manager navigation rpm and noted that the index.html file that I had deleted was re-created. Does this make sense or did e-Smith re-create the file on its own from some other process?

I am considering a complete e-Smith re-install to see if I can get things back the way they were on this server --- but that is a real pain and my time has about run out to deliver this server. I have about one more day to tinker with this.

By any chance has anyone deciphered the sequence of events and purposes of the various cgi and html files used to bring up server-manager? Has anyone had similar problems with the server-manager navigation rpm on 5.5? The installation steps seem simple enough and I believe I followed them precisely so I am amazed I can't get it to work properly.

I appreciate your help,
jim

Ray Mitchell

Re: Modifying server-manager
« Reply #17 on: November 04, 2002, 03:53:48 AM »
Jim
I'm no expert either, but you could uninstall the rpm
rpm -e dmc-mitel-servermanager-navigation
(assuming that is the one you installed).
Then see if your system reverts to it's original state and server-manager works OK.

If not working OK, you might try running the sme v5.5 (or whichever version you have) instal again, but over the top of the existing instal.

When you get your standard server-manager working properly, then attempt doing modifications.
As mentioned previously I do think the user-manager rpms from dungog are what you are really after.

Also see my email sent directly to you.

Regards
Ray Mitchell

Jim Huneycutt

Re: Modifying server-manager
« Reply #18 on: November 04, 2002, 03:59:41 AM »
Ray, you win the prize! I successfully uninstalled the navigation rpm and installed the user panel, and configured it in under 15 minutes. I've created a "usermanager" account that can manage the other user accounts, but without the admin functions that will create a lot of problems if misused. I'll worry about the tech support screen later.

Sincere thanks,
jim

Brian Kirk

Re: Modifying server-manager
« Reply #19 on: November 04, 2002, 04:02:20 AM »
Hi - I have just checked and that subdir on my 5.1.2 has html files there. Sorry, I guess 5.5 is using cgi files to create the html on bootup or maybe pointing to a different place for the html. I agree with Ray - try uninstalling the rpm and reboot. If no luck I guess bite the bullet and reinstall e-smith. I will install 5.5 on a machine and have a look at how it is creating the webpage but it wont be for a few days.
Regards
Brian

Ray Mitchell

Re: Modifying server-manager
« Reply #20 on: November 04, 2002, 04:34:11 AM »
Jim
So I will look forward to the prize of a nice DVD burner in the mail. Ha ha ha !!

Good that you got it sorted out

Seriously though you might like to have another test server available where you can test changes etc before deploying them.

Regards
Ray