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
xend(1M)						  System Administration Commands						  xend(1M)

NAME
xend - xVM control daemon SYNOPSIS
/usr/lib/xend DESCRIPTION
The xend daemon provides control of the Solaris xVM domains on a system. Its administrative interface is xm(1M). Service Management Facility Support The xend service is managed by the service management facility, smf(5), under the service identifier: svc:/system/xvm/xend:default Administrative actions on this service, such as enabling, disabling, or requesting restart, can be performed using svcadm(1M). The ser- vice's status can be queried using the svcs(1) command. xend Properties The xend service instance has the properties listed below. These properties are administered by means of svccfg(1M) and svcadm(1M). config/default-nic Specifies the default network interface used for guest domain networking. By default, the empty string is specified, in which case the first interface listed in the output of dladm(1M) show-link is used. If you need to use a different interface, for example, bge0, you should change this property appropriately. config/dom0-cpus The number of physical CPUs to be used for the virtual CPUs of the control domain (dom0). The default of 0 implies that each virtual CPU will be placed on its own physical CPU where possible. Note that physical CPUs can still be shared between dom0 and other domains unless they are configured not to do so. config/dom0-min-mem The minimum amount of memory guaranteed to the control domain (dom0). The default is 196 (MB). config/enable-dump Controls whether a domain core dump should be created if a domain crashes. Dumps are generated in /var/xen/dump and can be processed with mdb(1). The default is true. config/vncpasswd Sets the password required by any client connecting to a VNC session for a guest domain. Defaults to "" (no password). VNC password authentication is not secure and should not be used for securing guest domain consoles. config/vnc-listen Address to listen on for VNC connections. By default this is 127.0.0.1, which has a special meaning: only users or processes with the PRIV_VIRT_MANAGE privilege are allowed to connect, and they must be logged on locally. If you set this to any other value, then anyone will be able to connect to VNC sessions, regardless of authorization. config/xend-relocation-address Address that xend listens on for relocation requests. If blank or not present, all interfaces are used. The default is 127.0.0.1. config/xend-relocation-hosts-allow A space-separated list of regular expressions. If the host name of a system matches any one of the given regular expressions, it is allowed to connect and interact with the relocation server, if the server has been enabled by the xend-relocation-server property. The default is ^localhost$. config/xend-relocation-server Controls whether the xend relocation server (for live migration) should listen for relocation requests on TCP port 8002. The default is true. config/xend-unix-server Controls whether the legacy HTTP server interface should be provided on the local machine. The default is true. EXAMPLES
Example 1 Modifying an Existing Property Use the following sequence of commands to modify an existing xend property. # svccfg -s svc:/system/xvm/xend:default listprop # svccfg -s svc:/system/xvm/xend:default setprop config/dom0-cpus = 1 # svcadm refresh svc:/system/xvm/xend:default Example 2 Enabling Live Migration By default, xend listens only on the loopback address for requests from the localhost. If you want to allow other machines to live migrate to the local machine, you need to configure xend appropriately. For example: # svccfg -s svc:system/xvm/xend svc:/system/xvm/xend> setprop config/xend-relocation-address = "" svc:/system/xvm/xend> setprop config/xend-relocation-hosts-allow = "^flax$ ^localhost$" svc:/system/xvm/xend> end # svcadm refresh svc:system/xvm/xend:default && svcadm restart svc:system/xvm/xend:default FILES
/var/log/xen/xend.log /var/log/xen/xend-debug.log Log files for xend. /var/xen/dump/ Domain crash dump files. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWxvmu | +-----------------------------+-----------------------------+ |Interface Stability |Volatile | +-----------------------------+-----------------------------+ SEE ALSO
mdb(1), dladm(1M), svcadm(1M), svccfg(1M), svcs(1), xm(1M), attributes(5), privileges(5), smf(5), xVM(5) SunOS 5.11 14 Jan 2009 xend(1M)
All times are GMT -4. The time now is 12:03 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy