How can I disable jconsole access?

Hi,
I have a normal JAVA application running an a jdk1.6 VM. For security reasons I don't want allow access to that program by jconsole or any other JMX client. According to the docs I thougt I can disable it with -Dcom.sun.management.jmxremote=false but this does not help. jconsole can access my program even if I use this property. Note that I don't want enable some kind of security I simply want to disable the whole JMX stuff. How can I do that?
Thnak you in advance
Ulli

There are ways to achieve what you are asking for, but you need to be clear that you are not addressing a security problem. JConsole (and any other tool using the Attach API) can only attach to the same user's processes on the same machine. These are the same processes that the user can connect to using a debugger, and therefore do anything to. JConsole makes it easier to do certain things, but does not fundamentally change the security situation.
There is an RFE open to address this <http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6541693> but in the meantime here are two possible things you can do:
(1) Run your application with -XX:+DisableAttachMechanism. Like all -XX options, this one is unsupported, and could go away in a future version. It will also prevent you from running tools like jstack and jinfo on your application, which could be inconvenient.
(2) Unregister all the MBeans from the Platform MBean Server. (This idea is due to Daniel Lutoff.) Then you will still be able to connect with JConsole, but you won't see any information about the application. The code looks like this:
MBeanServer mbs = ManagementFactory.getPlatformMBeanServer();
for (ObjectName name : mbs.queryNames(null, null)) {
    if (!name.getDomain().equals("JMImplementation"))
        mbs.unregisterMBean(name);
}Regards,
�amonn McManus -- JMX Spec Lead -- http://weblogs.java.net/blog/emcmanus

Similar Messages

  • HT5509 How can I disable guided access without a password on my iphone

    How can I disable guided access without a password on my iphone? Please help. I can't use Find My Iphone and touch screen.

    See: http://support.apple.com/kb/HT5018
    The easiest way is to connect the phone to your computer, click on its name, and click the "Configure Accessibility..." button on the Summary screen.

  • How can I disable remote access connection window ?

    When I try to connect (via TCP/IP) with a VI in another PC (in my local network) it appears the remote access connection window.
    How can I disable this (programmatically if possible) ?
    A big thanks for your answers.
    Linus

    Randy,
    attached the image of the Remote Access Connection Window that appears when I connect to the VI.
    It is the Operating System (Windows) classical panel for Remote Access connections using a modem.
    Many thanks.
    Linus
    Attachments:
    Remote_Access.jpg ‏22 KB

  • How can I disable guest access on AFP

    I want to securise my access from my Mac to my Ready Nas. In order to access it I need a password wich is good. But if I choose "guest access" I'm able to go through witout the password.
    How can I disable the "Guest access" ?
    Message was edited by: jfmori

    That should be in the NAS setup I'd think.

  • How can I disable data access on C1-01 ?

    I have a C1-01, for emergency use only.  Today it displayed an unsolicited "Download Failed", message, and sure enough, my paygo account had been emptied.  How can I prevent all data access, ie attempts to update firmware, internet access, etc?
    TIA, Richard
    Solved!
    Go to Solution.

    easiest way is to contact your network operator and ask them to disable your data plan and all internet access on your device. there are also a few miscellaneous settings in your phone, so you can try deleting access points if they are displayed in the Settings. i would check the phone Settings menu and the Web browser settings for items that you can turn off / disable.

  • How can I disable the access to windows 2000(O.S.) from LabView?

    I need to disable the access to windows when an application (exe), created by LabView, is running. When the application is running, the user can not acces to windows (for example, execute another application) until he stops the application.
    I am using LabView 6.1 and windows 2000
    Many Thanks

    Hi Francesc,
    There are a couple of options for this. One of them could be calling Windows OS activex components and making the Desktop invisible through labVIEW and then bringing it back on after the LabVIEW execution is stopped.
    The other option is to modify user settings on the target machine. I have tried this on windows 2000 and it works.
    Run "gpedit.msc" from your start menu. In the Group Policy template choose the user configuration that you wish to make the settings for. Expand User Configuration , expand Administrative Templates , and then expand System. Choose 'Custom user interface'
    In this panel select 'Enabled' and enter the interface file name, in this case C:\Program Files\National Instruments\Labview 6.1.exe. (or your own filepath\App
    lication.exe). Reboot the machine.
    This replaces the default windows shell (explorer.exe) with your LabVIEW executable. When the operator logs on, the only thing on his screen is the Labview application. No desktop, no taskbar, no start button.
    This can also be done through LabVIEW using register-level programming. But it would be a more complex approach.
    Hope this helps.
    Regards,
    Pravin Borade
    Applications Engineer, National Instruments

  • How can I disable printer access on a managed account (guest/kids)?

    Is there a way to disable printer use on a managed user account? I have created a limited user account for my kids to use. The problem is, sometimes they visit these websites that allow them to print their "works of art" and by doing so they use up a lot of my printer toner and paper. I don't want to have to turn off the printer and create a giant printer queue as the printer is a network printer shared among other computers. I rather just disable their printing capabilities. Deleting the printer from their user account also deleted it from my main (admin) account. I'm posting this in hopes someone out there knows how to do what I'm asking for. Thank you.

    Scotch_Brawth has the basic steps outlined.  A few additions I would make is that CUPS is already running on your system in the background.  It is the underlying printing system for OS X.  The easiest way to control the users of printers is through the web interface to CUPS.  This is what is disabled by default in Mountain Lion.  You can enable it by using the Terminal (/Applications/Terminal).  Copy and paste the following command into a Terminal wndow and then hit Enter or Return:
    cupsctl WebInterface=yes
    Now you can use any web browser and go to http://127.0.0.1:631/printers/.  Click on the link to the printer you want to control.  There will be two drop down menus near the top of the page -- Maintenance and Administaration.  Use the Administration menu to select Set Allowed Users.  The page that will appear lets you enter a list of users to either allow to use the printer or prevent from using the printer.  Make the appropriate choices and click the Set Allowed Users button.  You will be prompted to enter your administrator's user name and password.
    You only need to enable the web interface once.  It will then be available unless you use the Terminal to disable it or until an Apple update turns it off again.

  • How can i disable terminal access with opendirectory ?

    I'm deploying of a OSX Server over OSX Mountain Lion... And i need to limit the terminal (command line) access.
    Any suggestion ??
    Thanks in advance,
    W

    As Linc indicated setting an Open Directory account to have an invalid login shell will prevent the user from using Terminal. They will still be able to launch it but will not be able to do command line instructions nor double-click and run scripts, this effectively makes it unusable. You would do this setting using Workgroup Manager per user, it is possible to bulk apply this setting.
    Alternative approaches would be to use MCX (Managed Preferences) to deny a user or group permission to run Terminal, or to do something similar via Profile Manager. (It appears that with Profile Manager rather than explicitly denying a particular application you have to grant access to desired applications and this implicitly means denying everything else, personally I find this approach to be bad and feel Apple should give the choice of both defining allowed applications and/or defining specific disallowed applications.)
    I would not advise removing the Terminal application nor changing permissions on it.

  • How can I reset my access passcode w/o having ever synced the device before? I don't remember it and now the ipad is "disabled" from too many failed attempts.

    How can I reset my access passcode without having ever synced the device before? I don't remember my passcode and now the ipad is "disabled" from too many failed attempts.

    You will need to reset the iPad back to factory defaults : iOS: Forgot passcode or device disabled
    What iTunes purchases that you can redownload for free from the stores will show in the Purchased tabs in the App Store and iTunes Store apps, and the Purchased tab in the iBookstore in the iBooks app

  • How can I disable the assistive touch programmatically ? This is like a bug. Though the Guided access is enabled a user can take screenshot of my application content. How can I solve this ? any idea ....

    How can I disable the assistive touch programmatically ? This is like a bug. Though the Guided access is enabled a user can take screenshot of my application content. How can I solve this ? any idea ....

    Question: Do you think the response from the support staff is correct? I mean, surely, I can't be the only CF user on a shared box whose other users need to modify the date and time within their applications. Even if they do it at the application level for their domain, surely it wouldn't affect mine, would it? That was what was implied by the support people, but I have a feeling they are way off, or covering for some goof-up on their end. I struggled like hell yesterday trying to get this to work and I did not get very far at all.
    I found an interesting tutorial here which does a comparison of time zones and, theoretically, this might do the trick. But if what the guy told me was nonsense then I won't bother with it. For the record, our calendar has been working fine for about a week now.

  • How can I disable back button

    How can I disable the back button and/or prevent the back button displaying my recent searches on right click ?

    Set the pref <b>browser.sessionhistory.max_entries</b> to 0 on the <b>about:config</b> page.
    To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
    If you see a warning then you can confirm that you want to access that page.<br />

  • Suddenly "lost mode" enabled in my iphone. I forgot my 4 digit password. Is there any way to get out of this problem? What should i do now? How can i disable it?

    Please help!! I forgot my password and now i can't access to my iphone. How can i disable the "lost mode" and how can i fix this problem?

    You will need to restore your iPhone from the same computer that you most recently synced to.
    Read this: http://support.apple.com/kb/ht1212
    If you can't do the restore then you will need to try recovery mode.
    Read this: http://support.apple.com/kb/ht4097

  • How can I disable window snapping/docking?

    Ever since CS4 came out I feel like I've been less productive in Photoshop due to annoying window dock/snapping.  Windows are constantly sticking and resizing themselves in ways that blocks the work I am trying to do.  Also the main image itself automatically resizes to feet the work space and I find this also an annoyance.  This is my main question:  How can I disable "sticky" windows?
    In fact if there a way to get the old classic skin back that would be great, also...because all the programs in CS4 are missing a handle bar at the top of the window, making it difficult to find a place to click to drag the window around...which also wastes time.  Sometimes the classic skin is visible underneath buttons in graphic glitches..
    Finally, is there a way to disable hardware acceleration completely?  My processor is fast enough that it can complete tasks faster than the latency of accessing the GPU, so hardware acceleration actually slows things down.  Also the hardware code has bugs in it that prevents me from opening massive images (eg, 21600 x 21600 image crashes).

    Edit, preferences. Everything is there to play with

  • How can i disable the memory test when i start up photoshop? my computer freezes two minutes en then photoshop starts, i know there is notting wrong whit my memory in my computer

    when i startup PS then i look two minutes to the startup-logo en see that my memory is being checked.
    how can i disable this memory chek in PS?
    this problem started a few days ago en this version off PS is working on my computer ol most a year without problems
    i have checked my hardware very intensive and there is nothing whrong with my installed  ram
    this is my system info, sorry that this is not translated into englis, i am from the netherlands and i can just a litle englisch
    Adobe Photoshop Versie: 13.0.1 (13.0.1.3 20131024.r.34 2013/10/24:21:00:00) x64
    Besturingssysteem: Windows 7 64 bits
    Versie: 6.1 Service Pack 1
    Systeemarchitectuur: Intel CPU-familie:6, Model:10, Stepping:5 met MMX, SSE-integer, SSE FP, SSE2, SSE3, SSE4.1, SSE4.2, HyperThreading
    Aantal fysieke processors: 4
    Aantal logische processors: 8
    Snelheid processor: 3073 MHz
    Ingebouwd geheugen: 16375 MB
    Beschikbaar geheugen: 13944 MB
    Hoeveelheid beschikbaar geheugen voor Photoshop: 14750 MB
    Geheugen in gebruik door Photoshop: 93 %
    Blokgrootte van afbeelding: 128 kB
    Niveaus voor afbeeldingscache: 4
    OpenGL-tekenen: Ingeschakeld.
    OpenGL-tekenmodus: Standaard
    OpenGL-modus Normaal toestaan: Waar.
    OpenGL-modus Geavanceerd toestaan: Waar.
    OpenGL-modus Oude GPU's toestaan: Niet gedetecteerd.
    Leverancier videokaart: NVIDIA Corporation
    Renderer videokaart: GeForce GTX 460/PCIe/SSE2
    Scherm: 2
    Grenzen:= boven: 0, links: -1600, onder: 1200, rechts: 0
    Scherm: 1
    Grenzen:= boven: 0, links: 0, onder: 1200, rechts: 1920
    Nummer videokaart: 1
    Videokaart: NVIDIA GeForce GTX 460
    OpenCL niet beschikbaar
    Versie stuurprogramma: 9.18.13.4475
    Datum stuurprogramma: 20141112000000.000000-000
    Stuurprogramma videokaart: nvd3dumx.dll,nvwgf2umx.dll,nvwgf2umx.dll,nvd3dum,nvwgf2um,nvwgf2um
    Videomodus: 1920 x 1200 x 4294967296 kleuren
    Bijschrift videokaart: NVIDIA GeForce GTX 460
    Videokaartgeheugen: 1024 MB
    Rechthoekige structuurgrootte video: 16384
    Serienummer: 92298830452574092077
    Toepassingsmap: C:\Program Files\Adobe\Adobe Photoshop CS6 (64 Bit)\
    Tijdelijk bestandspad: C:\Users\gert\AppData\Local\Temp\
    Werkgeheugen van Photoshop heeft asynchrone I/O ingeschakeld
    Werkvolume(s):
    C:\, 223,5 GB, 112,9 GB vrij
    Map met vereiste plug-ins: C:\Program Files\Adobe\Adobe Photoshop CS6 (64 Bit)\Required\
    Primaire map voor plug-ins: C:\Program Files\Adobe\Adobe Photoshop CS6 (64 Bit)\Plug-ins\
    Map voor extra plug-ins: niet ingesteld

    Photoshop doesn't do a "memory test".
    When Photoshop says "measuring memory" during startup, it is asking the OS how much RAM is available and what hard disks are available for scratch disks.
    If you have network volumes mounted that are unavailable, then the OS may take a while to time out on accessing those drives.
    The same goes if you have a bad USB drive connected.

  • How can I disable wireless admin privileges to the router ?

    I am using an Airport Utility for Windows for Airport Extreme. For the sake of better security, how can I disable wireless admin privileges to the router so that the router can only be configured via hardwire connection?

    For the sake of better security, how can I disable wireless admin privileges to the router so that the router can only be configured via hardwire connection?
    Sorry, but this is not possible.
    If you want to limit access to administration of the router, you should change the Base Station password, and only give out that password to those individuals that you want to have access to the administration settings of the router.
    The forums have been having problems displaying screenshots, but we will attach one below in the hopes that the problems may be fixed.
    Important Note.......even with this,  "security" on the AirPort routers is an illusion.......since a one second press on the reset button will give any user 5 minutes of free access to go in and change any settings that they want. 
    So, you might want to keep any eye on things.

Maybe you are looking for

  • Iphone does not stay connected to wi-fi.

    When using apps or when in sleep mode my iphone does not stay connected to my wi-fi. All other items within the house have no issues with staying connected to my wi-fi.

  • Embedding c# code into html attachment

    Hi, I am trying to have the HTML and CSS layout within a SharePoint list item attachment. Part of this layout is also adding a C# ImageButton. I can get the list item attachment contents to load and the CSS and HTML are implemented within my webpart.

  • How to transfer music and videos from computer to iPad mini?

    how to transfer music and videos from computer to iPad mini?

  • Itunes 11 : installation failed

    i can download itunes and the drive or whatever from apple.com website, but once i click to install it, itunes installs until the very last step where it says "installation failed please try again". I have tried many many times and re set my laptop a

  • Video Playback Is Stuttering

    Problem: FCE running on G4 Powerbook with two external Lacie 120GB drives. Woke Mac up from sleep to continue editing and now the video is playing back all stuttery (it even freezes completely on tv monitor). Audio continues to play normally. Project