How do I add a photo to my comment or blog entry?
Sudo to RBAC and init.d to SMF
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What can I do?
• What to Read?
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• RYXI
  • Сообщества
• Talxy Chat
• Horoscope
• Online
 
Зарегистрируйся!

RYXI > Solaris > Sudo to RBAC and init.d to SMF 16 April 2008 23:32:47

  Recent blog posts: 
  They have birthday today: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Moderators:

Sudo to RBAC and init.d to SMF

Gary Mills 16 April 2008 23:32:47
 We're upgrading a server from Solaris 9 to Solaris 10. This would be
a good opportunity to convert our init.d scripts into SMF services.
Creating a manifest and a method is relatively easy. However, there
are a group of users who use sudo to stop and start the process as
root. How do we give them the ability to run svcadm to enable or
disable the service on Solaris 10? Can this be done in the manifest
or the method script? We can't modify the executable itself.


--
-Gary Mills- -Unix Support- -U of M Academic Computing and Networking-
Add comment
Hume Spamfilter 15 April 2008 05:52:32 permanent link ]
 Gary Mills <mills@cc.umanitoba­.ca> wrote:
root. How do we give them the ability to run svcadm to enable or
disable the service on Solaris 10? Can this be done in the manifest
or the method script? We can't modify the executable itself.

Well, on my box as an example, to start and stop the icecast server, I
place in the SMF manifest, right after the last exec_method:

<property_group name='general' type='framework'>
<propval name='action_author­ization' type='astring' value='solaris.smf.­manage.icecast'/>
<propval name='enabled' type='boolean' value='false'/>
<propval name='value_authori­zation' type='astring' value='solaris.smf.­manage.icecast'/>
</property_group>

And then in /etc/user_attr I have:

hume::::type=normal­;auths=solaris.smf.m­anage.icecast

... which seems to work okay.

--
Brandon Hume - hume -> BOFH.Ca, http://WWW.BOFH.Ca/­
Add comment
Gary Mills 15 April 2008 06:06:06 permanent link ]
 In <fu11p0$jk3$1@Kil-n­ws-1.UCIS.Dal.Ca> hume.spamfilter@bof­h.ca writes:

Gary Mills <mills@cc.umanitoba­.ca> wrote:
root. How do we give them the ability to run svcadm to enable or
disable the service on Solaris 10? Can this be done in the manifest
or the method script? We can't modify the executable itself.

Well, on my box as an example, to start and stop the icecast server, I
place in the SMF manifest, right after the last exec_method:

<property_group name='general' type='framework'>
<propval name='action_author­ization' type='astring' value='solaris.smf.­manage.icecast'/>
<propval name='enabled' type='boolean' value='false'/>
<propval name='value_authori­zation' type='astring' value='solaris.smf.­manage.icecast'/>
</property_group>

And then in /etc/user_attr I have:

hume::::type=norma­l;auths=solaris.smf.­manage.icecast

That seems to be exactly what I want. I'd like to eliminate sudo in
favour of RBAC, as you noticed. Is this portion of the manifest
documented someplace? Is there an existing service that I can use as
a model?

--
-Gary Mills- -Unix Support- -U of M Academic Computing and Networking-
Add comment
Chris Ridd 15 April 2008 10:06:15 permanent link ]
 On 2008-04-15 03:06:06 +0100, Gary Mills <mills@cc.umanitoba­.ca> said:

In <fu11p0$jk3$1@Kil-n­ws-1.UCIS.Dal.Ca> hume.spamfilter@bof­h.ca writes:
Gary Mills <mills@cc.umanitoba­.ca> wrote:
root. How do we give them the ability to run svcadm to enable or
disable the service on Solaris 10? Can this be done in the manifest
or the method script? We can't modify the executable itself.
Well, on my box as an example, to start and stop the icecast server, I
place in the SMF manifest, right after the last exec_method:
<property_group name='general' type='framework'>
<propval name='action_author­ization' type='astring'
value='solaris.smf.­manage.icecast'/>
<propval name='enabled' type='boolean' value='false'/>
<propval name='value_authori­zation' type='astring'
value='solaris.smf.­manage.icecast'/>
</property_group>
And then in /etc/user_attr I have:
hume::::type=normal­;auths=solaris.smf.m­anage.icecast
That seems to be exactly what I want. I'd like to eliminate sudo in
favour of RBAC, as you noticed. Is this portion of the manifest
documented someplace? Is there an existing service that I can use as
a model?

Does that same manifest still work on a system without RBAC?

Cheers,

Chris

Add comment
Thommy M. 15 April 2008 21:07:38 permanent link ]
 Chris Ridd wrote:
On 2008-04-15 03:06:06 +0100, Gary Mills <mills@cc.umanitoba­.ca> said:
In <fu11p0$jk3$1@Kil-n­ws-1.UCIS.Dal.Ca> hume.spamfilter@bof­h.ca writes:
Gary Mills <mills@cc.umanitoba­.ca> wrote:
root. How do we give them the ability to run svcadm to enable or
disable the service on Solaris 10? Can this be done in the manifest
or the method script? We can't modify the executable itself.
Well, on my box as an example, to start and stop the icecast server, I
place in the SMF manifest, right after the last exec_method:
<property_group name='general' type='framework'>
<propval name='action_author­ization' type='astring'
value='solaris.smf.­manage.icecast'/>
<propval name='enabled' type='boolean' value='false'/>
<propval name='value_authori­zation' type='astring'
value='solaris.smf.­manage.icecast'/>
</property_group>
And then in /etc/user_attr I have:
hume::::type=normal­;auths=solaris.smf.m­anage.icecast
That seems to be exactly what I want. I'd like to eliminate sudo in
favour of RBAC, as you noticed. Is this portion of the manifest
documented someplace? Is there an existing service that I can use as
a model?
Does that same manifest still work on a system without RBAC?

What kind of systems that supports SMF will not support RBAC?
Add comment
Chris Ridd 15 April 2008 21:27:09 permanent link ]
 On 2008-04-15 18:07:38 +0100, "Thommy M."
<eclipsed9876543210­@hotmail.com> said:

Chris Ridd wrote:
Does that same manifest still work on a system without RBAC?
What kind of systems that supports SMF will not support RBAC?

I thought some bits of RBAC only appeared in a Solaris 10 update?

Cheers,

Chris

Add comment
Thommy M. 15 April 2008 23:54:18 permanent link ]
 Chris Ridd wrote:
On 2008-04-15 18:07:38 +0100, "Thommy M."
<eclipsed9876543210­@hotmail.com> said:
Chris Ridd wrote:
Does that same manifest still work on a system without RBAC?
What kind of systems that supports SMF will not support RBAC?
I thought some bits of RBAC only appeared in a Solaris 10 update?

I think RBAC was introduced back in the Solaris 8 days...

But I was hunting around for a Sun page where the introduction of
different features are listed. Anyone who has a link to that one?
Add comment
Dan McDonald 16 April 2008 00:29:14 permanent link ]
 In article <KJ7Nj.6123$R_4.481­8@newsb.telia.net>,
Thommy M. <eclipsed9876543210­@hotmail.com> wrote:
Chris Ridd wrote:
I thought some bits of RBAC only appeared in a Solaris 10 update?
I think RBAC was introduced back in the Solaris 8 days...

You are correct. I asked one of our local RBAC wizards, and he says:

The RBAC basis as we know it today was fully in S8 and later.

<SNIP!>

He even reminded me of the first putback into S8:

D 1.1 99/05/13 10:22:39 XXX 1 0 00066/00000/00000
MRs:
COMMENTS:
PSARC 1997/332; make libsecdb, initial databases and help files
*** CHANGED *** 99/05/13 10:23:15 XXX
date and time created 99/05/13 10:22:39 by XXX


That ARC case isn't opened up for perusal on opensolaris.org, alas.

Point is --> If you're on a system with SMF, it already has RBAC.
--
Daniel L. McDonald - Solaris Security & Networking Engineering
Mail: danmcd@sun.com | * MY OPINIONS ARE NOT NECESSARILY SUN'S! *
35 Network Drive Burlington, MA |"rising falling at force ten
http://blogs.sun.co­m/danmcd/ | we twist the world and ride the wind" - Rush
Add comment
Chris Ridd 16 April 2008 00:54:18 permanent link ]
 On 2008-04-15 21:29:14 +0100, danmcd@Eng.Sun.COM (Dan McDonald) said:

In article <KJ7Nj.6123$R_4.481­8@newsb.telia.net>,
Thommy M. <eclipsed9876543210­@hotmail.com> wrote:
Chris Ridd wrote:
I thought some bits of RBAC only appeared in a Solaris 10 update?
I think RBAC was introduced back in the Solaris 8 days...
You are correct. I asked one of our local RBAC wizards, and he says:
The RBAC basis as we know it today was fully in S8 and later.

[...]

Point is --> If you're on a system with SMF, it already has RBAC.

That's good to know, thanks. I'm obviously thinking of something else;
pretty sure that whatever it was was introduced in U4.

Cheers,

Chris

Add comment
Thommy M. 16 April 2008 22:29:56 permanent link ]
 Dan McDonald wrote:
In article <KJ7Nj.6123$R_4.481­8@newsb.telia.net>,
Thommy M. <eclipsed9876543210­@hotmail.com> wrote:
Chris Ridd wrote:
I thought some bits of RBAC only appeared in a Solaris 10 update?
I think RBAC was introduced back in the Solaris 8 days...
You are correct. I asked one of our local RBAC wizards, and he says:
The RBAC basis as we know it today was fully in S8 and later.

Thanks Dan. What about the page listing when different features was
introduced? Or was that only something I remember from inside SWAN?
Add comment
Darren Dunham 16 April 2008 23:32:47 permanent link ]
 Thommy M. <eclipsed9876543210­@hotmail.com> wrote:
Thanks Dan. What about the page listing when different features was
introduced? Or was that only something I remember from inside SWAN?

I don't think I've ever seen such a page from Sun, although I would
assume that gathering the details from the "What's New" pages wouldn't
be overly tedious.

Casper's FAQ has a few major items, but doesn't approach being
comprehensive.
http://www.science.­uva.nl/pub/solaris/s­olaris2.html#q1.5

--
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. >
Add comment
 

Add new comment

As:
Login:  Password:  
 
 
  
 
Пожалуйста, относитесь к собеседникам уважительно, не используйте нецензурные слова, не злоупотребляйте заглавными буквами, не публикуйте рекламу и объявления о купле/продаже, а также материалы нарушающие сетевой этикет или УК РФ.


RYXI > Solaris > Sudo to RBAC and init.d to SMF 16 April 2008 23:32:47

see also:
True Crypt Question
[AVU] Ad-Aware SE1R84 2005/12/28
Pricelessware CD ISO's via FTP
пройди тесты:
see also:
canon pixma ip1500 service
music transfer
Canon Pixma IP1500 how to replace waste…

  Copyright © 2001—2008 RYXI
Idea: Miсhael Monashev
Помощь и задать вопросы можно в сообществе support.ryxi.com.
Сообщения об ошибках оставляем в сообществе bugs.ryxi.com.
Предложения и комментарии пишем в сообществе suggest.ryxi.com.
Информация для родителей.
Write us at:
If you would like to report an abuse of our service, such as a spam message, please .