Setuid program and permission denied

We have a wrapper written in C++ that handles our code promotion. It is setuid (u+s) so that any developer can move files to directory owned by our repository owner. This program calls another script that invokes a make. Within this make is a shell macro that invokes which. In Solaris 9 this all works fine. In Solaris 10 it dies with "csh: Permission denied", which is caused by the which. Is Solaris 10 behaving differently? Here is a sample that mimics what we do:
#include <sys/wait.h>
#include <stdlib.h>
#include <errno.h>
#include <unistd.h>
#include <string.h>
#include <sys/statvfs.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <dirent.h>
#include <setjmp.h>
#include <stdio.h>
#include <sys/param.h>
//#define MAXPATHLEN 200
int main(
char lib_so_src[MAXPATHLEN] ;
char lib_so_lib[MAXPATHLEN] ;
(void)sprintf( lib_so_src, "/mbs/prg/blue10/ref/cvt/a100/test.so.7" ) ;
(void)sprintf( lib_so_lib, "/mbs/prg/blue10/ref/lib/test.so.7" ) ;
setuid(1000);
execlp( "/staff/rstacey/bin/compile", "/staff/rstacey/bin/compile", "", NULL );
where compile is:
cd /mbs/prg/blue10/ref/cvt/a100
echo here
which sbpkg

I suspect you will find that someone has set your "which" script to SUID (if, indeed, this error is originating with that command).
Solaris 10 no longer permits SUID shell scripts. I can't recall off the top of my head how to revert to the old (insecure) behavior and a brief web search didn't yield anything...
But from your description it should be unnecessary because your initial wrapper has already raised your UID to root's.
You might want to look into the process privileges (ppriv) to make this whole setup even more secure.

Similar Messages

  • Spry and Permission denied to call method XMLHttpRequest.open

    hi all,
    I'm using Spry to call an RSS feed and display on a webpage.
    I'm running this locally on my computer for testing measures and it
    works fine in IE but i'm getting a message saying "Permission
    denied to call method XMLHttpRequest.open" when using FF.
    I googled around a bit and found that it has to do something
    with FF's cross domain security, but nothing much more than that. I
    was just wondering if anyone would be able to point me to a good
    resource that explains the issue more and how to fix it, keeping it
    in mind that i want to fix it using Dreamweaver's Spry
    options.

    5h4k42u1u wrote:
    > if i'd use the spry tables with an RSS feed, it'll work
    with IE but not with
    > FF, but then when i try it with a local XML file, it'll
    work with FF but not
    > IE? In fact, why does it have trouble at all with the
    local file, there should
    > be no cross domains to worry about, right?
    You're right that there should be no problem with a local
    file, but
    without seeing the XML file and your code, it's impossible to
    say what's
    causing the problem. I think your best bet is to post a more
    detailed
    question in the Spry forum.
    http://www.adobe.com/go/labs_spry_pr1_forum
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Can't access/mount hard drive, Permission denied message in Disk Utility.

    Hello,
    Need some help here. I was upgrading from 10.4 to 10.5. I got an error message when I tried to upgrade from the DVD. My hard drive had an exclamation mark by it and I was told I would need to erase it in order to install. When I tried quitting the installer, I had to go through startup disk to pick my Hard drive, which showed it had 10.4 installed. When I tried restarting, it would only boot off of the DVD. I checked startup disk again, but my hard drive was now not visible. I have a tower with a back-up system on it. When I picked it, it started up fine. I went under disk utility and the hard drive is listed, but is ghosted/grayed out. Repair & Verify Disk permissions are ghosted back as well.When I try to repair or verify disk, it says it can't it gives me the disk number and sector number and Permission Denied. I poked around on disk utility for info, and it looks like it doesn't have a mount point anymore and under permissions, it says that they are not enabled. So, apparently the access privileges have been erased & I don't know how to mount my disk again. I'm assuming I need some sort of commmand line in Terminal to restore my priveleges or get it to auto-mount. I do not want to erase my drive to upgrade. All my applications are on that drive. Please help!
    Message was edited by: koobiak

    See if Niel's User Tip can help you: I accidentally set a disk's permissions to No Access .

  • Archiving - Permission denied - cannot be open write program

    Hi, Gurus
    I executed a write program (SARA) and the result is partialy ok , as you can see below ( the job log and spool.)
    Questions:
    1.- there is not an archive file in C?
    2.- Permission denied --> Message BA161
    I checked object config,file and logical path and everything seems tobe ok.
    Anyone cant help on this?
    Thanks
    Job log:
    Job started
    Step 001 started (program MMREO050N, variant ZMM_001,
    Archiving session 000009 is being created
    Start of data processing
    Operating system message: Permission denied
    1 of 1 materials ( 100 %) processed
    Job finished
    Job spool:
    MARD: 1000 2000 material master record was archived
    MARC: 1000 long text(s) archived
    MARC: 1000 material master record was archived
    MAKT: E material master record was archived
    MARM: ST material master record was archived
    MLAN: ES material master record was archived
    MARA:  change documents archived
    MARA:  change documents archived
    MARA:  long text(s) archived
    MARA:  class assignments archived
    MARA:  material master record was archived
    Archive file C:\MM_MM_MATNR_20100316_210452_0.ARCHIVE cannot be opened for write program

    Dear,
    Either the file deleted from its physical location on drive C [OR] you dont have authorizations to write into the file (check with SU53 for any missing object for the user).
    Also check: Re: error while archiving the material master
    http://help.sap.com/saphelp_45B/helpdata/en/7e/c6c2ad98a711d2b429006094b9ea64/content.htm
    Regards,
    Syed Hussain.

  • Can't exec external program (Permission denied)-

    Hi All
    We have mentioned external command in SM69 and executed the command in SM49, I am getting the below error message.
    Command executed:      
    /home/ SMIME/run/signand.sh :
    Target host:            dt02
    Can't exec external program (Permission denied)
    External program terminated with exit code 1
    Program wise also I am unable to execute the command & I am getting sy-subrc eq 1. Please help me which authorization object is missing to run the external command.
    u_comm =  /home/ SMIME/run/signand.sh
      CALL 'SYSTEM'
      ID 'COMMAND' FIELD u_comm
      ID 'TAB'     FIELD rt-sys.
    Please confirm.

    Can you please check the permission for /home/ SMIME/run/signand.sh, perform below command
    chmod 755 /home/ SMIME/run/signand.sh
    and retry.

  • I just purchased a Creative Cloud subscription and I was trying to install Photoshop, but I receive the error message 'Error Starting Creative Cloud - cookies dir: cannot make folder /cookies Permission denied (error 13)'

    I just purchased a Creative Cloud subscription and I was trying to install Photoshop, but I receive the error message 'Error Starting Creative Cloud - cookies dir: cannot make folder /cookies Permission denied (error 13)'

    Hi Arjun and tphc,
    try the solution I found and tested at this other thread:
    http://forums.adobe.com/message/5628798
    I think it could be helpful for you too!
    Cheers,
    Marco

  • Hello I am on a macbook pro (retina IOS 9) i have installed xcodes and command line tools but codeblocks does not compile, terminal gives this message /Users/MacPc/Desktop/Untitled1: Permission denied      any one has a solution

    Hello I am on a macbook pro (retina IOS 9) i have installed xcodes and command line tools but codeblocks does not compile, terminal gives this message /Users/MacPc/Desktop/Untitled1: Permission denied      any one has a solution?? please...

    Back up all data before proceeding.
    This procedure will unlock all your user files (not system files) and reset their ownership, permissions, and access controls to the default. If you've intentionally set special values for those attributes on any of your files, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it, but you do need to follow the instructions below.
    Step 1
    If you have more than one user, and the one in question is not an administrator, then go to Step 2.
    Triple-click anywhere in the following line on this page to select it:
    sudo find ~ $TMPDIR.. -exec chflags -h nouchg,nouappnd,noschg,nosappnd {} + -exec chown -h $UID {} + -exec chmod +rw {} + -exec chmod -h -N {} + -type d -exec chmod -h +x {} + 2>&-
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    Launch the built-in Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window by pressing command-V. I've tested these instructions only with the Safari web browser. If you use another browser, you may have to press the return key after pasting.
    You'll be prompted for your login password, which won't be displayed when you type it. Type carefully and then press return. You may get a one-time warning to be careful. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The command may take several minutes to run, depending on how many files you have. Wait for a new line ending in a dollar sign ($) to appear, then quit Terminal.
    Step 2 (optional)
    Take this step only if you have trouble with Step 1, if you prefer not to take it, or if it doesn't solve the problem.
    Start up in Recovery mode. When the OS X Utilities screen appears, select
              Utilities ▹ Terminal
    from the menu bar. A Terminal window will open. In that window, type this:
    res
    Press the tab key. The partial command you typed will automatically be completed to this:
    resetpassword
    Press return. A Reset Password window will open. You’re not going to reset a password.
    Select your startup volume ("Macintosh HD," unless you gave it a different name) if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button.
    Select
               ▹ Restart
    from the menu bar.

  • SM69 error-Can't exec external program (Permission denied).with exit code 1

    Hi All,
    I am trying to execute UNIX script via creating commend line in SM69.
    But i am getting following error:
    "Can't exec external program (Permission denied)
    External program terminated with exit code 1"
    Can any one guide me what could be the cause of this error.
    Any Help will be appreciated.
    Thanks & Regards

    First use SU53, to see if you have all SAP-authoritys.
    But I think, you have no authority to execute UNIX-programs.
    or your UNIX-script is not executable?

  • Systemd-tmpfiles and gvfs - permission denied

    systemd-tmpfiles[2346]: stat(/run/user/1000/gvfs) failed: Permission denied
    Can anyone tell me why this is in my journalctl ?  Sometimes many times, depending on the application I use,
    other times, once or twice in a 5 hour uptime.

    same here with systemd. From log file:
    localhost systemd-tmpfiles[12898]: stat(/run/user/1000/gvfs) failed: Permission denied
    [gabx@magnolia:1000]$ ls -al
    dr-x------ 2 gabx users 0 Aug 31 21:32 gvfs
    [gabx@magnolia:1000]$ chmod -R u+w gvfs
    [gabx@magnolia:1000]$ ls -al
    dr-x------ 2 gabx users 0 Aug 31 21:32 gvfs
    As you can see, can't even change permission for user gabx to write the directory.
    EDIT:
    [gabx@magnolia:~]$ systemctl status systemd-tmpfiles-setup.service
    systemd-tmpfiles-setup.service - Recreate Volatile Files and Directories
    Loaded: loaded (/usr/lib/systemd/system/systemd-tmpfiles-setup.service; enabled)
    Active: active (exited) since Fri, 31 Aug 2012 21:32:00 +0200; 46min ago
    Docs: man:tmpfiles.d(5)
    Process: 353 ExecStart=/usr/bin/systemd-tmpfiles --create --remove (code=exited, status=0/SUCCESS)
    CGroup: name=systemd:/system/systemd-tmpfiles-setup.service
    [gabx@magnolia:~]$ sudo systemctl status systemd-tmpfiles-setup.service
    systemd-tmpfiles-setup.service - Recreate Volatile Files and Directories
    Loaded: loaded (/usr/lib/systemd/system/systemd-tmpfiles-setup.service; enabled)
    Active: active (exited) since Fri, 31 Aug 2012 21:32:00 +0200; 47min ago
    Docs: man:tmpfiles.d(5)
    Process: 353 ExecStart=/usr/bin/systemd-tmpfiles --create --remove (code=exited, status=0/SUCCESS)
    CGroup: name=systemd:/system/systemd-tmpfiles-setup.service
    Following the above status, it seems everything is OK, so I am not sure this permission denied is really an issue.
    Last edited by gabx (2012-08-31 23:31:01)

  • What can I do to create a disk image when I continue to get the prompt "permission denied"?  I have run the permission repair, restarted the computer and nothing changes.

    I want to create a disk image for important information.  I continue to get "Permission Denied" even though I have run the disk utility for repair and verify disk permissions.  Is there a solution for this?

    I had same problem as I was trying to build a windows iso following the bootcamp instructions (last evening).  I learned you cannot create a disk image at root due to changes in the operating system made by apple.  As a user (even an admin user) you can only create a disk image below root (such as in your desktop).  Any attempt to creat an image at root will return permission denied.
    The Apple Disk Utility (on three macs I have tried so far) defaults to creating an iso image at the root.  If you tell it to create the image - you immediately get a permission denied error.
    None of the iso creation instructions I have found on apple site so far speak to this. 

  • Get 403 Permission Denied on Firefox only. Uninstalled and reinstalled. Not the fix. Please advise.

    I am able to access my website on IE and Chrome, but get the 403 Permission Denied on Firefox. Prior to this I would only be able to see the top half of my website (http://www.appliedspirituality.com) and not the entire home page. I have cleared cache, cookies. I have uninstalled and reinstalled Firefox.

    Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
    Note: ''This will temporarily log you out of all sites you're logged in to.''
    To clear cache and cookies do the following:
    #Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
    #Under "Time range to clear", select "Everything".
    #Now, click the arrow next to Details to toggle the Details list active.
    #From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
    #Now click the ''Clear now'' button.
    Further information can be found in the [[Clear your cache, history and other personal information in Firefox]] article.
    Did this fix your problems? Please report back to us!

  • HT1810 i am trying to ping my printer and i get permission denied  firewall turned off. help!

    PING 169.254.1.1 (169.254.1.1): 56 data bytes
    64 bytes from 169.254.1.1: icmp_seq=0 ttl=255 time=0.065 ms
    64 bytes from 169.254.1.1: icmp_seq=1 ttl=255 time=0.146 ms
    64 bytes from 169.254.1.1: icmp_seq=2 ttl=255 time=0.184 ms
    ^Z
    [25]+  Stopped                 ping 169.254.1.1
    Admins-iMac:~ Admin$ ping 169.254.1.2
    PING 169.254.1.2 (169.254.1.2): 56 data bytes
    ping: sendto: Permission denied
    ping: sendto: Permission denied
    Request timeout for icmp_seq 0
    ping: sendto: Permission denied
    Request timeout for icmp_seq 1
    ping: sendto: Permission denied
    Request timeout for icmp_seq 2
    ping: sendto: Permission denied
    Request timeout for icmp_seq 3
    Dont get why ?  First off it printed fine . Now no matter what addresses i give it it doesnt work.
    E0 is 169.254.1.1    printer remote 169.254.1.2   mask is /16
    default gaetway for both devices is each other.
    Beggars belief!!

    Did you solve this issue?  I'm getting the same permission denied message!!
    ssdevmac1:~ $ ping 10.1.30.117
    PING 10.1.30.117 (10.1.30.117): 56 data bytes
    ping: sendto: Permission denied
    ping: sendto: Permission denied
    Request timeout for icmp_seq 0
    ping: sendto: Permission denied
    Request timeout for icmp_seq 1
    ping: sendto: Permission denied
    Request timeout for icmp_seq 2
    ping: sendto: Permission denied
    Request timeout for icmp_seq 3
    ping: sendto: Permission denied
    Request timeout for icmp_seq 4
    ping: sendto: Permission denied
    Request timeout for icmp_seq 5
    ping: sendto: Permission denied
    Request timeout for icmp_seq 6
    ping: sendto: Permission denied
    Request timeout for icmp_seq 7
    ping: sendto: Permission denied
    Request timeout for icmp_seq 8

  • Trying to update software and I get permission denied

    How can I fix "permission denied"when trying to update software

    Do it while logged into an admin user account.

  • I tried downloading the free trail on my macbook and i keep getting this message cookies dir: cannot make folder /cookies: Permission denied (error 13)

    error 13 what does that mean? and how to fix it?

    Try below steps
    Click on Finder and then hold Command + Shift + G keys on your keypad
    It will open Go to folder window, type  exactly ~/Library and click on Go ( make sure to open ~/Library not /Library, there will be two Library folders )
    Then open Application Support
    Right click on Adobe folder and open Get info
    Under sharing and permission click on lock icon and unlock it
    Click on symbol and Add Administrator and your current user name ( if not added )
    Then give read and write permission to user name, admin, system and every one
    Then click on Gear icon and select 'Apply to Enclosed
    Click on lock icon
    Try to install Creative Cloud App.

  • Continous mDNSPlatformTCPConnect ("Permission denied") errors. What does this mean? What should I do to resolve this?

    MB Air (1.8GHz); MacOS 10.9.2
    In the System Log I see frequent and, at times, continuous (up to several per second) entries like the following:
    4/16/14 9:00:13.936 AM mDNSResponder[73]: ERROR: mDNSPlatformTCPConnect - connect failed: socket 63: Error 13 (Permission denied) length 16
    While I can't point to any specific system issues that result from this, I do have the following (perhaps related, perhaps unrelated) problems:
    1. Over time, memory pressure gradually increases until, every few days, I need to re-boot. I'm not accustomed to having to perform "maintenance boots" under MacOS. (For example, my Mac Mini, also running Mavericks, runs for weeks/months without needing to re-boot; it's my household media server, running iTunes but that's about it.) Feels like a memory leak to me.
    2. TimeMachine is unpredictable for me. When I have TimeMachine enabled, it will do incremental backups for up to a day or so, then the machine ends up in what looks like a run loop, with apps (such as Mail) in a "not responding" state. Can't reliably force-quit those apps at that time - pretty much have to hard-boot the machine and restart. (Note that I'm using a QNAP NAS disk array; has worked fine in the past, pre Mavericks; I'm running latest/greatest NAS firmware.)
    At any rate, any insights regarding the DNS error (what it means; what triggers it; whether I should care; if so, what I should do to quell it; etc.) deeply appreciated.
    Doug Engfer

    May I ask why you want me to remove the AV software?
    Because it's the likely cause of your problem, and even if it isn't, it's worse than useless.
    1. This is a comment on what you should and should not do to protect yourself from malicious software ("malware") that circulates on the Internet. It does not apply to software, such as keystroke loggers, that may be installed deliberately by an intruder who has hands-on access to your computer, or who has been able to log in to it remotely. That threat is in a different category, and there's no easy way to defend against it. If you have reason to suspect that you're the target of such an attack, you need expert help.
    If you find this comment too long or too technical, read only sections 5, 6, and 10.
    OS X now implements three layers of built-in protection specifically against malware, not counting runtime protections such as execute disable, sandboxing, system library randomization, and address space layout randomization that may also guard against other kinds of exploits.
    2. All versions of OS X since 10.6.7 have been able to detect known Mac malware in downloaded files, and to block insecure web plugins. This feature is transparent to the user. Internally Apple calls it "XProtect."
    The malware recognition database used by XProtect is automatically updated; however, you shouldn't rely on it, because the attackers are always at least a day ahead of the defenders.
    The following caveats apply to XProtect:
    It can be bypassed by some third-party networking software, such as BitTorrent clients and Java applets.
    It only applies to software downloaded from the network. Software installed from a CD or other media is not checked.
    As new versions of OS X are released, it's not clear whether Apple will indefinitely continue to maintain the XProtect database of older versions such as 10.6. The security of obsolete system versions may eventually be degraded. Security updates to the code of obsolete systems will stop being released at some point, and that may leave them open to other kinds of attack besides malware.
       3. Starting with OS X 10.7.5, there has been a second layer of built-in malware protection, designated "Gatekeeper" by Apple. By default, applications and Installer packages downloaded from the network will only run if they're digitally signed by a developer with a certificate issued by Apple. Software certified in this way hasn't necessarily been tested by Apple, but you can be reasonably sure that it hasn't been modified by anyone other than the developer. His identity is known to Apple, so he could be held legally responsible if he distributed malware. That may not mean much if the developer lives in a country with a weak legal system (see below.)
    Gatekeeper doesn't depend on a database of known malware. It has, however, the same limitations as XProtect, and in addition the following:
    It can easily be disabled or overridden by the user.
    A malware attacker could get control of a code-signing certificate under false pretenses, or could simply ignore the consequences of distributing codesigned malware.
    An App Store developer could find a way to bypass Apple's oversight, or the oversight could fail due to human error.
    Apple has so far failed to revoke the codesigning certificates of some known abusers, thereby diluting the value of Gatekeeper and the Developer ID program. These failures don't involve App Store products, however.
       For the reasons given, App Store products, and—to a lesser extent—other applications recognized by Gatekeeper as signed, are safer than others, but they can't be considered absolutely safe. "Sandboxed" applications may prompt for access to private data, such as your contacts, or for access to the network. Think before granting that access. Sandbox security is based on user input. Never click through any request for authorization without thinking.
    4. Starting with OS X 10.8.3, a third layer of protection has been added: a "Malware Removal Tool" (MRT). MRT runs automatically in the background when you update the OS. It checks for, and removes, malware that may have evaded the other protections via a Java exploit (see below.) MRT also runs when you install or update the Apple-supplied Java runtime (but not the Oracle runtime.) Like XProtect, MRT is effective against known threats, but not against unknown ones. It notifies you if it finds malware, but otherwise there's no user interface to MRT.
    5. The built-in security features of OS X reduce the risk of malware attack, but they are not, and never will be, complete protection. The best defense is always going to be your own intelligence. With the possible exception of Java exploits, all known malware circulating on the Internet that affects a fully-updated installation of OS X 10.6 or later takes the form of so-called "Trojan horses," which can only have an effect if the victim is duped into running them. The threat therefore amounts to a battle of wits between you and the scam artists. If you're smarter than they think you are, you'll win. That means, in practice, that you always stay within a safe harbor of computing practices. How do you know when you're leaving the safe harbor? Below are some warning signs of danger.
    Software from an untrustworthy source
    Software of any kind is distributed via BitTorrent. or Usenet, or on a website that also distributes pirated music or movies.
    Software with a corporate brand, such as Adobe Flash Player, doesn't come directly from the developer’s website. Do not trust an alert from any website to update Flash, your browser, or anything else.
    Rogue websites such as Softonic and CNET Download distribute free applications that have been packaged in a superfluous "installer."
    The software is advertised by means of spam or intrusive web ads. Any ad, on any site, that includes a direct link to a download should be ignored.
    Software that is plainly illegal or does something illegal
    High-priced commercial software such as Photoshop is "cracked" or "free."
    An application helps you to infringe copyright, for instance by circumventing the copy protection on commercial software, or saving streamed media for reuse without permission.
    Conditional or unsolicited offers from strangers
    A telephone caller or a web page tells you that you have a “virus” and offers to help you remove it. (Some reputable websites did legitimately warn visitors who were infected with the "DNSChanger" malware. That exception to this rule no longer applies.)
    A web site offers free content such as video or music, but to use it you must install a “codec,” “plug-in,” "player," "downloader," "extractor," or “certificate” that comes from that same site, or an unknown one.
    You win a prize in a contest you never entered.
    Someone on a message board such as this one is eager to help you, but only if you download an application of his choosing.
    A "FREE WI-FI !!!" network advertises itself in a public place such as an airport, but is not provided by the management.
    Anything online that you would expect to pay for is "free."
    Unexpected events
    You open what you think is a document and get an alert that it's "an application downloaded from the Internet." Click Cancel and delete the file. Even if you don't get the alert, you should still delete any file that isn't what you expected it to be.
    An application does something you don't expect, such as asking for permission to access your contacts, your location, or the Internet for no obvious reason.
    Software is attached to email that you didn't request, even if it comes (or seems to come) from someone you trust.
    I don't say that leaving the safe harbor just once will necessarily result in disaster, but making a habit of it will weaken your defenses against malware attack. Any of the above scenarios should, at the very least, make you uncomfortable.
       6. Java on the Web (not to be confused with JavaScript, to which it's not related, despite the similarity of the names) is a weak point in the security of any system. Java is, among other things, a platform for running complex applications in a web page, on the client. That was always a bad idea, and Java's developers have proven themselves incapable of implementing it without also creating a portal for malware to enter. Past Java exploits are the closest thing there has ever been to a Windows-style virus affecting OS X. Merely loading a page with malicious Java content could be harmful.
    Fortunately, client-side Java on the Web is obsolete and mostly extinct. Only a few outmoded sites still use it. Try to hasten the process of extinction by avoiding those sites, if you have a choice. Forget about playing games or other non-essential uses of Java.
    Java is not included in OS X 10.7 and later. Discrete Java installers are distributed by Apple and by Oracle (the developer of Java.) Don't use either one unless you need it. Most people don't. If Java is installed, disable it—not JavaScript—in your browsers.
    Regardless of version, experience has shown that Java on the Web can't be trusted. If you must use a Java applet for a task on a specific site, enable Java only for that site in Safari. Never enable Java for a public website that carries third-party advertising. Use it only on well-known, login-protected, secure websites without ads. In Safari 6 or later, you'll see a lock icon in the address bar with the abbreviation "https" when visiting a secure site.
    Stay within the safe harbor, and you’ll be as safe from malware as you can practically be. The rest of this comment concerns what you should not do to protect yourself.
    7. Never install any commercial "anti-virus" or "Internet security" products for the Mac, as they all do more harm than good, if they do any good at all. If you need to be able to detect Windows malware in your files, use one of the free security apps in the Mac App Store—nothing else.
    Why shouldn't you use commercial "anti-virus" products?
    To recognize malware, the software depends on a database of known threats, which is always at least a day out of date. Research has shown that most successful attacks are "zero-day"—that is, previously unknown. Recognition-based malware scanners do not defend against such attacks.
    Their design is predicated on the nonexistent threat that malware may be injected at any time, anywhere in the file system. Malware is downloaded from the network; it doesn't materialize from nowhere.
    In order to meet that nonexistent threat, the software modifies or duplicates low-level functions of the operating system, which is a waste of resources and a common cause of instability, bugs, and poor performance.
    By modifying the operating system, the software itself may create weaknesses that could be exploited by malware attackers.
    Most importantly, a false sense of security makes you more vulnerable.
    8. An anti-malware product from the App Store, such as "ClamXav," has the same drawback as the commercial suites of being always out of date, but it does not inject code into the operating system. That doesn't mean it's entirely harmless. It may report email messages that have "phishing" links in the body, or Windows malware in attachments, as infected files, and offer to delete or move them. Doing so will corrupt the Mail database. The messages should be deleted from within the Mail application.
    An anti-virus app is not needed, and cannot be relied upon, for protection against OS X malware. It's useful only for detecting Windows malware, and even for that use it's not really effective, because new Windows malware is emerging much faster than OS X malware. Windows malware can't harm you directly (unless, of course, you use Windows.) Just don't pass it on to anyone else.
    A Windows malware attachment in email is usually easy to recognize by the file name alone. An actual example:
    London Terror Moovie.avi [124 spaces] Checked By Norton Antivirus.exe
    You don't need any software to tell you that's a Windows trojan. Software may be able to tell you which trojan it is, but who cares? In practice, there's seldom a reason to use recognition software unless an institutional policy requires it. Windows malware is so widespread that you should assume it's in every unknown email attachment until proven otherwise. Nevertheless, ClamXav or a similar product from the App Store may be useful if an ill-informed network administrator says you must run some kind of "anti-virus" application.
    The ClamXav developer won't try to "upsell" you to a paid version of the product. Other developers may do that. Don't be upsold. For one thing, you should not pay to protect Windows users from the consequences of their choice of computing platform. For another, a paid upgrade from a free app will probably have all the disadvantages mentioned in section 7.
    9. It seems to be a common belief that the built-in Application Firewall acts as a barrier to infection, or prevents malware from functioning. It does neither. It blocks inbound connections to certain network services you're running, such as file sharing. It's disabled by default and you should leave it that way if you're behind a router on a private home or office network. Activate it only when you're on an untrusted network, for instance a public Wi-Fi hotspot, where you don't want to provide services. Disable any services you don't use in the Sharing preference pane. All are disabled by default.
    10. As a Mac user you don't have to live in fear that your computer may be infected every time you install software, read email, or visit a web page. But neither should you assume that you will always be safe from exploitation, no matter what you do. The greatest harm done by security software is precisely its selling point: it makes people feel safe. They may then feel safe enough to take risks from which the software doesn't protect them. "Hmmmm, this torrent is a crack of that new game I want. I think I'll download it. It could be a trojan, but the antivirus will warn me if it is." Then they wonder why their Mac is so slow all of a sudden. It's slow because it's running flat out mining Bitcoins for a hacker who has already sold their credit card number and banking passwords to a criminal gang. Maybe a week later the antivirus does warn them, but what good does that do?
    Nothing can lessen the need for safe computing practices.

Maybe you are looking for

  • Thread safe operations on table in pl/sql procedure?

    I am developing java application which will be running in N localizations simultaneously, each application will have M threads. Every thread takes an unique ID with status NOT_TAKEN from table Queue and changes its status to TAKEN. Problem: How to pr

  • Htp buffer error with xmltype

    Dear folks I wrote a procedure (print_large_objects) to print clobs on a web page. It works well. But when I fetch and request for print by that procedure, I get 'htp buffer too small ... error' when it exceeds 4000 character. The code is like this:

  • Cross over license required

    I've just had the most unhelpful chat with a support rep! I purhcased Photoshop CS5 for Windows but have since bought a Mac. I wanted to change the platform of my license, but as it's an upgrade from Elements 8, I was informed I would have to contact

  • PS datasource

    Hi all, First time am working on PS datasources. I need a report in BI with fields like "Project name,project code, From date, To date,Budget,Actual,Revenue, Expenses and evaluated on ". Please guide me what are the precise DS's we have in ECC for PS

  • Won't let me upload songs...says memory full

    This has just happened out of nowhere. My iPod won't let me update it or add songs because it says it says there's no room on it (that it's used like 755.mb or whatever, so it's almost totally full) - the thing is, there's nothing on it. No songs, no