Running LaunchDaemon as root

Hi All
I've got a problem with a LaunchDaemon. I have to boot a Mac every Wednesday on 09:00, 13:00 and 20:00. I did it with a LaunchDaemon. The LaunchDaemon starts only on the first Time (09:00) and then on 13:00 and on 20:00 there is nothing happens.
How did I do it?
I did all the jobs a logged in user with admin privileges:
sudo vi /usr/bin/runBootToWin.sh
sudo vi /Library/LaunchDaemon/com.local.runBootToWin.plist
sudo launchctl load /Library/LaunchDaemon/com.local.runBootToWin.plist
sudo reboot
PS: I can run the Shell-Script without any error ;-)
Content of the Shell-Script
#!/bin/bash
/usr/sbin/bless --device /dev/disk0s4 --setBoot --legacy --nextonly
echo j > /Users/stud/Log/successful_`date '+%s'`.txt
shutdown -r now
Path of the script: /usr/bin
Permissons: 755, root:whell
Content of the LaunchDaemon
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>Label</key>
               <string>com.local.runStartCalendarInterval</string>
    <key>ProgramArguments</key>
    <array>
                         <string>/usr/bin/runBootToWin.sh</string>
</array>
    <key>StartCalendarInterval</key>
    <array>
        <dict>
            <key>Hour</key>
            <integer>9</integer>
            <key>Minute</key>
            <integer>0</integer>
            <key>Weekday</key>
            <integer>3</integer>
        </dict>
        <dict>
            <key>Hour</key>
            <integer>13</integer>
            <key>Minute</key>
            <integer>0</integer>
            <key>Weekday</key>
            <integer>3</integer>
        </dict>
        <dict>
            <key>Hour</key>
            <integer>20</integer>
            <key>Minute</key>
            <integer>0</integer>
            <key>Weekday</key>
            <integer>3</integer>
        </dict>
    </array>
</dict>
</plist>
Path of the plist: /Library/LaunchDaemon
Permissons: 644, root:wheel
Test LaunchDaemon
I did a "Test LaunchDaemon" this Daemon works perfect (Path and permissions are the same. See above).
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>Label</key>
       <string>com.local.runStartCalendarInterval</string>
    <key>ProgramArguments</key>
    <array>
       <string>/usr/bin/say</string>
       <string>-v</string>
       <string>Alex</string>
       <string>Welcome to OS X 10.7 Lion</string>
    </array>
    <key>StartCalendarInterval</key>
    <array>
        <dict>
            <key>Hour</key>
            <integer>13</integer>
            <key>Minute</key>
            <integer>5</integer>
            <key>Weekday</key>
            <integer>3</integer>
        </dict>
        <dict>
            <key>Hour</key>
            <integer>13</integer>
            <key>Minute</key>
            <integer>10</integer>
            <key>Weekday</key>
            <integer>3</integer>
        </dict>
    </array>
</dict>
</plist>
Can any body help me?
Kind regards

I forget to tell, Windows (Batch) boots to fixed time back to Mac ;-)

Similar Messages

  • Oracle 11gR2 RAC: Running the script root.sh problem

    Folks,
    Hello. I am installing Oracle 11gR2 RAC using 2 Virtual Machines (rac1 and rac2 whose OS are Oracle Linux 5.6) in VMPlayer and according to the tutorial
    http://appsdbaworkshop.blogspot.com/2011/10/11gr2-rac-on-linux-56-using-vmware.html
    I have been installing Grid Infrastructure using runInstaller from step 1 to step 9 of 10 in both VM rac1 and rac2.
    Now, I am running the script root.sh in VM rac1 and rac2 as below:
    [root@rac1 /]# /u01/app/grid/root.sh
    Output:
    CRS-4123: ohasd is starting
    FATAL: Module oracleoks not found
    FATAL: Module oracleadvm not found
    FATAL: Module oracleacfs not found
    ACFS-9121: Failed to detect /dev/asm/.asm_ctl_spec
    ACFS-9310: ADVM/ACFS installation failed.
    ACFS-9311: not all components were detected after installation
    'UpdateNodeList' was successful.
    [root@rac1 /]#
    [root@rac2 /]# /u01/app/grid/root.sh
    Output:
    CRS-4123: ohasd is starting
    FATAL: Module oracleoks not found
    FATAL: Module oracleadvm not found
    FATAL: Module oracleacfs not found
    ACFS-9121: Failed to detect /dev/asm/.asm_ctl_spec
    ACFS-9310: ADVM/ACFS installation failed.
    ACFS-9311: not all components were detected after installation
    Start of resource "ora.asm_init" failed.
    Failed to start ASM.
    Failed to start Oracle Clusterware Stack.
    [root@rac2 /]#
    As we see the output above, rac1 and rac2 get the same problems. in addition, rac2 fails to start ASM and Clusterware stack. Thus, I have 2 questions:
    First, the common problem for rac1 and rac2 :
    1)Module "oracleoks, oracleadvm, oracleacfs" not found
    2)/dev/asm/.asm_ctl_spec not detected
    3)ADVM/ACFS installation failed
    Do the above 3 factors affect Grid and DataBase Installation later ? If yes, how to solve these problems ?
    Second, how to start ASM and Clusterware stack in rac2 ?
    Thanks.

    you have 2 options:
    1. OEL 5.6 comes with 2 kernels, the original Red Hat, and Oracle UEK, you can choose not to use UEK
    or the one i would recommend:
    2. Upgrade Grid Infrastructure,
    *11.2.0.3.1* (patch 13348650, released about a 1 month ago) supports ACFS on UEK (starting with 2.6.32.200 IIRC)

  • Danger of running EmelFM2 as root: configuration blown away!

    Say you have a customized EmelFM2 configuration in /home/user/.config/emelfm2/ running as an ordinary user. Close EmelFM2, open up a root terminal and issue the 'emelfm2' command. Then close EmelFM2 and you'll see that the files within /home/user/.config/emelfm2/ are now owned by root! Run EmelFM2 as an ordinary user after this and these files will be overwritten with the default EmelFM2 configuration files, owned again by user rather than root. Your original customized configuration is lost forever ...
    I think I've pinned down where the problem lies in the source: lines 305-307 in 'config/e2_cl_option.c' read:
    if (e2_cl_options.config_dir == NULL)
    usedir = g_getenv ("XDG_CONFIG_HOME");
    If a configuration location isn't specified on the EmelFM2 command line, it defaults the location using $XDG_CONFIG_HOME which will still be set to the user's configuration directory even within a root terminal.
    Any ideas about this, or is it really an upstream bug?

    knopwob wrote:
    how did you open the root terminal? It sounds, like you are using
    su
    instead of
    su -
    Ah yes, yes ... you are so right. Using the latter (forcing a login shell?) indeed works as expected, using /root/.config/emelfm2/ by default.
    So, if I want to run EmelFM2 as root from (say) a keyboard shortcut, Gmrun or an Openbox menu item, what would be the safe way to do this? (I tried gksudo with the -l option, but it doesn't seem to work.)
    Edit: Of course, just 'gksudo emelfm2' should, and seems to, work okay.
    Last edited by ninian (2010-12-23 00:35:42)

  • I get error when I run Terminal /bin/bash: Please run this as root.

    Help!
    Every time I open Terminal I get:
    /bin/bash: Please run this as root.
    [Process completed]
    Any suggestions?

    FLYFI5H wrote:
    Help!
    Every time I open Terminal I get:
    /bin/bash: Please run this as root.
    [Process completed]
    Any suggestions?
    I wonder if there's a permissions problem with your /bin/bash. If you go to the /bin directory (presumably with the Finder's Go -> Go to Folder command, as Terminal isn't working for you), then do a "Get Info" on bash, what do you see as the permissions? Mine shows "system: Read & Write", "wheel: Read only", and "everyone: Read only".
    If you can't run Terminal, your diagnostic options may be limited. Do you have a second Mac that you could use to investigate the problem with this Mac in "target disk mode"?

  • I want to run KDE as root?

    It seems that I can't run KDE 3.2 as root.
    Anyone know how I can do this?
    I like being able to run KDE as root, because I like the GUI environment for setting up new users etc.
    I could do this in Gentoo.
    Also I don't run it as root all the time, and yes I know about the security risks involved, but it's on my home PC, and it's what I want to do.
    When I run startx from root it complains it can't find startkde.
    Thanks,
    Snorkel

    Well you can run as root when you log in (KDM)
    It is not a good idea to run as root all the time....but then its your system you can do what you want...
    Have you got
    exec startkde
    In your .xinitrc file ?
    Mr Green

  • MQ running as non-root

    hi,
    Is it possible to run message broker as non-root? If yes, how?
    Thank you.

    Yes - you can run as non-root.
    The default imqbroker data (var) directory is set up only to be readable by root, however you can run as a different instance name and it will then be owned by the new user (and that will be only readable by that user)
    e.g.
    imqbrokerd -name mybroker
    This (on solaris, you path will vary on other platforms) will create a new directory:
    /var/imq/instances/mybroker
    [you can also change owner of the imqbroker directory instead]

  • Su vs sudo : run dolphin as root[SOLVED]

    Hi,
    I am trying to understand the difference in how su and sudo work.
    I tried to run dolphin as root to add a mount point at /media/drivex
    with su :
    I type dolphin at the prompt
    and I get this error
    <unknown program name>(2348)/: KUniqueApplication: Cannot find the D-Bus session server: "Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken."
    <unknown program name>(2347)/: KUniqueApplication: Pipe closed unexpectedly.
    dolphin doesnt work
    however,
    when I use sudo dolphin from a regular user,
    dolphin works even though I get a number of errs
    Error: "/var/tmp/kdecache-myx" is owned by uid 1000 instead of uid 0.
    kdeinit4: preparing to launch /usr/lib/libkdeinit4_kbuildsycoca4.so
    kbuildsycoca4 running...
    this is repeated a few times, as though it keeps retrying.
    1.Anyway why does su not work when sudo does?
    2. So when does one use su vs sudo?
    3. I did this yesterday and was able to add a mnt point for my esata drive. Today, I had to do it again. The mount point had disappeared. what may have happened?
    thanks
    Last edited by myxolam (2009-10-16 11:27:15)

    The only reason I use "su" (as "su -") is to create a new, clean session, just as logging in with that user.
    Using "sudo", or "su" without the dash creates a new environment inheriting the session variables from the current user, thus GUI apps can work fine (as they have inherited the $DISPLAY, $DBUS_SESSION_BUS_ADDRESS and other variables used by X applications).
    Anyway, as an alternative to "su", you could use "sudo -i".
    Another difference which is applicable to Ubuntu and maybe Arch, is that "su"ing to root you are asked for the root password, while using "sudo" you are asked for your password, not the "root" one.

  • Must run opatch as root user to apply patch #13348650 GI PSU (11.2.0.3.1)?

    Must patch #13348650 GI PSU (11.2.0.3.1) literally be executed as the root user?
    Or can opatch be executed:
    * With an individual sudo entry for opatch by the "oracle" or "grid" user?
    * By membership in /etc/sudoers (perhaps temporary for the duration of the patching)
    I see that at 11.2.0.3 the grid home gets locked for security purposes. And evidently running opatch "with root privileges" unlocks/relocks the grid home during the patching process.
    Thanks.
    Dana

    Thanks for your suggestion, I thought I have gone through the documents and prepared my self to start installing, if you can kindly help me to pin point the missing link that CRS do not recognize first node during root.sh execution in second node it will be great

  • [SOLVED]Home directory confusion when running Emacs as root

    Hi, just set up my first Arch system.  I've installed emacs-nox, and it insists on using the .emacs file of the one normal user I have set up, even when I'm not logged in as that user.  Bits in that .emacs file which use a tilde to signify $HOME do point to /root when I'm logged in as root, causing various weirdnesses.
    Here's what --debug-init says when I run emacs as root; if there's anything apart from the complaint about the "missing" (not in /root) haskell-mode files, I'm afraid it means nothing to me
    edit: nope, all of that junk really was about the haskell-mode stuff, so I'm deleting it since that's "fixed" by copying that stuff to /root/.emacs.d.  Now --debug-init tells me nothing and I still have no idea why emacs insists on using the dotfile in /home/j
    Last edited by cuns (2011-12-25 23:21:06)

    I have this issue, too if starting emacs after doing a "su" - when logging in as root it works as expecte. Googling brought the emacs changelog:
    1987-05-12  Richard M. Stallman  (rms at prep)
        * startup.el (command-line): If running under `su',
        use user's original login name to get init file.
        Otherwise use $HOME.
    A workaround would be to define an alias like
    alias emacs='emacs -u root'
    in your root's ".bashrc" (/root/.bashrc).
    Hope that helps,
    greetings
    matse

  • [SOLVED] [sudo] allow user to run commands as root

    Hello,
    I want to run programs like netctl and vpnc as normal user without typing in my password. This is what I've come up with for /etc/sudoers:
    myusername ALL = (root) NOPASSWD: /usr/bin/netctl, /usr/bin/vpnc, /usr/bin/vpnc-disconnect
    But running e.g. "netctl start someprofile" fails because access to the file `someprofile' is denied -- the file is owned by root and only root may read it.
    Doesn't running programs as root also mean that these programs can read files owned by root? Or is this a misconception and I should change permissions to the corresponding files?
    Thanks & Regards
    Edit:
    I just realized, that, with the setup above, "sudo netctl start someprofile" does work without demanding a password. This is nice. But can it be tuned further so that I don't have to prepend "sudo"?
    Last edited by ball (2013-05-23 19:22:17)

    @qinohe:
    I am in group wheel and I already have
    %wheel ALL=(ALL) ALL
    myusername ALL=NOPASSWD: /usr/bin/netctl, /usr/bin/vpnc, /usr/bin/vpnc-disconnect
    So this would be same, wouldn't it?
    I just realized, that "sudo netctl start someprofile" does work without demanding a password. This is nice. But can it be tuned further so that I don't have to prepend "sudo"?
    Last edited by ball (2013-05-23 18:50:46)

  • [SOLVED] Running cupsd without root permission.

    Hello,
    This is a newbie question about running the CUPS daemon as a regular user.
    The Arch Wiki page on CUPS said to "start the cups ... daemon" but did not say how.
    I searched the web and found that you can start it as a root user with the following command:
    # cupsd
    At this point, I can setup a printer, and everythings prints properly. However, I have to restart cupsd each time I reboot. Being a root only command, I can't add it to my startup script.
    What do I do?
    Here are some more details:
    I installed 64 bit arch a few days ago.
    I'm not using a desktop environment, just openbox window manager. The startup script I am using is the openbox-session autostart script.
    If I run the command "cupsd" as a regular user, I get bash: /usr/bin/cupsd: Permission denied. This is how I know it will not work. This rules out a typo in the startup script.
    Here is a list of all the steps/commands used to install cups:
    Turn printer on
    $ su
    enter root password
    # pacman -S cups
    # pacman -S cups-filters
    # pacman -S ghostscript
    # pacman -S gsfonts
    # pacman -S gutenprint
    # cupsd
    # exit
    $ firefox -new-window http://localhost:631
    Adding Printers and Classes
    Add Printer
    Login as root with the root password
    Select the local printer detected
    Default Name, Description, Location
    Select the model: Canon PIXMA MP510
    Default options
    Printed a test page.
    Got excited.
    Spent 4 hours trying to run cupsd in a startup script.
    I tried to add my regular user to the lp group.
    $ su
    enter root password
    # gpasswd -a michael lp
    $ exit
    $ groups michael
    confirmed that I'm added to lp
    $ cupsd
    I tried to chmod /usr/bin/cupsd, but got a weird error message "Child exited on signal 15". I used pacman to uninstall then reinstall cups undo this attempt.
    $ su
    enter root password
    # chmod a+rwx /usr/bin/cupsd
    # exit
    $ cupsd
    Some sites said to edit /etc/cups/cupsd.conf and comment out some lines. However, none of the lines mentioned exist in my /etc/cups/cupsd.conf file. I tried to comment out a few that looked close, but no success. I ended up commenting out everything and still no success. I used pacman to uninstall then reinstall cups undo this attempt, returning /etc/cups/cupsd.conf to it's original condition. Here is the file:
    # "$Id: cupsd.conf.in 7888 2008-08-29 21:16:56Z mike $"
    # Sample configuration file for the CUPS scheduler. See "man cupsd.conf" for a
    # complete description of this file.
    # Log general information in error_log - change "warn" to "debug"
    # for troubleshooting...
    LogLevel warn
    # Only listen for connections from the local machine.
    Listen localhost:631
    Listen /run/cups/cups.sock
    # Show shared printers on the local network.
    Browsing On
    BrowseLocalProtocols dnssd
    # Default authentication type, when authentication is required...
    DefaultAuthType Basic
    # Web interface setting...
    WebInterface Yes
    # Restrict access to the server...
    <Location />
    Order allow,deny
    </Location>
    # Restrict access to the admin pages...
    <Location /admin>
    Order allow,deny
    </Location>
    # Restrict access to configuration files...
    <Location /admin/conf>
    AuthType Default
    Require user @SYSTEM
    Order allow,deny
    </Location>
    # Set the default printer/job policies...
    <Policy default>
    # Job/subscription privacy...
    JobPrivateAccess default
    JobPrivateValues default
    SubscriptionPrivateAccess default
    SubscriptionPrivateValues default
    # Job-related operations must be done by the owner or an administrator...
    <Limit Create-Job Print-Job Print-URI Validate-Job>
    Order deny,allow
    </Limit>
    <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document>
    Require user @OWNER @SYSTEM
    Order deny,allow
    </Limit>
    # All administration operations require an administrator to authenticate...
    <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
    </Limit>
    # All printer operations require a printer operator to authenticate...
    <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
    </Limit>
    # Only the owner or an administrator can cancel or authenticate a job...
    <Limit Cancel-Job CUPS-Authenticate-Job>
    Require user @OWNER @SYSTEM
    Order deny,allow
    </Limit>
    <Limit All>
    Order deny,allow
    </Limit>
    </Policy>
    # Set the authenticated printer/job policies...
    <Policy authenticated>
    # Job/subscription privacy...
    JobPrivateAccess default
    JobPrivateValues default
    SubscriptionPrivateAccess default
    SubscriptionPrivateValues default
    # Job-related operations must be done by the owner or an administrator...
    <Limit Create-Job Print-Job Print-URI Validate-Job>
    AuthType Default
    Order deny,allow
    </Limit>
    <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document>
    AuthType Default
    Require user @OWNER @SYSTEM
    Order deny,allow
    </Limit>
    # All administration operations require an administrator to authenticate...
    <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
    </Limit>
    # All printer operations require a printer operator to authenticate...
    <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
    </Limit>
    # Only the owner or an administrator can cancel or authenticate a job...
    <Limit Cancel-Job CUPS-Authenticate-Job>
    AuthType Default
    Require user @OWNER @SYSTEM
    Order deny,allow
    </Limit>
    <Limit All>
    Order deny,allow
    </Limit>
    </Policy>
    # End of "$Id: cupsd.conf.in 7888 2008-08-29 21:16:56Z mike $".
    Thanking those in advance that can help.
    Last edited by mrallaire (2013-10-20 05:37:52)

    Well, the problem is now resolved. After using my wife's printer for 1.5 months I finally had the time to try it again. I got it working. I entered a lot of different commands, but the following is what finally did the trick. The ideas came from ThomasR on another forum post: https://bbs.archlinux.org/viewtopic.php?id=35567
    <code>
    # killall cupsd
    # groupadd printadmin
    # usermod -aG printadmin myusername
    # nano /etc/cups/cupsd.conf
    Add the following to the bottom of the file and save:
       SystemGroup printadmin
    # cupsd
    Add the printer using the web-based administration interface (in the web browser, go to URL http://localhost:631)
    </code>
    I looks like the lp group stuff that I entered in my first post was a few commands short of being effective. The printadmin group commands worked wonderfully. After rebooting the computer the change stuck, so I never had to restart the cups daemon each time I rebooted the computer.
    I don't know what way is better to start the cups daemon, cupsd or systemctl.
    <code>
    # cupsd
    vs.
    # systemctl enable cups.service
    # systemctl start cups.service
    </code>

  • Finder running applications as root

    Alright, so this has been driving me crazy since I upgraded to leopard. Anytime I save a new file, it defaults to permissions as root:wheel. I've been going through tons of different permissions fixes and nothing seems to work.
    Whenever I open an application it always runs as root, not my user. If I open Terminal the bash session does open up under my name though. Now, if I open TextEdit from Terminal(as my username) and save to my Desktop, it does create the correct permissions. When opening TextEdit from Finder or Dock, it creates with root permissions.
    So whenever you run an application normally, should it run as root?(I think not).
    WHY IS FINDER DOING THIS?

    My friend and I discussed this further, and we now believe a shoddy installer of some kind may be the culprit. In any case...
    Repairing permissions (from the Leopard DVD) did not remove the 's' permission. I had to chmod it manually myself, as you suggested. After this, I tried logging out & back in, but that did not fix it, since root owns launchd (only I logged out, not root). A reboot did bring the fix to fruition.
    As a final summary, if you seem to have problems accessing files you saved yourself, then you may have the problem indicated on this thread. Verify it by opening Terminal and executing this command:
    ls -l /sbin/launchd
    You should get this:
    -rwxr-xr-x 1 root wheel 288768 Oct 1 20:54 /sbin/launchd
    If you get this:
    -rwsr-xr-x 1 root wheel 288768 Oct 1 20:54 /sbin/launchd
    (the 4th character is 's' instead of 'x') then you have this problem. Quit all applications, except Terminal. Execute this in Terminal:
    sudo chmod 755 /sbin/launchd
    Feed it your password. Reboot. You should now be able to save & open documents you create from this point on. Documents already created will have to be repaired manually, using "Get Info" from the Finder, or chmod from the Terminal.
    For a badly damaged user account, you may want to abandon all hope & start over with a fresh account.
    Note: This procedure won't work unless you have admin privileges on your user account.

  • ZSNES fails to run as non-root user (X BadAlloc Error) [Solved]

    Recently, I noticed that ZSNES failed to start unless it was run by root. The program, when called by a non-root user, would hang after generating the error:
    X Error of failed request: BadAlloc (insufficient resources for operation)
    Major opcode of failed request: 153 (GLX)
    Minor opcode of failed request: 3 (X_GLXCreateContext)
    Serial number of failed request: 25
    Current serial number in output stream: 26
    Does anyone know what permissions need to be fixed to resolve this?
    Though I'm not sure if it's useful, here's a backtrace of the error:
    #0 0xb79eeab5 in _XReply () from /usr/lib/libX11.so.6
    #1 0xb79ea10b in XSync () from /usr/lib/libX11.so.6
    #2 0xb7f50cd4 in ?? () from /usr/lib/libSDL-1.2.so.0
    #3 0xb7f5920a in ?? () from /usr/lib/libSDL-1.2.so.0
    #4 0xb7f46e7b in SDL_VideoQuit () from /usr/lib/libSDL-1.2.so.0
    #5 0xb7f1d7dd in SDL_QuitSubSystem () from /usr/lib/libSDL-1.2.so.0
    #6 0x082f6994 in ?? ()
    #7 0xb7b59611 in __run_exit_handlers () from /usr/lib/libc.so.6
    #8 0xb7b5969d in exit () from /usr/lib/libc.so.6
    #9 0xb79f0dde in _XDefaultError () from /usr/lib/libX11.so.6
    #10 0xb7f59002 in ?? () from /usr/lib/libSDL-1.2.so.0
    #11 0xb79f0f16 in _XError () from /usr/lib/libX11.so.6
    #12 0xb79ede8e in ?? () from /usr/lib/libX11.so.6
    #13 0xb79edee7 in ?? () from /usr/lib/libX11.so.6
    #14 0xb79eebe0 in _XReply () from /usr/lib/libX11.so.6
    #15 0xb79ea10b in XSync () from /usr/lib/libX11.so.6
    #16 0xb7f50cd4 in ?? () from /usr/lib/libSDL-1.2.so.0
    #17 0xb7f54ca7 in ?? () from /usr/lib/libSDL-1.2.so.0
    #18 0xb7f5ad77 in ?? () from /usr/lib/libSDL-1.2.so.0
    #19 0xb7f5b3b0 in ?? () from /usr/lib/libSDL-1.2.so.0
    #20 0xb7f47502 in SDL_SetVideoMode () from /usr/lib/libSDL-1.2.so.0
    #21 0x082f77c4 in ?? ()
    #22 0x082f5997 in ?? ()
    #23 0x082f5e41 in ?? ()
    #24 0x082f3ab4 in ?? ()
    Thanks for any help in this matter.
    Last edited by szim90 (2012-11-20 04:52:23)

    May I completely change the subject and ask why you might need ZSNES specifically?
    Personally I can recommend using something that is actively maintained and updated such as retroarch (wiki) combined with the snes9x-next module (the module is actively maintained).
    Another good alternative is mednafen, although it does a lot more than just SNES emulation.

  • Adobe Reader 8.1.2 does not run as non-root user

    Hi,
    First off - this applies to an x86_64 machine, which I'm attempting to run with nspluginwrapper and firefox. I find that I am able to open webpages with PDF content as root, but not as a normal user....
    All permissions set correctly as far as I can see.
    Totally lost here - any suggestions?
    Cheers, Jon

    How are you installed Reader? Using any package manager, or manualy from Adobe.com? What distribution you use? Have you tried strace? Any debug in command line?

  • Running as non-root user

    How do I run the application server instance as non-root user on port <= 1024?
    I am using Sun One Application Server 7.0
    Thanks in advance
    Sri.

    Two options:
    1) Start an instance using the root user, but configure the instance to switch to a non-root user upon startup. Use the "User" directive in the init.conf file of an instance to specify the user
    http://docs.sun.com/source/816-7155-10/crinit.html#17116
    You should also see the "Run As" setting of an instance in the administrative GUI.
    2) Via the ndd command, you can set the smallest non-priveleged port number. See ndd documentation concerning the following setting:
    tcp_smallest_nonpriv_port
    Once you make the ndd setting, you can use a non-root user to listen on a port number that is equal to or greater than the value of the tcp_smallest_nonpriv_port setting.
    Chris

Maybe you are looking for