Howto change permission on file (rw-,---,---)

Hello,
I have a java application. it create some files, and I want that these files have only write permission for current user ( unix permission is (rw-,---,---).
The class java.io.File can only restrict usage to read only, and doesn't have user group notion.
How can I do ???
thanks,
David.

perhaps this helps :
http://java.sun.com/j2se/1.3/docs/guide/security/permissions.html
so far,
stefan gross

Similar Messages

  • Nable to change permission of file system node / WAS 6.2

    During WAS 6.2 Installation (Step: Create SAP Program Icons - post processing) I receive the following message:
    FSL-02007  Unable to set access rights of E:/usr. SetNamedSecurityInfo: Diese Sicherheitskennung kann nicht als Besitzer des Objekts zugeordnet werden.
    ERROR 2004-10-21 13:25:20
    MOS-01085  Unable to change permission of file system node E:\usr\sap/.. with type DIRECTORY to (dg\SAP_LocalAdmin,GROUP,=rwx) (SYSTEM,GROUP,=rwx) (Administrators,GROUP,=orwx).
    ERROR 2004-10-21 13:25:20
    MOS-01105  Processing of one or more file system node operations of table   Content of table: t_SAPComponent_Permission_Action_SHARED  Row[0]    WapsSystemName="S01" WapsInstanceName="DVEBMGS10" WapsInstanceHost="dg" Key="WAPS_FilePermission_100" Condition="true" OpMode="SETPERMISSION" NodeName="E:\usr\sap/.." NodeType="DIRECTORY" NodePermission="(dg\SAP_LocalAdmin,GROUP,=rwx) (SYSTEM,GROUP,=rwx) (Administrators,GROUP,=orwx)" Recursive="YES"   Row[1]    WapsSystemName="S01" WapsInstanceName="DVEBMGS10" WapsInstanceHost="dg" Key="WAPS_FilePermission_101" Condition="true" OpMode="SETPERMISSION" NodeName="E:\usr\sap" NodeType="DIRECTORY" NodePermission="(dg\SAP_LocalAdmin,GROUP,=rwx) (SYSTEM,GROUP,=rwx) (Administrators,GROUP,=orwx)" Recursive="YES"   Row[2]    WapsSystemName="S01" WapsInstanceName="DVEBMGS10" WapsInstanceHost="dg" Key="WAPS_FilePermission_102" Condition="true" OpMode="SETPERMISSION" NodeName="E:\usr\sap/S01" NodeType="NODE" NodePermission="(dg\SAP_S01_LocalAdmin,GROUP,=rwx) (SYSTEM,GROUP,=rwx) (Administrators,GROUP,=orwx)" Recursive="YES"  failed.
    ERROR 2004-10-21 13:25:20
    FJS-00012  Error when executing script.
    Environment:
    W2K, Local Installation
    Dieter

    Das Dateisystem muß auf NTFS konvertiert werden. Dann klappts.

  • I can't seem to open (view) my photos.  I get an error message that says "the file couldn't be opened because you don't have permission to view it. To view or change permission, select the item in the finder and choose File. Get info."

    I can't seem to open (view) my photos.  I get an error message that says "the file couldn't be opened because you don't have permission to view it. To view or change permission, select the item in the finder and choose File. Get info."  I have never had this happen before?  Thanks!

    Try the following:
    1 - launch iPhoto with the Command+Option keys held down and rebuild the library.
    2 - Run Option #1, Repair Permissions.
    OT

  • Whenever I close down Photoshop CS5 I get the message: "Could not save Preferences because the file is locked or you do not have the necessary access privileges. Use the get info command in Finder to unlock the file or change permission on the file or enc

    Whenever I close down Photoshop CS5 I get the message: "Could not save Preferences because the file is locked or you do not have the necessary access privileges. Use the get info command in Finder to unlock the file or change permission on the file or enclosing folders." What on earth does it mean? How can I stop this message from appearing?

    See here:
    I cannot save recent images.

  • You don't have permission to make changes to that file.

    I have recently reinstalled iWeb from a time machine backup due to the fact that I had to re install Leopard, I can get my old website to load but when I make changes I get the following message when I try to save it: +You don’t have permission to make changes to that file.+
    I have set all the permissions to Read & Write for all the users but it still will not work, any ideas please.
    I have also done repair permissions etc

    I'm having the same problems. I can't find the iWeb.plist file anywhere. I deleted the iLife.plist file in case it was there, but I still can't edit my website. This website was made on my computer, but under a different login name. I copied the file to another login name and that's where I'm trying to publish my website from. It keeps telling me that I don't have permission to edit. Anymore thoughts. Thanks anyone.

  • SAVE  FAILED. You don't have permission to make changes on that file.

    I have copied the domain file from one machine to edit the website from another machine. The editing job can be done without hassle. When I try to publish the we site from the machine where I have imported the domain file appear the message:
    SAVE FAILED. You don't have permission to make changes on that file.
    What's wrong ??
    After 2 minutes appears another window: Your domain has been published...

    And how did you copy it over?
    Depending on how the file was brought over, it may still have permissions set from the prior volume (I had this problem with iPhoto libraries). It's able to create the web content from the live document, but unable to save the changes to the domain.sites file.
    You can try running "repair permissions" with Disk Utility in your Utilities folder to see if that helps.

  • Lightroom CC still not open even I signed back in or change permission of delete plist file.

    I have just update to Lr CC
    uninstall Lr5.7 by 3rd party app
    then i cannot open to Lr CC (just flash screen appear)
    I've already signed out from CC then signed in back
    remove Plist file from preferences folder and changed permission too
    How Can I do next? it's still not work

    Hi There,
    Kindly try Solution 2 from the link mentioned below.
    "Unknown Server Error" | Log in to Creative Cloud
       2. If you are still not able to activate it, please contact our support team via:  http://helpx.adobe.com/in/contact.html?step=CCSN_adobe-id-signing-in_stillNeedHelp
    If you are unable to use chat option kindly try below mentioned steps.
    Try different browser.
    Delete cookies and cache
    If the problem still persists Kindly revert with the below mentioned information.
    OS version:
    Browser Version:
    You can also try:http://helpx.adobe.com/x-productkb/global/phone-support-orders.html
    Thanks,
    Atul Saini

  • How to change permission file

    i have an old file in my website lhokseumawe dalam angka for year 2004, 2005 and more
    you can check it here: http://www.bappedalhokseumawe.web.id/lhokseumawe-dalam-angka
    but i lost the original one because the person making the file is not there or retire.
    how do i change permission for copy, print,etc
    please help me, because this is important file for the local goverment in my place
    thanks

    sorry for not clear question, what i mean is Document restriction summary
    Printing                                              : Allowed
    Document Assembly                          : Not Allowed
    Content  Copying                               :Not Allowed
    Content  Copying for accessibilty       : Allowed
    etc
    how do i change permission to be allowed or not ?

  • Change permission file pdf in script jsx indesign cs6

    change permission file pdf in script jsx indesign cs6

    What exactly is the question? If you are looking for help with a script, please post in InDesign Scripting

  • Changing permission on "Everyone" group on "Users" folder to "No Access"

    Hello Everyone,
    I need help on changing permission on "Everyone" group on "Users" folder to "No Access" using a Terminal command line.
    What i'm trying to do is assign "Everyone" group to "No Access" on "User" folder to restrict other users from going to users home folder on the computer.
    Right  now, when a user login he/she has the ability to view files that are not located in the documents folder
    PS
    Network is configured for OD/AD, home folder is located on Dell Server
    Appreciate the help, Thanks very much

    You are running Oracle Linux and want to use a network volume provided by Windows 2008 to install Oracle Database.
    Your problem is that you cannot set appropriate privileges on the mounted volume to perform the installation.
    Is this correct?
    If yes, then as far as I know, Windows file sharing is not support, even if you fix the permission issues. Your problem is the file system, which won't be Linux ext3. NFS might be supported, but I think it is not the best idea. Have you looked into iSCSI? It will allow you to mount remote disks using SCSI protocol. You could do pretty much everything with such a mounted disk that you can do with a locally attached drive, including initializing, but instead of using the local bus, it will use the TCP/IP network.
    How to setup iSCSI on Windows Server 2008 (storage server)
    http://technet.microsoft.com/en-us/edge/Video/ff710316
    CentOS / Red Hat Linux: Install and manage iSCSI Volume
    http://www.cyberciti.biz/tips/rhel-centos-fedora-linux-iscsi-howto.html
    Edited by: Dude on Jun 23, 2011 12:08 PM

  • When i change permission of folder why it doesn't change the permission inside that folder?

    When i change permission of folder why it doesn't change the permission to inside  files of that folder?

    have to select "apply to enclosed items" options

  • How can I change the policy file?

    I have designed an applet to read a file from the local Machine.
    This applet thro a servlet reads the contents of the file specified.
    I use Tomcat 4.1.12 server and this is an client-server application.
    To read the file in the local machine, I set the permission as follows in the .java.policy file in the Local Machine.
    grant codeBase "http://MyMachine:8080/Example" {
    permission java.io.FilePermission "<<ALL FILES>>", "read, write, delete, execute";
    as the applet file is in the Example of the server "MyMachine".
    Its working and my applet is able to read the file from the local machine it runs.
    Now my problem is I cannot set/change the policy file in every machine where my applet runs.
    Instead if there is a way to change the policy when the applet downloads,that'll be effective.
    That is I donot want to go and change the policy file manually in each and every machine where my applet runs(I donot even know which are the machines going to run the applet).
    Is there any means to acheieve my need?
    Please explain me in detail or direct me to the relevent web sites or links.
    Thank you

    Hi Hosuke,
    I had the same problem, thanks for the advise.
    Still I have a remark to make.
    The thing is that, in order for the applet to have the permission granted (for whatever), you need to have a policy file which you can include in the JAR file (like you explained before) AND also you need to add an entry in the java.security file (located for me: "C:\Program Files\Java\j2re1.4.1_01\lib\security\java.security") that tells the applet where to find all the .policy files.
    Something like: policy.url.4=file:/c:/java.policy
    But since we are talking about an applet we are not able to make changes to this file.
    Maybe you or anyone else knows a workaround for this problem.
    Thanks in advance,
    Ronald Vromans.

  • Just purchased a mbp and want to change permission on the hd, how?

    Just purchased a mbp and want to change permission on the hd, how?

    fgw1 wrote:
    I can't copy anything to it. It is owned by "system" at least that has read write
    Where are you trying to copy files to, What folder.
    If you create a folder anywhere on the drive then You should have ownership of that folder. If you are trying to copy files to a System Folder then of course the system has ownership and will restrict access.
    I Personally, in Lion, added my user account to the ROOT access of the Drive and given myself Read/Write access with no i'll harm, AFAIK.
    Haven't done that in Mt Lion yet.

  • When I try to upload a file it goes through the correct proceedure, but does not change the remote file i.e.Index.htm

    Hi
    I have an uploading problem to the server. The problem is when I try to upload a file it goes through the correct proceedure,
    but does not change the remote file i.e.Index.htm, or three stages1.htm.
    My Localroot folder is C:\Gods Plan Web\
    The site map layout is C:\Gods Plan Web\Index.htm
    The folder for the remote site is /public_html/
    Should the local root folder mirror the remote site, i.e./public_html/
    if this is so, what should I put into the
    (a) Local Root Folder box?
    (b) site map layout box?
    The FTP is performing well other than changing the intended file.

    You should be uploading only the contents of your local root to the public_html folder (remote root).
    The index.html you use as your site's home page needs to be in your site root. If you look at your Files window in DW, you should have something like the following...
    Site - Whatever you named your site
         index.html
         images
         pages
              page1.html
              page2.html
    If you have any folder between Site - and the index.html page, like...
    Site - Whatever you named your site
         mywebsite
              index.html
    It will upload to the public_html while still in that folder, so to find your page online, you would need to type something like...
    www.mydomain.com/mywebsite
    public_html should NOT appear within your local files and if it existed there, would cause a redundancy if uploaded. You would need to type www.yourdomain.com/public_html to see the uploaded pages.
    If you could post a screen shot of your expanded Files window while connected to the server (just connect and click the Expand button in Files, don't drill down into any of the directories), we may be able to see the issue.

  • How can I change the source file so it is direct from external hard drive?

    I am trying to make a movie on imovie of a snowboarding trip that I went on, there is around 80 to 100 gig of mp4 movies that will not fit on my computer that I have stored on my external harddrive. I had the movie half finished then found I could do no more as I had no space left in my mac. I had to delete everything and start again but I'm not doing this until I can find a way of changing the source file so I can take them direct from my external hard drive as to not use up all my computers available space. I have moved imovie to my external hard drive but it still tries to read from a movie file on my mac, how can I change that so it will read from a source file on my external hard drive, is it possible?? Can someone help me??

    Hi Bengt, Thanks for your input, much appreciated.
    I have a WD 1TIG hard drive and are using usb connection, is it possible to use fire wire with these? I have had trouble with a lot of the videos I Imported, once they downloaded the file in the viewer window showed up blank and when I mouse over them it places a picture of another file in the window and wont drag and drop into the movie window, like their corrupted or something? Had to delete just about all of them and start again. Also is it possible to select a bunch of videos in the viewer window as to change the dates to the correct dates? All I have been able to do is "select all" which is no help.

Maybe you are looking for