I'd like to allow a group of users to manage (ie. disable, enable, ...) a service, WITHOUT having to use sudo. That's supposed to be on a Solaris 10 U4 system.
Michael Schmarck 2 April 2008 09:42:10 [ permanent link ]
Michael Vilain <vilain@NOspamcop.net> wrote:
If Roles won't do this, you're stuck using sudo or rethinking your
approach. Your call...
Thanks for your reply. Maybe my approach isn't good. Let me tell, what I'd like to be able to do.
On a development box, I've got developers doing their thing. This includes building an application and "deploying" it, as they call it. To do this, a service needs to be restarted. The service is managed by SMF.
All these developers are in a Unix group called tcalpha. How would I now go about allowing anyone, who's a member of "tcalpha", to disable/enable/restart/mark the service called "tcalpha"? With sudo, I'd know how to do this. I'd rather not allow every single user to do this, but I'd rather make this permission dependent on the group membership status.
How to do that in the "Solaris 10 way" (ie. with only Solaris 10 tools and esp. without sudo)?
If Roles won't do this, you're stuck using sudo or rethinking your
approach. Your call...
Thanks for your reply. Maybe my approach isn't good. Let me tell,
what I'd like to be able to do.
On a development box, I've got developers doing their thing. This
includes building an application and "deploying" it, as they call
it. To do this, a service needs to be restarted. The service is
managed by SMF.
All these developers are in a Unix group called tcalpha. How would
I now go about allowing anyone, who's a member of "tcalpha", to
disable/enable/restart/mark the service called "tcalpha"? With sudo,
I'd know how to do this. I'd rather not allow every single user
to do this, but I'd rather make this permission dependent on the
group membership status.
How to do that in the "Solaris 10 way" (ie. with only Solaris 10
tools and esp. without sudo)?
Thanks,
Michael
very simple i assume (not tested :
write a short wrapper script, make it suid root (or user you want) and give execute permission to the group. you can also use ACLs instead of group permissions to give execute rights.
i am not shure if suid can be achieved by ACL, i dont think so.
/bin/sh is not bash on Solaris. But that's not your problem.
See the '-p' option. SUID scripts are possible, but discouraged due to the possiblity of exploiting them. Binary files are preferred.
-- Darren Dunham ddunham@taos.com Senior Technical Consultant TAOS http://www.taos.com/ Got some Dr Pepper? San Francisco, CA bay area < This line left intentionally blank to confuse you. >