How to start service as specific user!!!

Hi all,
I need to create an apache service script. All is fine with this and I've imported etc but its running as root and I want to run as apache. Is there an easy way of doing this other than an su -c???
Cheers

Extremely easy:
Modify the httpd.conf and tell it which user and group to run as.

Similar Messages

  • How can I set a specific user log on neme to a specific machine

    Greeting,
    I have a question : 
    How can I set a specific user log on name to a specific machine.
    e.g. 
    Only User.A can log on to PC.A and the other can not.
    Base On :
    Windows Server 2003
    Active Directory Version : 5.2.3790.1812

    Technically we're both right.  This depends on what scenario you're setting this up.
    1)  If you want to say only this person can log on to this machine, and it's not an enterprise solution (meaning you have a handful of computers you want restricted, not all computers) then do something like Yan Li has recommended.  However, I
    do not recommend using any DENY LOCAL LOGON user rights.  In this case, you would have to deny everyone except 'User A' and your Administrators.  If you put a user in ALLOW LOCAL LOGON and DENY LOCAL LOGON, then DENY wins and no one logs in.  Instead,
    you should remove all the settings from ALLOW LOCAL LOGON and add only User A and administrators.
    2) If this is an enterprise solution, use the LOG ON TO option I mentioned before.  Managing user right assignments per machine is very difficult and isn't a practical way to do it on a large scale.  If every user in your domain is assigned a computer
    that they can use, only that user can use that machine and that machine will effectively only allow that user.  For this to work, EVERY user must be restricted to a workstation, if no setting is present, then that user can log on anywhere.  This
    is my preferred solution still.
    Like I said, it depends on your situation to which route is better.  I hope this helps and is clear and easy to understand.
    - If you have my posts to be helpful, or the answer, please mark them appropriately.  Thank you.
    Chris Ream

  • How to get Reports for specific User that how many password has been reset using FIM SSPR in FIM 2010 R2 SSPR

    Hi,
    How to get Reports for specific User that how many password has been reset using FIM SSPR in FIM 2010 R2 SSPR
    Regards
    Anil Kumar

    Hello there Anil,
    A simple way to quickly get a overview is to look at the request history within the portal environment (note that this will expire in a few day based on your environment, after that you would need to FIM Reporting Module - but you could increase this to
    maybe 60 days to so, watch the DB size).
    To do this you could create some custom search scopes of do some custom queries. The creator of the SSPR activities always has the same GUID so you can use that so search.
    In your search scope you can use the following XPath to play with.
    - All Password Reset Requests - /Request[Creator='b0b36673-d43b-4cfa-a7a2-aff14fd90522' and Operation='Put']
    - All Completed Password Reset Requests - /Request[Creator='b0b36673-d43b-4cfa-a7a2-aff14fd90522' and RequestStatus=‘Completed']
    You can play with the "RequestStatus".
    Hope this helps.
    Almero Steyn (http://www.puttyq.com) [If a post helps to resolve your issue, please click the "Mark as Answer" of that post or "Helpful" button of that post. By marking a post as Answered or Helpful, you help others find the answer
    faster.]

  • How can start service from the spfile, on  Windows 2003,

    On Windows 2003, how can start service from the spfile?
    connect to the database as sysdba and startup will start from the spfile.
    Once I use wondows Service for shutting down and startup datbase it start from the pfile.
    Which defeat my ability to change parameters at the system level.

    Hi,
    I'm not sure, but maybe your windows Instance service was created with
    C:\> oradim -new -sid <SID> -startmode m -pfile C:\oracle\product\10.1.0\admin\pfile\init.ora
    then, you need edit this service with command like below:
    C:\> oradim -EDIT -SID <SID> -spfile C:\oracle\product\10.1.0\admin\spfile<SID>.ora
    Take a look on this link before make any changes:
    http://www.stanford.edu/dept/itss/docs/oracle/10g/win.101/b10113/create.htm#i1006533
    Cheers

  • [SOLVED] openvpn issue: how to start service

    Hi all,
    I'm writing because I'm experiencing a problem while trying to start openvpn.
    This morning I removed (i moved to .old)  the rc.conf file and this means i'm using a full systemd configuration.
    The problem is that I don't know how to start openvpn. yesterday I was doing:
    /etc/rc.d/openvpn start
    today I tried again but it does not find such file: it is no more there :S
    i started through:
    openvpn /etc/openvpn/vpnname.conf
    and it seems to work...but is this the only way? It produces lot of output, should I redirect it? I think I can but it's not the optimal solution
    I need to start the service manually.
    I tried:
    # systemctl start [email protected]
    Job for [email protected] failed. See 'systemctl status [email protected]' and 'journalctl -xn' for details.
    # systemctl status [email protected]
    [email protected] - OpenVPN connection to vpnname
    Loaded: loaded (/usr/lib/systemd/system/[email protected]; disabled)
    Active: failed (Result: exit-code) since Thu 2013-02-21 10:37:58 CET; 11min ago
    Process: 1950 ExecStart=/usr/sbin/openvpn --cd /etc/openvpn --config /etc/openvpn/%i.conf --daemon openvpn@%i (code=exited, status=1/FAILURE)
    Feb 21 10:37:58 jily systemd[1]: Starting OpenVPN connection to vpnname...
    Feb 21 10:37:58 jily openvpn[1950]: Options error: In [CMD-LINE]:1: Error opening configuration file: /etc/openvpn/vpnname.conf
    Feb 21 10:37:58 jily openvpn[1950]: Use --help for more information.
    Feb 21 10:37:58 jily systemd[1]: [email protected]: control process exited, code=exited status=1
    Feb 21 10:37:58 jily systemd[1]: Failed to start OpenVPN connection to vpnname.
    Feb 21 10:37:58 jily systemd[1]: Unit [email protected] entered failed state
    Feb 21 10:48:50 jily systemd[1]: Stopped OpenVPN connection to vpnname.
    # journalctl -xn
    -- Logs begin at Mon 2012-11-12 13:06:40 CET, end at Thu 2013-02-21 10:50:32 CET. --
    Feb 21 10:49:39 jily ntpd[574]: peers refreshed
    Feb 21 10:49:39 jily ntpd[574]: new interface(s) found: waking up resolver
    Feb 21 10:49:48 jily ntpd[574]: Deleting interface #7 tun0, 10.8.0.21#123, interface stats: received=0, sent=0, dropped=0, active_time=9 secs
    Feb 21 10:49:48 jily ntpd[574]: peers refreshed
    Feb 21 10:50:32 jily systemd[1]: Starting OpenVPN connection to vpnname...
    -- Subject: Unit [email protected] has begun with start-up
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    -- Documentation: http://www.freedesktop.org/wiki/Software/systemd/catalog/7d4958e842da4a758f6c1cdc7b36dcc5
    -- Unit [email protected] has begun starting up.
    Feb 21 10:50:32 jily openvpn[2020]: Options error: In [CMD-LINE]:1: Error opening configuration file: /etc/openvpn/vpnname.conf
    Feb 21 10:50:32 jily openvpn[2020]: Use --help for more information.
    Feb 21 10:50:32 jily systemd[1]: [email protected]: control process exited, code=exited status=1
    Feb 21 10:50:32 jily systemd[1]: Failed to start OpenVPN connection to vpnname.
    -- Subject: Unit [email protected] has failed
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    -- Documentation: http://www.freedesktop.org/wiki/Software/systemd/catalog/be02cf6855d2428ba40df7e9d022f03d
    -- Unit [email protected] has failed.
    -- The result is failed.
    Feb 21 10:50:32 jily systemd[1]: Unit [email protected] entered failed state
    can you guys please help me understanding this?
    Thanks in advance
    Last edited by virusso80 (2013-04-03 07:54:59)

    tomk wrote:
    virusso80 wrote:
    i started through:
    openvpn /etc/openvpn/vpnname.conf
    and it seems to work...
    A bit vague there - does it or doesn't it?
    yes, it does!
    tomk wrote:
    virusso80 wrote:Feb 21 10:37:58 jily openvpn[1950]: Options error: In [CMD-LINE]:1: Error opening configuration file: /etc/openvpn/vpnname.conf
    This error is generated by openvpn itself, not systemd. What are the ownership/permissions of /etc/openvpn/vpnname.conf?
    the following. I didn't change anything in that setting.
    # ls -l /etc/openvpn/vpnname.conf
    -rwx------ 1 root root 347 Sep 18 2010 /etc/openvpn/vpnname.conf
    thanks

  • IN OBIEE, how to disable drilldown for specific users

    How to disable drilldown action in a hierarchy as manager,lead,reporter.
    in this scenario i need to disable hierarchy for the specified reporter and the upper two peoples will have that functionality
    Awaiting ur reply
    Bala

    The RPD hierarchies themselves have no security attributes on them. So your left with a workaround or two. First one that springs to mind :
    Create the report in question save this as 'Manager' report.
    Create the report in question, disable drilling on the column in question, save this as 'Reporter' report.
    Deploy both reports to the dashboard in seperate sections and use the section permissions (against the Webgroups those users exist in) to determine which section is displayed to which user.
    Maybe more options will come up from other users, but this one is a start.
    Hope this helps,
    Alastair

  • How to start from a specific point on the timeline

    I have a horizontal list of image thumbnails, there are 21 thumbnails and only 7 are visible at one time and scrolls back and forth. It works fine.
    However, when I choose an image that is not in the first seven, say the 8th image, the page loads and the thumbnails goes back to the beginning images (undesirable). When the 8th image page is shown I would like the thumbnails to start at the eigth image, NOT from the beginning again.
    I had the animation positioned to the eight image for the start, with the first 7 off to the left and the second 7 off to the right. But when I saved and loaded it into the page, it just starts from the begining.
    How can I start the thumbnails from a specific desired position, such as the 8th image or the 15th image depending on the page?
    Thank you for any help.
    Anthony

    Hi Anthony,
    Thank you for your post.
    It would be better if you share any link or actual composition with us.
    Regards,
    Devendra

  • After eBS 12.1.1 lay down in existing database how to start services

    Migrate eBS 11.5.10.2 db 9.2.0.6 to new server eBS 12.1.1 db 11.1.0.6.
    Path chosen: db 9.2 upgraded and migrated to db 11.1 using exp/imp to new server
    After eBS 12.1.1 lay down file system in existing db 11.1 how to link existing db to apps tier and to start server services.

    Hi Hussein,
    I did run db tier autoconfig I get:
    AutoConfig completed with errors.
    I checked the adconfig.log and at the part: ADX Database Utility is: Connection could not be obtained; returning null, and at the end I get message:
    [PROFILE PHASE]
      AutoConfig could not successfully execute the following scripts:
        Directory: D:\Oracle\prod\db\tech_st\11.1.0\appsutil\install\PROD_TEST1
          afdbprf.cmd             INSTE8_PRF         1
      [APPLY PHASE]
      AutoConfig could not successfully execute the following scripts:
        Directory: D:\Oracle\prod\db\tech_st\11.1.0\appsutil\install\PROD_TEST1
          adcrobj.cmd             INSTE8_APPLY       1
    AutoConfig is exiting with status 2
    The database is up and listener is up, why is not possible to connect through thin driver.
    And apps tier autoconfig:
    AutoConfig completed with errors.
    Completed execution of AutoConfig
    Checked the log file:
    adadmat.pl              INSTE8_APPLY       1
    Directory: D:\oracle\PROD\inst\apps\PROD_TEST1\admin\install
    adsvalsn.cmd            INSTE8_APPLY       1
    AutoConfig is exiting with status 30
    Thanks
    Adk

  • How to start synchronization autometically while user login

    Hi,
        How can I set the mobile client so that while user log in, it will start synchronization automatically?
    Thanks & Regards,
    Subhayu

    Hi,
    for example you can start the SyncService automatically while the user accesses your applicaiton.
    Furthermore there are autoSync available - check the doku for exact parameters.
    But I think, sync while accessing the application would be the best solution for your behaviour.
    Regards,
    Oliver

  • How to start video from specific time

    hey frnds,
    how can we start video from given time in osmf player and also how to ad cue point to stop it

    I'd like to do something similar , i.e load a streaming resource but have it play from time "n" rather than time 0.
    I looked at clipStart, but that seems to truncate the video to start from time n, in other words when I use clipStart, I dont seem to be able to seek to a point between 0 and "n"
    Using play() and then seek() to "n", seems to work but causes it to buffer twice, which looks really bad to a user who just wants to start the video from time "n".
    Is there another way to achieve this?
    Thanks,
    - abey

  • How to start service & connect with database in network

    Dear friends,
    I have created a Database and tried to connect it from remote computer. I have configured Database name and host name in the remote client computer. But when i net start oracleservice(db name) its not connected. showing Tns error. I started the database in the server side but unable to connect it through network in the client side. What shall I do??. Is the DBservice on server side from manual to Automatic change will have impact of connecting host from client side. Please explain. I am somewhere made mistake. Since, Initially i got connected and worked but the same now shows error. please explain.

    Dear friends,
    I did configured tns names and listener configuration in the server side and also tnsnames.ora in the client side. I use oracle 9i version 1 for server side and oracle 8i for client side. Is there any conflict in recognizing the system. The common error i get is ora-12203 but I started listner service and db service from the server side. and i can able to connect as client from the same host machine as client but could not able through network from remote computer. please tell the problems may involve.

  • How to start service to run Discoverer Viewer on 10.2 EE on web-port 7778?

    I have installed 10.2 EntEdition db on Windows, with OLAP and DataMining options "on", and wish to know what steps can enable me to run Discoverer Viewer (for example, http://mymachine:7778/discoverer/viewer ). What service must be turned on for there to be a response on this port?
    I have already started the DBconsole service (port 1158) , the isqplus service (port 5560 through isqlplusctl) and the tns listener service (through lsnrctl). What service do I start to get a response on port 7778 or 7777?
    I hope I don't need AS to run Discoverer Viewer...
    Thanks for any help,
    Vince

    Discoverer Plus/Viewer comes with AS10g or Business Intelligence Standard Edition downloads, not DB10g.
    AS 10g includes:
    * Oracle HTTP Server
    * Oracle Application Server Containers for J2EE (OC4J)
    * Oracle Application Server Web Cache
    * Oracle Application Server Portal
    * Oracle Application Server Wireless
    * Oracle Sensor Edge Server
    * Oracle Enterprise Manager 10g Application Server Control
    * Oracle Database Server 10g (10.1.0.4.2)
    * Oracle Internet Directory
    * Oracle Application Server Single Sign-On
    * Oracle Application Server Directory Integration Provisioning
    * Oracle Application Server Delegated Administration Services
    * Oracle Application Server Certificate Authority
    * Oracle Application Server Forms Services
    * Oracle Application Server Reports Services
    * Oracle Application Server Personalization
    * Oracle Business Intelligence Discoverer
    * Oracle Security Developer Tools
    * Oracle Application Server Guard
    * OracleAS Backup and Recovery Tool
    BI 10g SE includes:
    * Oracle Business Intelligence Discoverer
    * Oracle HTTP Server
    * Oracle Application Server Containers for J2EE (OC4J)
    * Oracle Enterprise Manager 10g Application Server Control
    * Oracle Application Server Web Cache
    * Oracle Application Server Reports Services
    http://www.oracle.com/technology/software/products/ias/htdocs/101202.html
    Regards,
    Steve.

  • [solved] systemd: Start process as specific user

    Hi,
    I plan to use bittorrent-sync, and want to run it for each user separately. So I would like to modify the service to run the process as the user instead of root. Like bittorrent-sync@user1… and so on.
    Is this possible?
    Thanks
    Last edited by silentsnake (2013-04-27 15:13:25)

    Thanks to you too, WonderWoofy.
    [Unit]
    Description=BitTorrent Sync service
    After=network.target
    [Service]
    ExecStart=/usr/bin/btsync --nodaemon --config /home/%i/.sync/btsync.conf
    Restart=on-abort
    User=%i
    Group=users
    [Install]
    WantedBy=multi-user.target
    This allows me to run one instance per user with its own configuration. Since it's a server with no users actively working on, I think this is the way to go. But will investigate the systemd user session for my desktop clients.

  • How to start services

    I need to start tnslsnr (managed to do it) and oracle with orcl database instance. How to do it?

    I have rw permissions
    The problem seems to be in IPC protocol. System denies access to it. If I comment IPC string in listener.ora and leave only TCP one, listener starts properly
    Results of commads:
    lsnrctl start
    LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 08-OCT-2006 13:29:51
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Starting /mnt/e/oracle/product/10.2.0/db_1/bin/tnslsnr: please wait...
    TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    System parameter file is /mnt/e/oracle/product/10.2.0/db_1/network/admin/listener.ora
    Log messages written to /mnt/e/oracle/product/10.2.0/db_1/network/log/listener.log
    Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    TNS-12555: TNS:permission denied
    TNS-12560: TNS:protocol adapter error
    TNS-00525: Insufficient privilege for operation
    Linux Error: 1: Operation not permitted
    Listener failed to start. See the error message(s) above...
    lsnrctl status
    LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 08-OCT-2006 13:30:10
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    TNS-12541: TNS:no listener
    TNS-12560: TNS:protocol adapter error
    TNS-00511: No listener
    Linux Error: 111: Connection refused
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost.localdomain)(PORT=1521)))
    TNS-12541: TNS:no listener
    TNS-12560: TNS:protocol adapter error
    TNS-00511: No listener
    Linux Error: 111: Connection refused

  • How to Find mailboxes a specific user has full access to

    Hi, 
    I have been searching all the threads but all i am getting is user mailbox is accessible to following users. I run this command:
    Get-Mailbox -resultsize unlimited | Get-MailboxPermission | Where {(!$_.isinherited) -and ($_.user.SecurityIdentifier -ne "S-1-5-10") -and  ($_.accessrights -contains "fullaccess")  } | Select Identity,User
    It is taking so much time as we have 20K mailboxes. Then i tried this:
    Get-Mailbox -server exdm01 -resultsize unlimited | Get-MailboxPermission | Where {(!$_.isinherited) -and ($_.user.SecurityIdentifier -ne "S-1-5-10") -and  ($_.accessrights -contains "fullaccess")  } | Select Identity,User
    It gives me list of those users who have access to mailboxes. But what if i want to see user_A is accessing which mailboxes. we
    need to find out which mailboxes user has FULL MAILBOX ACCESS to NOT which users can access this user's mailbox. I hope you will understand, i DONT want the list which MANAGE FULL ACCESS PERMISSION option gives in GUI, but i WANT vice-versa. 
    We migrated 100 users to different domain, now i want to know these users' association with others' mailboxes. 
    Hasan

    Please check with this
    Get-Mailbox -Server "SERVERNAME" -resultsize "Unlimited" | Get-MailboxPermission | where { ($_.AccessRights -eq "FullAccess") -and ($_.User -like "DOMAIN\TESTUSER") -and ($_.IsInherited -eq $false) -and -not ($_.User -like "NT AUTHORITY\SELF") } | ft User, @{Name="Identity";expression={($_.Identity -split "/")[-1]}} -Autosize
    Replace "DOMAIN\TESTUSER" with "Yourdomain\Yourusername" to check,  which will list the users which testuser has FullAccessPermission on.
    @Amit
    Apologize for the duplicate posting.
    Thanks, MAS
    Please mark as helpful if you find my comment helpful or as an answer if it does answer your question. That will encourage me - and others - to take time out to help you.

Maybe you are looking for

  • How can I create a link that allows users to convert a Wiki pages into PDF format.

    I am working on an enterprise Wiki library site collection, but I want to create a link named "Convert to PDF" , which allow users to convert the current Wiki into a pdf file. I need this link to be displayed some where in all the exsiting Wikis page

  • I just want to connect to the hotel wifi...

    There is no Ethernet port in my room. To log into the wifi network you have to visit the ToS page and enter a password. I have an apple tv and an airport express, neither of which can join the network because of the ToS. Right now I'm really just foc

  • Server silently fails on messages with a huge To: header; any ideas?

    Our incoming relay (sendmail) occasionally receives messages which were sent to many recipients (sometimes it's spam, sometimes valid maillists to which our users have subscribed). The messages in question have a To: header which is typically over 6k

  • Making Windows Media Player my default player for WMV files

    I installed Flip4Mac and set it as my default player for WMV files. Now when I open large WMV files, I have to wait 10-20 seconds for them to load. I want to go back to Windows Media Player as the default player for all my WMV files - how do I do tha

  • Which macbook pro to buy?

    Hello all, I am in the market to buy a macbook pro. Doesn't have to be anything spectacular, just something to serve me in the meantime. I want to spend no more than $1,100, therefore i decided to purchase on ebay. But my main question is - Is it bet