How to assign special FilePermission in a policy file

Hi,
I'm using jaas 1.0 with JDK1.3.
I want a user to be able to specify a file (a password file : login-password) and to be able to access it before being authenticated. (and so without any permissions to access it)
I'd like to assign FilePermission not for a file in particulary but for files with an extension in particular (*.pwd in my example). How can I do it in a policy file ?
Check my code :
I am in the e:/dvpl directory.
if I specify that the file must be passwd2.pwd, that's ok, that works, but
if I want to give read permissions for all the files in conf/ or just for *.pwd, that doesn't work.
How can I do ?
  //permission java.io.FilePermission "e:/dvpl/conf/passwd2.pwd", "read";
  permission java.io.FilePermission "./conf/-", "read";
  permission java.io.FilePermission "e:/dvpl/conf/-", "read";
  permission java.io.FilePermission "e:/dvpl/conf/*.pwd", "read";Thanks for any help.
Yann P.
JOnAS The EJB Server
http://www.objectweb.org/jonas/index.html

if you want to give read permissions for all the files in conf:
permission java.io.FilePermission "\\dvp\\conf\\-","read";
Hope this help!

Similar Messages

  • How to export special characters into an XML file?

    Dear experts,
    We read files from our customers and save data into our customized table without any character changed, including some address fields. In those address fields, some special characters (not in our code page) are also kept. When we want to write these address fields into an XML file or flat file, the special charcters become "##" or not readable, can anyone help us to solve this issue?
    Question1: How to write special code to an external file?
    Question2: how to use 'CALL TRANSFORMATION' from an internal table to an XML file?
    Your answer is highly appreciated!
    Joanne

    Hi Joanne.
    Please check the below link.
    CALL TRANSFORMATION
    Before that u have to create one transformation program in STRANS tcode for using it in call transformation statement.
    Hope it will be useful.
    Regards,
    Lakshman

  • How to apply  special right  to the PDF  file using the LiveCycle Rights Management Server.?

    How to apply special right to the PDF  file using the LiveCycle Rights Management Server.?
    I want  to edit bar code field data using Adobe Reader. Bar Code field was designed and data was changing using Acrobat X1 Professional (Trial Version). But can't do so in adobe reader.

    I think that product has nothing to do with it. You would use LiveCycle Reader Extensions.

  • How To Assign Special sms Tone For Special Contact

    Hi
    i have nokia N70 , is there any way to assign special sms tone for special contact ?
    Solved!
    Go to Solution.

    Unfortunately not.

  • How to assign special characters to select tags

    Hi All,
    Just wondering if anyone knows the correct html to assign a
    special character like an ampersand or greater than/less than sign
    to a select tag?
    <select>
    <option value ="volvo & bmw">Misc Prestige
    Cars</option>
    <option value ="saab">Saab</option>
    <option value ="opel">Opel</option>
    <option value ="audi">Audi</option>
    </select>

    put & as &amp; > as &gt; and < as &lt;
    So it will be...
    <option value ="volvo &amp; bmw">Misc Prestige
    Cars</option>

  • How to assign keyboard shortcutkey in my js file?

    Hi,
    I want to assign shortcutkey for my control in JS.
    Anyone can tell me how to do or give me one example?
    Best Regards.
    goldbridge
    2008.4.7

    Hi,Dave
    Thanks for your reply,but I want to assign shortcutkey for my control not for JS.
    Anyone can give me some advice?
    Best Regards.
    goldbridge

  • How to define special character in html text file used in loadvars

    Hi
    I'm witing some maths software and need to use the division
    sign in a text file which is loaded using LoadVars().
    The variable loaded is then assigned to a text area. Here's
    the variable example.
    &hint1=<title><b>Challenge 1: Instant recall
    of any table</b></title><p>Including table
    divisions eg 56 ÷ 8= </p>
    the division sign is missing or a just a box. I've already
    tried most options: &#x00F7; (which works in XML loaded to
    flash), &divide; %F7
    Can anyone help please?

    Hi Michael. Thank you for your reply.
    There is no declaration within sgm file itself - but while opening the file I use sgml application definition with the following settings:
    Default API client:  FmTranslator
    SGML character encoding:  ISO Latin1
    XML character encoding:  UTF-8
    Namespace: Enable
    CSS2 Preferences:
    Generate CSS2: Disable
    Add Fm CSS Attribute To XML: Disable
    Retain Stylesheet Information: Disable
    Entity locations
    Entity search paths
    C:\Program Files\Adobe\FrameMaker9\Structure\sgml\isoents
    So as you can see, character encoding is set to ISO Latin1 (there is no way to use UTF-8 encoding in sgml files)
    Typing ź or ć in sgm document and opening it with framemaker sgml application - I receive: ¿æ and message: "Non-SGML character found; should have been character reference"
    Everything works fine when I type f.ex.: &x016B; and insert appropriate reference lines into isolat1.rw and isolat1.ent files
    But what I would like to avoid is editing those isoent files each time new character is be needed.

  • How to change File Kind (not "how to assign an application to open a file?)

    I build the toc.ncx file (part of the ePub setup) automatically, based on user input and source file content. It's fine, except that the file Kind (as shown in Finder Preview, for example) is Plain Text.
    The Kind should be Unix Executable File (the actual description is "zmedia-type="application/x-dtbncx+xml") in order for the file to function correctly with the rest of the ePub generation.
    I could set the file Kind in the program (I think!), except that I do not know what the code for such a Kind is.
    Can you help?
    Message was edited by: David Neale1
    Message was edited by: David Neale1

    To make the file a Unix executable can be done as follows:
    Open the Terminal application in the Utilities folder and enter the following:
    sudo chmod 755 /pathto/filename
    Press RETURN. Enter your admin password at the prompt; it will not be echoed. Alternatively put a space after "755" then drag the file's icon into the Terminal window.
    If you want the Unix icon simply set the file's default application to Terminal by selecting the file then Press COMMAND-I to open the Get Info window. Change the default application in the Open With section. If you want all .ncx files the same way then click on the Change All button.

  • How to create an application-specific policy file?

    Hi Everybody:
    I'm a .NET developer with C #. I have a few applications currently running on my computer using the ODP 10.1
    Two weeks ago I installed on my computer the ODP 10.2 Release & now my previous applications have stopped working: when I try to make the connection to the database gives me this exception:
    OraOLEDB (0x80004005)
    ORA-12154: TNS: could not resolve the connect identifier specified
    In FAQ section for ODP.NET I found the next:
    Q: I have two .NET applications on the same machine running two different versions of ODP.NET. How do I ensure both these applications use the correct ODP.NET version?
    A: Beginning with ODP.NET 10.1.0.3, the Oracle installer will register the following publisher policy DLLs in the Global Assembly Cache (GAC) that redirect 9.2, 10.1 and 10.2 ODP.NET applications to use the last installed version of ODP.NET: Policy.9.2.Oracle.DataAccess.dll and Policy.10.1.Oracle.DataAccess.dll.
    ODP.NET 9.2 includes just the first policy DLL above. These policy files ensure that all your ODP.NET applications use the most recently installed version of ODP.NET.
    You may undo the redirection manually. Policy DLLs can be de-installed through gacutil.exe using the /u option. Another approach is to navigate to the GAC directory (i.e. C:\WINNT\assembly) through the Windows Explorer and delete the policy folders. That will eliminate any policy enforcement for all your ODP.NET applications.
    If you have applications on the same machine using different ODP.NET versions, you should create an application-specific policy file.
    I'm trying to do that, but I don't know what is an application-specific policy file. Someone can give me an example of How can I create and application-specific policy file???
    Regards

    Hi,
    Binding redirection is a ".net thing" as opposed to a "odp.net thing", see if this helps:
    http://msdn.microsoft.com/en-us/library/7wd6ex19(VS.71).aspx
    Hope it helps,
    Greg

  • How to assign shortcuts to special characters?

    Hello everyone,
    I have a question about assigning shortcuts, so here I go: I would like to know if there is a way (and if yes, how) to assign personal shortcuts to special characters on my newly acquired MacBook Pro running Mac OS Lion.
    The problem is that I use the Swiss-French keyboard layout and that I cannot use directly the keyboard to insert characters, such as 'Ó' or 'Í' (capital letters), whereas – strangely – I can insert their respective lower case characters. I also happen to use various other characters from different languages, such as 'ð' or 'þ', to which I would like also to assign personal shortcuts, so as not to constantly have to change my keyboard layout for every single one of them.
    Thank you very much for helping me out!
    Cheers!

    Wow! Thank you very much for your very clear explanations Barney-15E!
    Here is what I get when I try to do what you said (and what is actually what I have been doing up to now).
    So basically this is what I get when I open Keyboard Viewer (I remind you that my keyboard layout is Swiss-French):
    I then have two options to type either of the two accents:
    Shift+^ to get `
    Option+^ to get ´
    The first accent works perfectly well. I can type all the needed letters bearing a ` accent, regardless of their respective case.
    However, a problem arises when trying to type capital letters accentuated with  ´ accent.
    Here is what I get for the lowercase (Option+^):
    Everything is fine (except that the ý is missing... Which is another concern of mine)...
    But look what happens when I try to do the same for capital letters.
    What the devil happened to the Á, Í, Ó and to the Ú? Only the É seems to remain...
    And thus my problem. I cannot type Ó,... Using this method. What I get is a silly ´O or ´I... Uppercase letters are not accentuated.
    I hope this time my problem was easier to understand...
    The best way to solve this would probably be to assign shortcuts to special characters, but as mentioned above, apparently such a method does not exist, unfortunately...

  • How to use a custum permission in the .policy file

    Hi,
    I am stuck with the problem of having a custum permission that extands java.security.BasicPermission.
    I really want this permission to be checked from my .policy file, but when I try to include its location : c:\java_project\server\SpecialPolicy.class
    it pops a message that file is not found. I have tried dots, different slashes (back and forward) and still have no luck. I need this custum permission to be checked so that I can allow special access from a certain codebase so that say if I try a dangerous method I can just simply check in the code;
    this.getSecurityManager.checkPermission(new SpecialPermission("lol"));
    Also I need a paramater option, but I cant think of any since its not a FilePermission that takes a name and attributes (read, write..) what does BasicPermission take and if I extend it what attribute should I pass in. I dont really care about how this permission works, i just use it to restrict access to a certain functions in code that are ran from specific codeBAse.
    Please dont ask why I need this :)
    Thanks in advance, the documentation on how to add custum policies is simply NOT THERE. thus I have to bug people around.

    Hi
    If you just have to add another permission it is easy.
    Create a class extending the BasicPermission. Have an entry into
    the policy file like
    grant <Principal> {
    permission <CumstomPermission> "lol"
    }that should be all. If you do have a specific Principal, please
    do not forget to add the Principal to the relevant Subject after login.
    cheers
    Projyal

  • How to avoid special stock indicator for intercompany sales transitions.

    Hi Friends
    I have an issue Intercompany sales .if I  enter intercompany plant(Delivering plant) in the sales order system is taking special stock indicator and looking for sales order stock.
    If I enter company code plant for sales from unrestricted stock, system is not taking special stock indicator.
    Please advice how to avoid special stock indicator for intercompany sales transitions.
    Thanks in advance.
    SRK

    Ravi,
    Special stock is generally determined by the MRP strategy group in the material master of the plant against which you place your order.  The strateg(ies) contained in the strategy group will determine the SO requirements type, which will in turn determine whether or not the order is 'account assigned' (special stock).  
    It is normal to only have one strategy contained in a strategy group.  However (and I seldom recommend this) SAP will support multiple strategies within one strategy group.  In this case, you could have both MTS and MTO orders against the same plant/material, by manually altering the requirements type in the sales order.  This scenario is usually difficult for a planner, and involves additional manual attention to make everything work.
    I suggest that your first avenue is to change the Strategy group in the material master of the delivering plant to one that supports MTS.  This has a big impact in Controlling and in Production Planning, so ensure that all affected functional groups are aware of what you are doing, and of the resulting changes that they will experience.  The transition from MTO to MTS must be carefully controlled.
    If you are not a PP expert, I suggest you consult with your local PP expert before embarking on this change.
    Best Regards,
    DB49

  • Now I can't figure out how to assign the new tones to my contacts

    I used the option "buy more" under ringtones on my iphone 5S.  Now I can't figure out how to assign the new tones to my contacts. Help please!

    Hello p618cg,
    Congratulations on your new iPhone 5s!  You can follow these steps to assign a ringtone to a contact:
    Set a special ringtone for a contact.
    In Contacts, choose a contact, tap Edit, then tap Ringtone. Select the ringtone you'd like to hear when that person calls.
    iPhone Basics - Set a special ringtone for a contact
    http://support.apple.com/kb/TI16
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • How to assign roles for each kind of users

    Hello,
    i am creating users for each kind of users, say abap developer or FI/MM/SD function users, in IDES ECC 6. it doesnt make me any sense how to assign which roles to which user( there are more than 2000 sap standard roles). can anyone give me some guideline how to create each kind of users.
    any response will be awarded!
    Thanks a lot!
    Samson

    I don't understand your question....
    When sap is implemented usually part of the project is creating roles based on a blueprint designed to adjust to your company needs...
    Basically Standard roles are there to be used as templates for your own roles.
    Users as "dialog users" do not have classification... the special access attributes are given by the roles assigned to it based on the project plan desing pre-installation.
    Hope that help
    Juan

  • How to print Special Characters in Sap-Scripts

    How to print Special Characters in Sap-Scripts
    Thanks,
    Ravi

    Hi
    if u want print special characters we can use hot codes i.e '  '  (single inverted commas). in between these hot codes insert u r special characters.
    write    '    !@#$%^&*( )  '.
    for the above write statement output is
    output is   !@#$%^&*( )

Maybe you are looking for

  • Why upgrade to Yosemite?

    I have the good fortune of knowing why not to upgrade. I had Mavericks already and I decided an upgrade might help fix some intermittent problems with my OS, like drag/drop being on/off. Since upgrading to Yosemite: Finder will not overwrite files (s

  • How do you burn an iPhoto slideshow onto dvd?

    I am trying to burn an iPhoto slideshow onto DVD - any tips? Thanks!

  • How to fill Functional Area on Appropriation request

    Hi guys! We faced a problem to fill standart field IMAK-FKBER (functional area) on Appropriation request. Despite the fact it exists in standart table, there are no standart ways to fill that field through IMA1N or IMA11. However we assigned FA NG000

  • Hi! pls help date functions

    hi! i have problem in date functions in java! 1. if i give input date format is dd/mm/yyyyy (or) yyyy/mm/dd (or) mm/dd/yyyy? the result must be display dd/mm/yyyy only? pls help me! thanks and regadrs senthilraj

  • How ChnFFTLengthCalc works?

    Can somebody please tell me how ChnFFTLengthCalc works. I have data of undefined length i have to calculate FFT on it by taking appropriate no of windows & sections & overlap how FFT uses total length, window size and overlap to calculate no of secti