Restrict access to files with JAAS

Hi,
I would like to restrict access based on a JAAS-autenticated user to a file named
c:/foo.txt. I have written some code that checks if the autenticeted user has
access to the file, but how and where do I grant the user access with JAAS in
WebLogic Server 6.
FilePermission filePerm = new FilePermission("c:/foo.txt", "read");
java.security.AccessController.checkPermission(filePerm);
thanks
/Chriz

meena.vyas and jyri, please note that the uri parameter specifies a wildcard pattern. As stated in the the Using Wildcard Patterns section of the NSAPI Programmer's Guide at http://docs.sun.com/source/817-6252/npgwldcrd.html, ~ is a special character in wildcard patterns. As such, your examples will not work.
ylapin, the following should do what you want:<Client uri="*\\~">
PathCheck fn="deny-existence"
</Client>You can add the above immediately below the <Object name="default"> line in the obj.conf configuration file.

Similar Messages

  • Can i access swf files with your product?

    can i access swf files with dreamweaver?

    You will need Flash as well as Dreamweaver.
    Follow these instructions http://help.adobe.com/en_US/dreamweaver/cs/using/WSc78c5058ca073340dcda9110b1f693f21-7ad0a .html

  • I just want to see my files with explorer.  Then transfer all pics to my computer. With the new update I can't.   How do I access my file with just explorer?

    I just want to see my files with explorer.  Then transfer all pics to my computer. With the new update I can't.   How do I access my file with just explorer?

        Let's bring back your file control, jpandwibble. What happens when you connect to your computer? Are you trying to use Explorer on the device or on computer? I am eager to continue troubleshooting!
    Thank you,
    YaleK_VZW
    Follow us on Twitter @VZWsupport

  • Restrict access to files

    Hi,
    i'm trying to restrict acccess to all the files ending with ~ in my server , i couldn't do it. I try to deny access for files ending with ~. I have sun one webserver 6.1 sp1 in a sunfire solaris 9 machine. i tryed to do what is written in the documentation using the wildcard *.*~ and deny all order but this close all the server not only the ~ files. i don't know what happen why the server can't understand.
    May be is imposible to restrict files in all the server?
    thanks!

    meena.vyas and jyri, please note that the uri parameter specifies a wildcard pattern. As stated in the the Using Wildcard Patterns section of the NSAPI Programmer's Guide at http://docs.sun.com/source/817-6252/npgwldcrd.html, ~ is a special character in wildcard patterns. As such, your examples will not work.
    ylapin, the following should do what you want:<Client uri="*\\~">
    PathCheck fn="deny-existence"
    </Client>You can add the above immediately below the <Object name="default"> line in the obj.conf configuration file.

  • Again question about restricting access to files through URL?

    I found many topics about this, but every time it is some special case.
    I want to ask it simple. How can I restrict access to some files in my application through entering URL in Browser, no matter if I am logged or not.
    For example I have included JSP files with jspf extension. I don't want to access them through url. How can I do this?

    May be it will work, but it seems somehow workaround decision - one half of jsp files in one place and another part in other place.
    Message was edited by:
    cheltsov

  • Problem with Restrict Access to Page with access level using ASP

    I'm using Dreamweaver CS3 with ASP-VBScript and an Access
    database. The pages were created from scratch for this project,
    using those tools all the way through.
    I've created a login page, an admin homepage, and add, edit,
    and list records pages for three tables. The login page uses the
    Server Behavior "Log in User", all other pages use the Server
    Behavior "Restrict Access to Page". All of these are based on an
    Access Level.
    Login seems to work correctly, and redirects to the admin
    homepage. From the admin homepage, I can open any other page as
    expected, and they initially display correctly. On the add and edit
    pages, however,
    submitting the form often results in getting logged out, but
    not always.
    Once this happens, I can log back in, but other problems will
    sometimes occur during that second login session. Sometimes,
    logouts will occur on pages that worked fine during the first login
    session. Sometimes, another session variable that I've setup
    manually will change when it shouldn't...as if there were two
    values stored for my session variable, and reloading the page
    changes to the other value.
    This
    post seems closest to my experience, but it doesn't look like
    there was really an answer beyond "I had to fight with it for a bit
    to get it to work":
    I suspected that there is some problem with session settings
    on the server. We have an almost identical tool on the same server
    that was developed with an older version of DW that works more
    reliably; it sometimes has problems with the initial login, but
    never has a problem after that.
    Has anyone experienced problems like this? Any suggestions
    for what to check? I'm really pulling my hair out since it's so
    unreliable...the kind of problem that goes away when you try to
    show someone and comes back when they leave.

    Hello,
    I was thinking that all I would need would be the username, although username and paswsword would be more secure.  There are about 50 users and no groups or levels.  They are all equal ... same level.
    The website is private and there is a general content area for all users and then there will be private areas for each user where proprietary documents will be held.  I need to be able to ensure that user 'A' can only see the user 'A' pages, user 'B' can only see user 'B', etc.
    I don't really understand what the Dreamweaver script is doing, but the overview sounded like it was the right tool to accomplish what I'm trying to do.
    Any assistance greatly appreciated.
    thanks.

  • Restrict Access for Asset with Ubuntu

    Hello guys,
    now i have a problem for you and i hope, that you could help me.
    The ArtBox have some problems on my ubuntu system. The error message shows me "Restrict Access for Asset".
    Can somebody give me some tips, how the error could be recognize or how i can fix it?
    Thanks for the help.

    Hi,
    After you finish installing Artbox , you must now make sure that samba is setup correctly. I just plan to try ArtBox and ubuntu using virtualbox, hope it can work fine.

  • Tungsten T3 - need to access DAT file with addresses - Please Help

    I have an old Palm Tungsten T3. The desktop computer with the synced address data has died and the T3 has lost power (so no addresses anymore).
    I have a .DAT file backup with all my addresses. Can anyone advise how I can get access to these.
    Reinstalling Palm Desktop 4.1.4e did not help as it doesn't allow me to import .DAT files.
    Can I import this file into any other app or open up in Excel etc?
    Any advice would be much appreciated.
    Thanks in advance.
    Post relates to: Tungsten T3
    This question was solved.
    View Solution.

    You have to physically copy the .dat file into the User directory over the existing address.dat file.  Find the one with your hotsync name abbreviated (i.e. - C:/Program Files/Palm (or PalmOne)/ your Hotsync name /address) and copy the .dat file there.
    Be sure you copy the file and keep another one safe in case something goes wrong.  The existing blank address.dat file will be only about 2k in size.
    Good luck!
    WyreNut
    I am a Volunteer here, not employed by HP.
    You too can become an HP Expert! Details HERE!
    If my post has helped you, click the Kudos Thumbs up!
    If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

  • How to use an access database file with vb project

    hi deve.
    im wondering how can i use a database file (created with microsoft access) in a vb project
    i want to assign a textbox content from the database file from a specific field according to its id can anyone explain that with a simple code example
    thanx..

    thanx
    pvdg42
     this article is all i need

  • Reading MS Access Database file with database adapter in soa

    I have an .MDB file on another machine that i want to read from within SOA composite using database adapter. can i do that ? how ?

    Have you checked out the jdbc-odbc bridge from Sun?  I would think you should be able to create a jdbc connection to Microsoft Access.  With that connection, you would then be able to create a jndi entry on the DB adapter from SOA.  I haven't used this before, so I'm not sure how well, or even if it would work.

  • Is it possible to access local files with MIDP?

    Hello everyone,
    I am developing a mobile application using Sun One Studio 4 ME, with MIDP 2.0.
    I am preparing a record store as input data for my application. "Preparing" means: I try to convert a local text file present on my PC into a record store.
    The problem I have is that I cannot find a way in MIDP to allow me to access the local file. It seems to me that MIDP only allows data access over the Web. Am I correct?
    Many thanks in advance for any help or suggestion you could provide.
    Dumitru

    Did you save the messages in a Personal Folder files (PST) or as individual messages on disk? The PST and MSG file formats are proprietary and might not be accessible outside of Outlook.
    If you want to move those messages to a different email program, assuming you have permission to do so, one way is to upload them to an IMAP account (Gmail allows you to connect Outlook as an IMAP client). However, that's pretty complicated, so I suggest researching it on the web, checking at least a few sites to make sure you know all the steps.

  • Bug: can't access static files with space in the path

    Please let me know if this a a wrong place to file bug reports.
    I installed webserver7u4 and when I try to access a static file within my war which contains a space in the path, I get HTTP404.
    $ ls webserver7/https-myapp/web-app/myapp/_default/images/ddtree/black\ spinner/1.png
    webserver7/https-myapp/web-app/myapp/_default/images/ddtree/black spinner/1.png
    $ wget -O /dev/null "http://localhost:8080/images/ddtree/black spinner/1.png
    "--13:47:06-- http://localhost:8080/images/ddtree/black%20spinner/1.png
    => `/dev/null'
    Resolving localhost... 127.0.0.1, ::1
    Connecting to localhost|127.0.0.1|:8080... connected.
    HTTP request sent, awaiting response... 404 Not found
    13:47:06 ERROR 404: Not found.Now, if I create a symlink to a path that contains url encoded space, everything works:
    $ ls -l webserver7/https-myapp/web-app/myapp/_default/images/ddtree/black%20spinner
    lrwxrwxrwx 1 root root 13 Aug 1 2008 webserver7/https-myapp/web-app/myapp/_default/images/ddtree/black%20spinner -> black spinner
    $ wget -O /dev/null "http://localhost:8080/images/ddtree/black spinner/1.png"
    --13:49:37-- http://localhost:8080/images/ddtree/black%20spinner/1.png
    => `/dev/null'
    Resolving localhost... 127.0.0.1, ::1
    Connecting to localhost|127.0.0.1|:8080... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 1,446 (1.4K) [image/png]
    100%[======================================================================== =======================================>] 1,446 --.--K/s
    13:49:37 (89.76 MB/s) - `/dev/null' saved [1446/1446]So to me it appears that webserver doesn't decode the path before searching the local file system, which to me looks like a bug.
    Let me know if you need more info.
    cheers,
    Igor

    HTTP/1.1 RFC [http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.2|http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.2]
    3.2 Uniform Resource Identifiers
    URIs have been known by many names: WWW addresses, Universal Document Identifiers,
    Universal Resource Identifiers [3], and finally the combination of
    Uniform Resource Locators (URL) [4] and Names (URN)  ... where
    3 is a link to [http://www.ietf.org/rfc/rfc1630.txt|http://www.ietf.org/rfc/rfc1630.txt] section BNF for specific URL schemes
      httpaddress              h t t p :   / / hostport [  / path ] [ ?search ]
      path                   void |  segment  [  / path ]
      segment                xpalphas
      xpalphas               xpalpha [ xpalphas ]
      xpalpha                xalpha | +
      xalpha                 alpha | digit | safe | extra | escape
      alpha                  a | b | c | d | e | f | g | h | i | j | k |
                             l | m | n | o  | p | q | r | s | t | u | v |
                             w | x | y | z | A | B | C  | D | E | F | G |
                             H | I | J | K | L | M | N | O | P |  Q | R |
                             S | T | U | V | W | X | Y | Z
      digit                  0 |1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9
      safe                   $ | - | _ | @ | . | &  | + | -
      extra                  ! | * |  " |  ' | ( | )  | ,
      escape                 % hex hex
      hex                    digit | a | b | c | d | e | f | A | B | C | D | E | F{code}
    4 is a link to RFC 1738 Uniform Resource Locators (URL)
    [http://www.ietf.org/rfc/rfc1738.txt|http://www.ietf.org/rfc/rfc1738.txt] section 5. BNF for specific URL schemes
    has :
    {code}
    httpurl        = "http://" hostport [ "/" hpath [ "?" search ]]
    hpath          = hsegment *[ "/" hsegment ]
    hsegment       = *[ uchar | ";" | ":" | "@" | "&" | "=" ]
    uchar          = unreserved | escape
    escape         = "%" hex hex
    hex            = digit | "A" | "B" | "C" | "D" | "E" | "F" |
                                 "a" | "b" | "c" | "d" | "e" | "f"
    unreserved     = alpha | digit | safe | extra
    alpha          = lowalpha | hialpha
    lowalpha       = "a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" |
                     "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" |
                     "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" |
                     "y" | "z"
    hialpha        = "A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" |
                     "J" | "K" | "L" | "M" | "N" | "O" | "P" | "Q" | "R" |
                     "S" | "T" | "U" | "V" | "W" | "X" | "Y" | "Z"
    digit          = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" |"8" | "9"
    safe           = "$" | "-" | "_" | "." | "+"
    extra          = "!" | "*" | "'" | "(" | ")" | ","
    {code}
    I do not see space in these RFCs for httpurl.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to access language files with javaFx

    Hi,
    Is there a way in JavaFX to access language keys specified in a properties file depending on the current Locale.
    Thanks,
    Chamal.

    I just ran over this thread, and I'm currently developing an FX-Application which needs to be multi-languaged.
    Could you shortly explain how exactly I have to use this?
    is it like this?
    Label {
    text: ##"keyname"
    And then I need the files
    fxfile_en.fxproperties
    fxfile_de.fxproperties
    And what do I need for the default language?
    Thank you a lot for help :)
    EDIT: I just found this page about localization in JavaFX: http://blogs.sun.com/naoko/entry/javafx_localization
    Edited by: zilti on Dec 28, 2009 8:58 AM

  • Restricted access Simple File Deployment

    Hello,
    I have installed CPS on tomcat on a Windows testing box. I've
    configured it and Contribute to use a stagging server.
    Everything is working great. However, on the web page for the
    Simple File Deployment service (
    http://<server:<port>/.../customservices/filedeployer/>
    for testing purposes I'm not using SSL - is that required?) anyone
    can access this page. Well I want to limit that to only a few.
    Right now I'm using the File-bases authentication model.
    Reading the contribute publishing services manual I read:
    "When you extend this service, consider adding the following
    functionality:
    • Authentication and permissions
    You can add authentication functionality to limit access to
    the service.
    Tip: Macromedia strongly recommends that you add
    authentication. To do so, you can simply
    copy the settings file and save it as a separate service in a
    subfolder for each website, or you can
    write you own security interface to handle multiple
    websites."
    I'm confushed by this. 1) what settings file? I have two
    types of settings.xml files (one for determing live and staging
    servers and another that has info for webservers, approvals and
    etc.) but they dont have any authenticaion info for CPS server.
    2) what folders on what server is the above statement
    refering to?
    Thank you very much.

    I believe you need ColdFusion for Simple File Deployment and
    the other options you mention - VERY expensive. For publishing, use
    RoboCopy - it's free.

  • How to access RW2 files with Elements 9

    How do you access RW2 Panasonic files on Elements 9.
    I have downloaded the various converters without success.
    Charles.

    You need PSE11, 12 or 13 for that camera. Alternatively, download and install the free Adobe DNG converter to convert your raw files to the Adobe universal Raw format and the files will open in all versions of PSE (keep your originals as backups and for use in the camera manufactures software)
    Windows download (.exe file) click here DNG Converter 8.6
    Mac download (.dmg file) click here DNG Converter 8.6
    You can convert a whole folder of raw images in one click. See this quick video tutorial:
    You Tube click here for DNG Converter tutorial

Maybe you are looking for

  • From Windows to iOs ?

    Hi, I wanted to know , if i download Photoshop CC and lightroom for 12 dollars a month, and that i'm actually on windows. In 3 months, i'm going to buy an iMac , will i be able to use this Photoshop that i downloaded ? Like do i have to pay 24 dollar

  • JSF Exception Handling Example

    Here is an example of catching a backend exception and displaying it on the UI. It seems like most of the examples in books and such concern themselves with Validators and Converters. If you are trying to catch a backend exception, and you just want

  • Scope of  Presentaion variable in DBPrompt?

    Hi All, If i have dbprompt with "colA" assigned Presentation variable "prsn_a" . on the same db i have master report which i can drill to detail level. master and details reports have filter on colA prompted. If i click on master report i am unable t

  • Where can I  get a replacement key?

    Hey I need a key replacement for my macbook pro 13 inch unibody. It is an early 2011 model. The key I need a replacement for is the period (.) key. It also has this, ">" symbol on the key. Thanks!

  • UDO doesn't show child table contents

    Hi everyone:    I have a big trouble: I have a UDO form with a master table and 1 child table. When I save data in this form, everything is OK, but when I browse in the records, I just got data from master table.    I should show child table data in