Sponsored Content
Operating Systems Solaris Apache 2.4 User/Group option with svcadm Post 303024797 by smiloo on Wednesday 17th of October 2018 01:10:57 AM
Old 10-17-2018
Apache 2.4 User/Group option with svcadm

Hello all,


Solaris 11.
Branch: 0.175.3.35.0.6.0

Asking for some assistance in trying to understand how Apache24 works with svcadm.

I used:

Code:
svccfg -s network/http:apache24
listprop
setprop start/user=<rabbit>
setprop start/group=<pod>

This is also set in /etc/apache2/2.4/httpd.conf as User and Group, but when I start the service it runs as the config default:

webservd.

If I run from the command line /usr/apache2/2.4/bin/apachectl it runs as the user and group, but might not create the log files as that user.

Is there a proper way to configure the service? I tried searching and can't seem to find the correct search words to find a match.

Any assistance would be greatly appreciated. If you can point me to a reference that would also be great.

Moderator's Comments:
Mod Comment edit by bakunin: please do us all a favour and use the CODE-tags i edited in for you yourself when posting code, terminal output or the like. It is easier to read, required by the forum rules, avoids infractions and is less work for me. Thank you!

Last edited by bakunin; 10-17-2018 at 11:23 AM..
 

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

svcadm with Solaris 10

Hi, I just upgraded my Ultra 5 to Solaris 10. Now I get this error when I try to start the nfs.server; # svcadm enable svc:/network/nfs/server svcadm: Pattern 'svc:/network/nfs/server' doesn't match any instances Also I cannot use either: # inetadm -l nfs/server Pattern 'nfs/server'... (2 Replies)
Discussion started by: chaandana
2 Replies

2. Shell Programming and Scripting

Find all files with group read OR group write OR user write permission

I need to find all the files that have group Read or Write permission or files that have user write permission. This is what I have so far: find . -exec ls -l {} \; | awk '/-...rw..w./ {print $1 " " $3 " " $4 " " $9}' It shows me all files where group read = true, group write = true... (5 Replies)
Discussion started by: shunter63
5 Replies

3. Solaris

svcadm issues

HI All, When i booted a server through its console. A message appeared . svc:/system/filesystem/local:default: WARNING: /sbin/mountall -l failed: exit status 1 May 27 03:55:32 svc.startd: svc:/system/filesystem/local:default: Method "/lib/svc/method/fs-local" failed with exit status... (3 Replies)
Discussion started by: jegaraman
3 Replies

4. Solaris

difference between inetadm and svcadm

Can anyone tell me the difference between inetadm and svcadm in solaris. As per my knowledge svcadm will use to start/stop services . Any help on this is really helpful (2 Replies)
Discussion started by: rogerben
2 Replies

5. Ubuntu

Create New User with the same group nd privileges of the other user

Hi, Anyone can help me on how to duplicate privileges and group for useroradb01 to userrootdb01. I have currently using "useroradb01" and create a newly user "userrootdb01". I want both in the sames privileges and group. Please see the existing users list below; drwxr-xr-x 53 useroradb01... (0 Replies)
Discussion started by: fspalero
0 Replies

6. Solaris

svcadm not running on Solaris 9. (Any alternates?)

Hi All, Yet another problem where I need your help. Guys , I am on a Solaris 9 Machine where svcadm command doesn't work I want to issue a command svcadm restart ntpas I normally do in Solaris 10. However I want to know is there any alternate way to do it in solaris 9 as it doesn't support the... (5 Replies)
Discussion started by: vivek.goel.piet
5 Replies

7. Red Hat

User is a Part of a Group But Group Details Do Not Show the User

Hi, In the following output you can see the the user "richard" is a member on the team/group "developers": # id richard uid=10247(richard) gid=100361(developers) groups=100361(developers),10053(testers) but in the following details of the said group (developers), the said user... (3 Replies)
Discussion started by: indiansoil
3 Replies

8. Shell Programming and Scripting

Function to silence rm -rf option for my user

Hi Gurus, I am trying to silence or supress rm -rf option for a particular user(venkat). for that am going to write a function in a script test_fun_ls.sh like below #!/bin/bash RM_FUNCTION () { if then case ${1} in -r) ... (9 Replies)
Discussion started by: venky.b5
9 Replies

9. Web Development

Getting apache to see a LDAP group membership change

trying to implement authz to a webpage using require ldap-group. It works, except I need to do apachectl restart before the server will observe an add or a delete to the group. Seems like apache is acquiring the group membership at startup & caching it. It's a static group. I have apache... (0 Replies)
Discussion started by: maraixadm
0 Replies
quagga(8)						  System Administration Commands						 quagga(8)

NAME
quagga - advanced routing protocol suite from www.quagga.net SYNOPSIS
Quagga is an advanced routing software package that provides a suite of TCP/IP based routing protocols. Quagga supports protocols such as RIPv1, RIPv2, RIPng, OSPFv2, OSPFv3, BGP-4, and BGP-4+. This document is provided for informational pur- poses to help users configure quagga under Solaris specifically. Further documentation on quagga configuration in general is provided at http://www.quagga.net. DESCRIPTION
Quagga consists of the following packages: o SUNWquaggar - Quagga root files o SUNWquagga-daemons - Quagga daemons o SUNWquagga-libs - Quagga private shared libraries o SUNWquagga-dev - Quagga private shared library headers o SUNWquaggaS - Quagga sources More defailed Quagga documentation is available from http://www.quagga.net/docs, or in the GNU Info format Quagga documentation installed in /usr/sfw/share/info. The Quagga routing protocol suite replaces SUNWzebra, and detection of SUNWzebra configuration during boot will lead to automatic transfer of configuration to quagga. If manual upgrade (without reboot) is required, configuration files under /etc/sfw/zebra should be transferred to /etc/quagga, and "routeadm -u" should be run. This will enable the appropriate quagga services, and run the daemons if those services dependencies are met. In Solaris, quagga daemons are managed by the following smf(5) services: svc:/network/routing/zebra:quagga zebra routing manager daemon svc:/network/routing/rip:quagga RIPv2 routing daemon svc:/network/routing/ripng:quagga RIPng routing daemon svc:/network/routing/bgp:quagga BGP routing daemon svc:/network/routing/ospf:quagga OSPF routing daemon svc:/network/routing/ospf6:quagga OSPF6 routing daemon Quagga daemons can be configured either via the smf(5) framework, or via routeadm(1M), the global dynamic routing management utility. Note that quagga was built without the vtysh (unified vty shell) utility, as it depends on a package not currently distributed with Solaris. COMMANDS
By default, in.routed and in.ripngd, managed by the svc:/network/routing/route and svc:/network/routing/ripng services respectively, are configured as default IPv4/IPv6 routing services. To disable these, either utilize routeadm(1M) or svcadm(1M) as follows: # routeadm -d route # routeadm -d ripng:default disables in.routed and in.ripngd respectively using routeadm(1M). # svcadm disable route:default # svcadm disable ripng:default disables in.routed and in.ripngd respectively using smf(1). Note that these services must be disabled or their quagga counterparts (rip:quagga, ripng:quagga) will not run, since they services specify to the smf framework that they and their quagga counterparts cannot run simultaneously. To enable quagga services, again either routeadm(1M) or svcadm(1M) can be used. Note that quagga services, like in.routed and in.ripngd, specify dependencies on ipv4(6)-routing(forwarding) services, so as with all smf(1) services, ensure the appropriate dependencies are enabled or the services will not start. For example, # routeadm -e rip:quagga # routeadm -e ipv4-routing -u enables quagga's RIPv2 daemon (the -u option above is required, as global ip routing/forwarding settings are not applied to the system until next reboot unless the -u is issued). To do the same via smf(1), # svcadm enable -r rip:quagga The "-r" option recursively enables rip:quagga's dependencies, which include the ipv4-routing service. The status of all routing daemon services can be displayed via routeadm(1M), run without options, or, through smf(1), via the svcs(1) com- mand. Commandline arguments to the quagga daemons can be altered by modifying the routing/daemon-args property, again either via routeadm(1M) or svccfg(1M): # routeadm -m rip:quagga daemon-args="-s" or # svccfg -s rip:quagga setprop routing/daemon-args="-s" # svcadm refresh rip:quagga The "refresh" is required to ensure the daemon re-reads its configuration. DIAGNOSTICS
To see status of all routing services, run routeadm(1M) without options. SEE ALSO
ripngd(8), ospfd(8), ospf6d(8), bgpd(8), zebra(8), routeadm(1M), svcadm(1M), svcs(1), svccfg(1M), smf(5) AUTHORS
See <http://www.quagga.net>, or the Info file for an accurate list of authors. SunOS 5.11 01 Aug 2006 quagga(8)
All times are GMT -4. The time now is 06:56 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy