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
APACHE2(8)							      apache2								APACHE2(8)

NAME
apache2 - Apache Hypertext Transfer Protocol Server SYNOPSIS
apache2 [ -d serverroot ] [ -f config ] [ -C directive ] [ -c directive ] [ -D parameter ] [ -e level ] [ -E file ] [ -k start|restart|graceful|stop|graceful-stop ] [ -R directory ] [ -h ] [ -l ] [ -L ] [ -S ] [ -t ] [ -v ] [ -V ] [ -X ] [ -M ] SUMMARY
apache2 is the Apache HyperText Transfer Protocol (HTTP) server program. It is designed to be run as a standalone daemon process. When used like this it will create a pool of child processes or threads to handle requests. In general, apache2 should not be invoked directly, but rather should be invoked via /etc/init.d/apache2 or apache2ctl. The default Debian configuration requires environment variables that are defined in /etc/apache2/envvars and are not available if apache2 is started directly. However, apache2ctl can be used to pass arbitrary arguments to apache2. DOCUMENTATION
The full documentation is available in the apache2-doc package or at http://httpd.apache.org/docs/2.2/ . Information about Debian specific changes and configuration can be found in /usr/share/doc/apache2/README.Debian.gz . OPTIONS
-d serverroot Set the initial value for the ServerRoot directive to serverroot. This can be overridden by the ServerRoot directive in the configu- ration file. -f config Uses the directives in the file config on startup. If config does not begin with a /, then it is taken to be a path relative to the ServerRoot. The default is /etc/apache2/apache2.conf. -k start|restart|graceful|stop|graceful-stop Signals apache2 to start, restart, or stop. See Stopping Apache for more information. -C directive Process the configuration directive before reading config files. -c directive Process the configuration directive after reading config files. -D parameter Sets a configuration parameter which can be used with <IfDefine> sections in the configuration files to conditionally skip or process commands at server startup and restart. -e level Sets the LogLevel to level during server startup. This is useful for temporarily increasing the verbosity of the error messages to find problems during startup. -E file Send error messages during server startup to file. -R directory When the server is compiled using the SHARED_CORE rule, this specifies the directory for the shared object files. -h Output a short summary of available command line options. -l Output a list of modules compiled into the server. This will not list dynamically loaded modules included using the LoadModule directive. -L Output a list of directives together with expected arguments and places where the directive is valid. -M Dump a list of loaded Static and Shared Modules. -S Show the settings as parsed from the config file (currently only shows the virtualhost settings). -t Run syntax tests for configuration files only. The program immediately exits after these syntax parsing tests with either a return code of 0 (Syntax OK) or return code not equal to 0 (Syntax Error). If -D DUMP_VHOSTS is also set, details of the virtual host con- figuration will be printed. If -D DUMP_MODULES is set, all loaded modules will be printed. -v Print the version of apache2, and then exit. -V Print the version and build parameters of apache2, and then exit. -X Run apache2 in debug mode. Only one worker will be started and the server will not detach from the console. SEE ALSO
apache2ctl(8), /usr/share/doc/apache2/README.Debian.gz Apache HTTP Server 2008-04-05 APACHE2(8)
All times are GMT -4. The time now is 12:27 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy