Koozali.org: home of the SME Server

how to set up a user as a "limited" admin?

Offline mophilly

  • *
  • 384
  • +0/-0
    • Mophilly
how to set up a user as a "limited" admin?
« on: October 23, 2008, 05:43:02 PM »
I would like to allow another user access to update the Primary ibay, as well as the files under /opt/. I also would like to restrict access to other areas such as templates and so on. The purpose is to allow the user to assist with the upkeep of the web applications.

Is it possible to set up this arrangement within the SME manager?
(it's already there and I missed it?)

Do I need to create something special "under the hood" for this case?

What are others doing for cases like this?

TIA,

 - Mark
- Mark

Offline gzartman

  • *
  • 306
  • +0/-0
    • LEI Engineering & Surveying
Re: how to set up a user as a "limited" admin?
« Reply #1 on: October 27, 2008, 02:00:07 AM »
I would like to allow another user access to update the Primary ibay, as well as the files under /opt/. I also would like to restrict access to other areas such as templates and so on. The purpose is to allow the user to assist with the upkeep of the web applications.

You are looking at working outside of SME Security Model.  What you are wanting to do is not supported in anyway by SME and you should think twice before proceeding.  Giving a user access to the e-smith-templates directory gives them the ability to control the lions share of SME's configuration. 

If all you are wanting to do is give a user the ability to help with web apps, perhaps you could post which apps you wanting to delegate access too.  We may be able to give you some direction to provide the needed access.   Another option would be to install the web app directly in the ibay and give the user access to just that ibay.  This would allow them the ability to modify everything except maybe admin dbase tasks.

Is it possible to set up this arrangement within the SME manager?
(it's already there and I missed it?)

No, nor should you even try.  You are just asking for trouble.


Greg
« Last Edit: October 27, 2008, 02:01:44 AM by gzartman »
----
Greg J. Zartman
LEI Engineering & Surveying

SME user and community member since 2000.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: how to set up a user as a "limited" admin?
« Reply #2 on: October 27, 2008, 02:59:21 AM »
I would like to allow another user access to update the Primary ibay ...

You don't need to do that. Configure the primary domain to use a different ibay. Set the group for that ibay to include whichever users you want.

Offline gzartman

  • *
  • 306
  • +0/-0
    • LEI Engineering & Surveying
Re: how to set up a user as a "limited" admin?
« Reply #3 on: October 27, 2008, 03:14:04 AM »
You don't need to do that. Configure the primary domain to use a different ibay. Set the group for that ibay to include whichever users you want.

This won't work if the user installs web apps the "right way," which installs the web app in a dir location other than ~/ibays/ and includes a httpd template fragment to setup httpd to point to the web app. 

As previously stated, the user would need to install the webapp directly into an ibay and give those who will admin this web app the "Ibay password"  Simply including a user in the ibay group won't provide the access needed to admin the webapp unless this user is on the internal LAN, which is very unlikely in the case presented by the OP.

Greg
----
Greg J. Zartman
LEI Engineering & Surveying

SME user and community member since 2000.

Offline David Harper

  • *
  • 653
  • +0/-0
  • Watch this space
    • Workgroup Technology Solutions
Re: how to set up a user as a "limited" admin?
« Reply #4 on: October 27, 2008, 08:12:03 AM »
Rather than give your limited administrator access to the SME Server itself, have you considered a simple content management system like SiteX (which you can also see in action on my website)?

That way, they can have full admin rights to the website - upload photos, add new pages, whatever - but no access to the SME Server backend.

Offline mophilly

  • *
  • 384
  • +0/-0
    • Mophilly
Re: how to set up a user as a "limited" admin?
« Reply #5 on: October 27, 2008, 04:02:28 PM »
Thanks for the thoughtful replies. I was hoping for an "almost admin" level user or perhaps something like ACL's for this that wouldn't break the SME model.

The web apps, MantisBT, MediaWiki and a couple of applications we produce, are in /opt/. We use the Primary ibay for the top level web site. I would like to give one tech the role of "webmaster" for the web apps, while I will remain responsible for SME config, etc..

A CMS would be a solution to some of the tasks for the webmaster. SiteX does look interesting and I will play with it a bit soon.

The idea of using a regular iBay is workable too. I think, for our situation, I would ought to set up a user account so the user "home" would be the workspace, and write a script to update the Primary as needed. The web apps are a challenge.

Thanks, again.
- Mark

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: how to set up a user as a "limited" admin?
« Reply #6 on: October 27, 2008, 04:22:42 PM »
Mophilly

The simplest way is to put all your web apps in ibays, and then allow user access as required via group ownership of the ibays.
Users can connect via VPN remotely and only have access to the ibays they are allowed to administer. Nice and easy and safe.

Move your apps from /opt to ibays and stop using Primary. Point your main domain name at an ibay in the domains panel. There is nothing unsafe about using ibays, sme was designed to use them like this, for these very reasons.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline mophilly

  • *
  • 384
  • +0/-0
    • Mophilly
Re: how to set up a user as a "limited" admin?
« Reply #7 on: October 28, 2008, 01:29:25 AM »
Thanks, mary,

I thought about placing the top level site in an ibay but wondered about security. I am encouraged by your comments.

BTW, what do you use the Primary ibay for?
- Mark

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: how to set up a user as a "limited" admin?
« Reply #8 on: October 28, 2008, 08:45:02 AM »
Mophilly

Quote
..what do you use the Primary ibay for?

Of course it can be used for the main domain web content etc.
It may be appropriate for small organisations who have minimal websites and minimal tech support staff, where only one person ie the admin user, will administer the whole server.

If you have multiple administrators (of web sites) as you do, then using ibays is a better alternative.
You could still use the Primary ibay if you really want to, but it only has admin user access, so updating by users is limited ie users must send info to the admin user who then updates Primary.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline mophilly

  • *
  • 384
  • +0/-0
    • Mophilly
Re: how to set up a user as a "limited" admin?
« Reply #9 on: October 28, 2008, 03:48:28 PM »
We are pursuing the suggestion made by Charlie and mary to use another ibay for the primary domain.

I plan to use the "files" directory in the ibay for the app's presently in /opt/. Please let me know if this isn't the appropriate choice.

Thanks again to everyone. Your replies have made this much easier.
- Mark

Offline gzartman

  • *
  • 306
  • +0/-0
    • LEI Engineering & Surveying
Re: how to set up a user as a "limited" admin?
« Reply #10 on: October 28, 2008, 07:06:31 PM »
Thanks for the thoughtful replies. I was hoping for an "almost admin" level user or perhaps something like ACL's for this that wouldn't break the SME model.

The web apps, MantisBT, MediaWiki and a couple of applications we produce, are in /opt/. We use the Primary ibay for the top level web site. I would like to give one tech the role of "webmaster" for the web apps, while I will remain responsible for SME config, etc..

A CMS would be a solution to some of the tasks for the webmaster. SiteX does look interesting and I will play with it a bit soon.

The idea of using a regular iBay is workable too. I think, for our situation, I would ought to set up a user account so the user "home" would be the workspace, and write a script to update the Primary as needed. The web apps are a challenge.

Thanks, again.

You are making this much more complex than it needs to be.  As Mary and I have suggested, use ibays to control admin type access to an your web apps.  All of the apps you've suggested will install directly into ibays.  However, MediaWiki will require that you either run with SME 8 or install PHP 5 next to PHP 4.

You could have this up and running in under 30min.

Greg
----
Greg J. Zartman
LEI Engineering & Surveying

SME user and community member since 2000.

Offline gzartman

  • *
  • 306
  • +0/-0
    • LEI Engineering & Surveying
Re: how to set up a user as a "limited" admin?
« Reply #11 on: October 28, 2008, 07:09:39 PM »
We are pursuing the suggestion made by Charlie and mary to use another ibay for the primary domain.

I plan to use the "files" directory in the ibay for the app's presently in /opt/. Please let me know if this isn't the appropriate choice.

Thanks again to everyone. Your replies have made this much easier.

No.  You'll want to drop the web app directly into the html directory and enable executable content for the ibay.

You'll then be able to access the web app with:  www.yourdomain/ibay name.  Or, you could setup a hostname for your webapp and point it to the webapp ibay, then access your ibay with somename.yourdomain.

Once again, you are really making this into a bigger problem than it needs to be.

Greg
----
Greg J. Zartman
LEI Engineering & Surveying

SME user and community member since 2000.

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: how to set up a user as a "limited" admin?
« Reply #12 on: October 29, 2008, 01:48:46 AM »
Mophilly

Quote
I plan to use the "files" directory in the ibay for the app's presently in /opt/. Please let me know if this isn't the appropriate choice.

That's not appropriate.
All web content should normally be installed in the html folder.
Some types of code (eg cgi) would be installed into the cgi-bin folder.
The files folder is really for samba file sharing on a LAN.

Please read the manual as I'm certain this is covered there, and your knowledge seems to indicate you have never read the manual.

To the many out there who may want to respond to my "read the manual" comment in an antagonistic way, please don't.
In this situation "read the manual" is a valid request to make.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline gzartman

  • *
  • 306
  • +0/-0
    • LEI Engineering & Surveying
Re: how to set up a user as a "limited" admin?
« Reply #13 on: October 29, 2008, 02:56:31 AM »
It is worth noting that there is some risk when enabling executable content for an ibay and opening up the ibay to internet/no-password.

Remember, authenticated LAN users will also have access to the html dir via windows file sharing.  This means it is possible for a LAN user to drop a malicious php file named index.php into the html dir and it will be executed when the ibay is accessed via www.

There are ways to mitigate this (e.g., create a custom samba template fragment to turn off windows browsing for the ibay), but the admin needs to be aware of what is going on.  AFAIK, this isn't covered in the manual.

Greg
----
Greg J. Zartman
LEI Engineering & Surveying

SME user and community member since 2000.

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: how to set up a user as a "limited" admin?
« Reply #14 on: October 29, 2008, 03:06:19 AM »
gzartman & mophilly

Quote
It is worth noting that there is some risk when enabling executable content for an ibay and opening up the ibay to internet/no-password.

Which in part is one of the reasons that had been put forward for using  /opt instead of an ibay.

An answer is to limit local (LAN) access to web enabled ibays using group ownership.
Good policy would be to severely limit access to a ibay that contains web content.
Only those admins who will update the site and can be trusted should be made members of the group that "owns" the ibay.
Therefore no-one else can access the ibay locally to inadvertantly or deliberately add malicious content.

Better still eg for Joomla CMS (& others where applicable etc), only allow updating of content via the front end/back end panels built in to the CMS.
« Last Edit: October 29, 2008, 06:25:02 AM by mary »
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.