• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

How to delegate SMF management to a non-root user in Solaris

by admin

The post discusses the steps to delegate the management of an SMF service to a non-root user. For example, a non-root user wants to manage the SMF service for tomcat. Follow the steps below to delegate tomcat service management to a non-root user.

Delegate SMF management to non-root user

1. Add the following entry to file /etc/security/auth_attr

solaris.smf.value.tomcat:::Value tomcat Service for user01::
solaris.smf.manage.tomcat:::Manage tomcat Service for user01::

2. Add general/value_authorization and general/action_authorization to the properties of the SMF service:

# svccfg -s application/tomcat setprop general/value_authorization = astring: solaris.smf.value.tomcat
# svccfg -s application/tomcat setprop general/action_authorization = astring: solaris.smf.manage.tomcat

3. Refresh the tomcat service.

# svcadm refresh application/tomcat

4. Add solaris.smf.value.tomcat authorization to user user01.

# usermod -A solaris.smf.manage.tomcat,solaris.smf.value.tomcat user01

5. Verify if you can now manage the tomcat service with the user user01.

Filed Under: Solaris

Some more articles you might also be interested in …

  1. How to Enable ssh/sshd Debugging for Solaris
  2. 17 Examples of using Solaris boot command
  3. How Passwordless SSH works in Linux / UNIX
  4. Resolving File System Full Situations in Solaris
  5. 12 iostat examples for Solaris performance troubleshooting
  6. How to allow only specific non-root user(s) to use crontab
  7. How to install and configure sudo in solaris 10 (SPARC and x86/x64)
  8. Solaris Zones : How To Change The Number Of CPUs Using Dynamic Resource Pools
  9. Solaris : How to increase the Inodes on UFS file system with newfs command
  10. How to configure Shared Memory Parameters in Solaris 10,11

You May Also Like

Primary Sidebar

Recent Posts

  • “aws s3 ls” Command Examples
  • “aws s3 cp” Command Examples
  • “aws route53” Command Examples
  • “aws rds” Command Examples

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright