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