Opening a RAW socket - how to become superuser to do so ?

Hi, I'm writing my first test application, so I thought I'd convert an easy known quantity like ping. My problem here seems to be that to open a RAW socket I need to have a UID of 0, and I haven't got that or can I set it. So how is it done ? My various printf's to the console show me -
[Session started at 2008-09-20 00:17:47 +0100.]
Running pingmain
Running as UID 501
Running as EUID 501
Have set UID to 0, result code: -1
Have set EUID to 0, result code: -1
PING (null) (192.168.1.100): 56 data bytes
socket error: Operation not permitted
Failed to launch simulated application: Unknown error.
501 also happens to be the UID I'm assigned on my iMac, is it simply the case of su;ing to root and then starting xcode.. doesn't seem to be the right thing to do somehow.
Can anyone give me any hints onto what I should be doing here ?

Doing this the right way is a very messy process:
http://developer.apple.com/documentation/Security/Reference/authorizationref/Reference/reference.html#//appleref/c/func/AuthorizationExecuteWithPrivileges
or
http://developer.apple.com/samplecode/BetterAuthorizationSample/listing6.html

Similar Messages

  • No matter what i try i cannot get Photoshop or Bridge to open Camera Raw Filters, how do i fix this?

    no matter what i try i cannot get Photoshop or Bridge to open Camera Raw Filters, how do i fix this?
    I have windows 8 and ive tried everything i can to open it but it refuses to let me.

    Let's get some information first.
    What is your version of Adobe Camera Raw, Bridge, and Photoshop?
    What files are you trying to open in ACR? If Raw, for what camera model?

  • Raw Socket always drop packets and return Destination Unreachable

    Ho folks,
    I have an application program that opens a raw socket to expect for UDP message incoming from the network.
    However everytime I receive a package the Solaris 10 OS return a ICMP - Destination (port) unreachable, and no message
    is send to my application.
    I did test the same application in linux and it worked well, all that I have to do was disable ICMP responses using iptables.
    Just to make things clear:
    In linux the OS was sending the ICMP - Destionation (port) unreachable, however my program was
    receiving the packets anyway. So just to stop those messages I did use the iptables. However, in
    Solaris 10 the ICMP response is sending back and no message is forward to my application.
    Would your guys help me to solve that?
    Thanks in advance

    Folks, here I go again...:-)
    I have been spent some time, trying to figure out why it is not work. I read in books and internet, that BSD raw sockets DO NOT allow us to receive TCP/UDP packages. However the linux implementation DOES allow. That is because it work in linux but not in solaris.
    Given that, such information is 100% true (book: Unix NetworkProgramming, 3rd edition), I would like to ask your guys what I can do to solve my problem.
    Basically what I need is create an application that:
    1) Allows to bind thousand of sockets at the same time (it is a media server that handles thousand of RTP connections)
    This I believe I can do using socket multiplexing (e.g. select() )
    2) Read not only the packet data, I need to retrieve the whole packet address (including IP, UDP, Upper Layers...)
    When using SOCK_DGRAM with IPPROTO_UDP, I can get the messages but I can't get the IP header
    3) Uses something like raw socket to send messages, here I believe I can use raw socket with no problem, is just sending messages
    Thanks and Regards

  • In camera raw how large should I open my raw file before converting it to a TIF file?

    in camera raw how large should I open my raw file before converting it to a TIF file---2736 x 3648 (10.0 MP), 3072x4096 (12.7 MP) or 3840x5120? (19.7 MP).  I want a sharp TIF file.   I'm shooting with an Olympus E-510, 10.0 MP camera?
    thanks - Ken
    [email protected]

    rasworth wrote:
    There is no advantage to saving or opening other than at the native resolution.
    Actually, not entirely true. In the case of Fuji DSLR's you would do better to double the rez in Camera Raw as that matches the interpolation that the Fuji software does in their higher quoted "effective resolutions"(it ain't real resolution mind you but it can benefit certain image types).
    If you know for an absolute fact you need more resolution than the native file has, you really might want to test upsampling in Camera Raw as it has a newly tuned upsample (put in in ACR 5.2) that is an adaptive Bicubic algorithm that is either the normal Bicubic or Bicubic Smoother depending on the size–and that's something even Photoshop can't do.
    But in general unless you know for a fact you need the image bigger (or have a Fuji camera) processing at the file's native size is the most efficient.

  • I have Photoshop CS 5.5 version, but I've just changed my camera and I can't open my raw files. I need for my new camera Photoshop CC and Camera Raw 8.7 version. How can I do to update the old version? Thank you

    I have Photoshop CS 5.5 version, but I've just changed my camera and I can't open my raw files. I need for my new camera Photoshop CC and Camera Raw 8.7 version. How can I do to update the old version? Thank you

    Thank you for your valuable advice. I've solved the problem right now.
    Thanks
    2015-03-16 15:06 GMT+01:00 c.pfaffenbichler <[email protected]>:
        I have Photoshop CS 5.5 version, but I've just changed my camera and
    I can't open my raw files. I need for my new camera Photoshop CC and Camera
    Raw 8.7 version. How can I do to update the old version? Thank you
    created by c.pfaffenbichler
    <https://forums.adobe.com/people/c.pfaffenbichler> in *Photoshop General
    Discussion* - View the full discussion
    <https://forums.adobe.com/message/7302535#7302535>

  • How to open Camera Raw in Bridge, it comes up with the following error

    How to open Camera Raw in Bridge, it comes up with the following error Bridge parent application is not Active   Bridge requires that a qualifing product has been lanched at least once to enable this feature.  It opens in Photoshop CS6 & Elements 10 but not Bridge?

    You need to look at all programs in your uninstall list, and see if you spot any old trials that are no longer active.
    Camera Raw in Bridge and PS are the same program, so its not the program but access.  Would have been nice it you had stated OS, but here are locatons of camera raw for both OS.
    Win           Users/[user name]/AppData/Roaming/Adobe/Adobe Photoshop CS5/Adobe Photoshop CS5 Settings    note: appdata a hidden file.
    Mac          Users/[user name]/Library/Preferences

  • Can't open .orf RAWs from Olympus E-510 - how to install camera-raw?

    Hi
    i'm new to adobe photoshop cs3 and just wanted to try opening my
    RAWs from my olympus.
    Adobe always says it can't open these files.
    i have already downloaded the "camera raw.8bi" but do not know how to use it.
    i tried to give adobe a new plugins-folder but it seems not using it.
    any help?

    The installation instructions are on the page from which you downloaded it... They do change occasionally, so it's a good idea to pay attention to them.
    Cheers,
    Art

  • How do I open my raw files in Photoshop that have been shot with a Nikon D1700?

    I can't open my raw images in Photoshop, I have updated Photoshop but it is still coming up with ...' Could not complete your request because the file appears to be from a camera model which is not supported by the installed version of Camera Raw. Please visit the Camera Raw help documentation for additional information'.  The photos have been taken with a Nikon D1700

    It means that you'll either have to use the Adobe DNG converter and convert your RAW files to DNG first, or upgrade to CS6, or use Lightroom to export (TIFF) to Photoshop.
    I used the DNG converter for years before finally upgrading Photoshop.  It was an extra step, but it just became part of my workflow - put card into reader, download RAW files, go grab a beer, batch convert to DNG, drink beer, edit in Photoshop.  But had I known about how powerful Lightroom was I would have switched over to LR long before and just used that to export to Photoshop when necessary.

  • How do I open my raw files in photoshop elements 12 editor-..my files convert to jpegs

    How do I open my raw files in photoshop elements 12 editor.  I have a MacBook. I use the iPhoto and move the files I want to work on into elements, but it converts the raw files into jpeg files.
    Thanks for your help!!!

    Are you opening the image directly from iPhoto? Right click & choose Edit in >> Photoshop Elements Editor
    This link is old but gives information on set up. It relates to PSE11 but the principle is the same. In iPhoto prefs you navigate to the editor application in the support files folder. Start from Finder by holding down the Alt (Optn key) and choosing Library.
    http://helpx.adobe.com/photoshop-elements/kb/photoshop-elements-iphoto-mac-os.html

  • How do i open a raw file in lightroom

    how do I open a raw file in lightroom?

    Yes, those are good links, but let's clean up the terminology too so we're all talking the same language.
    There is no "open" in Lightroom when referring to photos.
    You can "import" photos into Lightroom ... this means that now Lightroom has registered the photo's location and other pertinent information into its database, but it does not store the photo itself in the Lightroom database (or anywhere else in Lightroom), so Lightroom never contains your photos; the photo continues to be stored on one of your hard drives, wherever you want it to be, and the file is visible in your operating system.
    Once you have imported the photos, then Lightroom can perform tasks on the photos, such as Develop, Print, e-mail or upload, etc. and once you have imported photos into Lightroom, you should not move or rename or delete them outside of Lightroom.

  • I use a Nikon d610 and my Photoshop Elements 10 won't open in camera raw. How can I fix it? The camera version is 6.7.0339

    i'm using a Nikon D610 now and Photoshop Elements 10 won't open files in camera raw. How can I fix the issue? The version of camera raw is 6.7.0339

    Hi,
    The D610 requires camera raw 8.3 which is not compatible with your PSE 10.
    You need to upgrade to PSE 12 (or later) or use the free Adobe DNG converter. The converter will take a flder containg your NEF files and converte them to DNG files. The DNG files can then be used by PSE 10.
    DNG  Converter 8.7
    Mac – http://www.adobe.com/support/downloads/detail.jsp?ftpID=5858
    Win – http://www.adobe.com/support/downloads/detail.jsp?ftpID=5864
    Useful Tutorial
    http://www.youtube.com/watch?v=0bqGovpuihw
    Brian

  • After updating my browser my "open a new tab" button has become useless, how do I fix this?

    I recently updated to Firefox 3.6.17 and now my "Open a new tab" + button has become useless, it is still there, it just doesn't work anymore, how can I fix this, any suggestions?

    Uninstall the Ask toolbar and it should work again. There is a compatibility issue with the Ask toolbar and Firefox that prevents new tabs from being opened.
    There are a couple of places to check for the Ask toolbar:
    * Check the Windows Control panel for the Ask Toolbar - http://about.ask.com/apn/toolbar/docs/default/faq/en/ff/index.html#na4
    * Also check your list of extensions, you may be able to uninstall it from there - https://support.mozilla.com/kb/Uninstalling+add-ons

  • I can't open the RAW files from my new Nikon D4s camera in photoshop? How do I download the latest software for RAW files?

    I can't open the RAW files from my new Nikon D4s camera in photoshop? How do I download the latest software for RAW files? Cheers!

    What version of Photoshop are you running?  You will need at CS5, CS6, CC or CC2014.  Each version needs a different ACR-plug-in to open files from that camera.
    If you are on CS4 or earlier, you'll need to upgrade—or, in the alternative; look for, download, instal, launch and run the free, stand-alone DNG Converter 8.6 on each file of raw NEF files to convert them to raw DNGs first so you can open them in your version of Photoshop and ACR plug-in higher than 2.4.

  • All of a sudden I can't open my raw photos in lightroom 4, how come?

    All of a sudden I can't open my raw photos in lightroom 4, how come?

    BethGoetz wrote:
    I'm having the same problem but I think it's because I need the version of RAW. The only upgrade info I can find is for CS5.  I have Elements and Lightroom 4.  How do I get the updated RAW version?
    Lightroom has Camera Raw built in.  You can't upgrade it.  Just upgrade to the latest version of Lightroom.

  • How do I open Camera Raw dialogue box in Elements 11?

    How do I open Camera Raw dialogue box in Elements 11

    What version of mac os x are you using?
    It sounds like you set Enable to Camera Raw instead of setting Format to Camera Raw.
    Where it says Format, set that to All Readable Documents and for the most part you shouldn't have to change that.
    After you click on the jpeg file in the Open Dialog, set the Format to Camera Raw
    A video actually showing the above
    (the first several seconds of the video)
    http://www.youtube.com/watch?v=5o9fRzUGN04

Maybe you are looking for

  • Resizing images published through flickr, but I don't want it to.

    I set up a flickr connection with LR3, very cool. However it resized the image to 1024x768, though I have nothing set under 'resize'. Why is it doing that?  Do I have to set it to resize everything to 9000 pix and not enlarge for it to keep the origi

  • When connecting my shuffle to aux on car it displays cannot read why

    when connecting my shuffle to aux on car it displays cannot read why as on other equipment it works fine

  • Best method to design a table which can point to two different entities

    I have the following set of tables, Dimension1, Dimension2, Dimension3 Dimension1 is dependant on the both Dimensions2 and Dimension3,  however the data mapping with Dimension3 will be very sparse (say only 1% of data will be available remaining will

  • Conditionally enabling data fields

    hey guys,i have a select control with two options(house and land)and i have twelve fileds for installment payments.now i want all the twelve to be active when the "house" option is selected and only the first six fields when "land" option is selected

  • RFC adppter error

    Hello, I have a problem with my soap rfc scenario. It is working as expected whn i used RWB test tool. Failing when i call web service. It is giving in the adpter. I checked Xi message and pay load is exactly same when i called web service. Can anybo