Need to write/delete a file (token) to/from user's home directory

I want to build a class that runs on Windows/Unix clients. It needs to get to users' home directories (both environments) and write the token on login, delete it on logout.
What method (or code snipet) would get a user's home directory?
What method (or code snipet) would write/delete a file from it?
Thanks much

Even if you are not writing an Applet, this is applicable. But I thot if you were, you might need this.
See 'SignedAppletDemo.java'
http://developer.java.sun.com/developer/technicalArticles/Security/Signed/

Similar Messages

  • HT1923 In trying to delete the Apple file in the Program/Common File I can delete all contents except the Internet Services folder.  Thus preventing me from deleting the Apple FIle.  Error message says I need permission to delete this file.  How do I proc

    Trying to delete the Apple Folder from Program Files/Common Files.  I can delete all the contents except for the Internet Services folder which prevents me from making the deletion.  The error message says "you need permission to delete this file".
    Discovered this problem when trying to upgrade from my 3G iPhone to a new 5S iPhone unsucessfully.

    See note 3 of Troubleshooting issues with iTunes for Windows updates.
    tt2

  • From PLSQL - Need to write a text file

    Hello
    I need to write a text file from data retrieved from many tables in PLSQL to the UNIX box.
    Thanks
    Paul
    null

    You can use package UTL_FILE to write out to a file. Your DBA has to make initialization changes to support this. They might already have it setup. Run this query:
    SELECT value
    FROM v$parameter
    WHERE name = 'utl_file_dir';
    To see whether it has been configured properly. The value is the directory where you can create and write files.
    null

  • If you delete files from your computer, BlackBerry Link deletes the file or collection from your device?

    I found the below description from the help of BlackBerry Link, however i never get it work.
    Any one know whats wrong or what i need to set?
    About deleting music, pictures, videos, and documents?
    After you sync your music, picture, video, or document files between your computer and your BlackBerrydevice, if you delete a file or a collection of files, the following actions occur:
    If you delete files from your computer, BlackBerry Link deletes the file or collection from your device.
    If you delete files from your device, BlackBerry Link doesn't delete the file or collection from your computer.
    For information about how to delete a file from your device, tap the Help app on the home screen of your device.

    Hey hkfoolman,
    Welcome to the BlackBerry Support Community Forums.
    Thanks for the question.
    Go into BlackBerry Link and click on the BlackBerry and then click on Options.  Make sure you have Music, Pictures, Videos and Documents checkmarked for synchronization.  Once these are checked, try to remove the files.
    Let me know if you have any more questions.
    Cheers.
    -ViciousFerret
    Come follow your BlackBerry Technical Team on Twitter! @BlackBerryHelp
    Be sure to click Like! for those who have helped you.
    Click  Accept as Solution for posts that have solved your issue(s)!

  • HT1923 This article contains the only thing that worked for me.  I also had to sign out of iCloud and uninstall it.  Then I had to delete all files and folders from all of those applications that were under Program Files, Program Files x86, and Users.

    This article contains the only thing that worked for me.  I also had to sign out of iCloud and uninstall it.  Then I had to delete all files and folders from all of those applications that were under Program Files, Program Files x86, Program Data and Users.  My iPhone 4 will now sync with iTunes both in its USB-connected  mini dock and over Wi-Fi.  It's unfortunate (negligent programming on the part of Apple?) that the upgrade to iTunes 11 did not remove all of those files as part of the upgrade process. 

    I am having the same issue....Same address for years - same as USPS - I tried 5 times (3 macs and 2 iPhones) and now i have 5 CHARGES for 1.00 each on my credit card. I took the credit card info off so they don't charge me anymore. How can they charge me yet still not allow me to download free updates and say I have an invalid address? I'm sure I will spend weeks or months trying to get a credit out of these incompetent idiots.

  • 求助: 如何使用write to spreadsheet file.vi 和 read from spreadsheet file.vi, 并且如何定义它们的路径???

    请问如何使用write to spreadsheet file.vi 和 read from spreadsheet file.vi,我知道spreadsheet file.vi只支持.txt文件,但我应该在哪里设置它们的路径呢,请各位帮忙指点,能不能具体说明下,谢谢...

    write to spreadsheet file.vi 和 read from spreadsheet file.vi,支持.xls文件.
    可以在path处设置它们的路径.

  • Is there a file in which OSX stores the home directory path, where to find it and how to edit it in Windows 7?

    Hi everyone,
    I have a SSD with the System and Apps on it, and another HDD containing the home directory.
    I made the mistake to rename the Volume the home directory is on whilst being logged in, the system reacted accordingly and prompted some Password requests,
    and I then tried to choose the newly named Volume in the Advanced options dialogue in Users & Groups (example seen below).
    I tried to change the name back to what it was in the hope of it all being back to normal again, but instead it's completely messed up now and I cannot login anymore (prompt: "You are unable to log in to the user account "xxxx" at this time. Logging in to the account failed because an error occurred")
    All I can do now is boot my Windows 7 and try to fix this from there, I can read/write the OSX Volumes thanks to MacDrive.
    So now the big question is:
    IS THERE A FILE containing the path to the home directory (red arrow)?
    IF SO, WHERE can I find it?
    And is there a way to edit it in Windows?
    My guess is that if I rename the Volume, AND change this path to something identical again, it might solve the issue.
    Thanks!

    Download THIS
     Cheers, Tom

  • When there is web service request, we need to write to text file

    Hello, Im currently using a web service request (particularly the read request variable). What my application does is that when a user enters the url
    http://127.0.0.1:8001/WebService/Process?1=1&2=0&3​=1&4=0&5=0
    LED 1 and 3 turns on, while the other LEDs are turned off. I would like also to keep text file logs on what is the current time now, and the status of the LEDs. I want only to write to the file everytime the user enters the query in the URL (I dont want to write the logs every second or so, just only when the user presses the go button in the browser) 
    I can now write to a text file the current datetime stamp, and already setup the web services. But I cant figure out how can I execute this write process everytime the user fires up a web request.
    Basically, how can I write to a text file the status of the LEDs each time there is a URL request? 
    Attached is the project. Thanks
    Attachments:
    DOE_LabView_v2.zip ‏15 KB

    One reason you might not be getting any errors is that you aren't looking for errors. Connect up the error clusters and then display what you get.
    Where are you getting the path that you are writing to?
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Need to deny access to file manager for the user

    Hi
    I need to be able to deny access to the file manager, as I dont want my client deleting files. however, for some reason I have to allow him access to this as he needs to be able to upload files through InContext Editor (he needs to link pages to documents that are not on the server so he needs to upload them and to do this, I have to grant him access to file manager).  How can I get around this?  I dont want to have to reupload his site every time he deletes a file....

    Unfortunately it can't be done - access to the file manager allows deleting as well as uploading and at this point that cannot be changed.

  • Can I Delete any files in the Application Data\Apple Computer directory?

    I'm using and iPhone 4S and Windows XP.  (I know I'm WAY behind, and we're saving to buy an iMac soon.)  I have a plethora of files in this directory
    C:\Documents and Settings\User\Application Data\Apple Computer\Logs\CrashReporter
    Are there any files there I can delete.  Some of them on my iPhone 3G go back a couple years. 
    And how about the files under here?
    C:\Documents and Settings\User\Application Data\Apple Computer\MobilSync
    Is there a document that describes what all these files do, which ones I can delete, which ones are vital, etc.?
    Thanks in advance!

    You need call another PHP file
    <?php
       $directory = './files/uploads';
       getDirectoryList ($directory);  
       //This function find all the files in the directory
       function getDirectoryList ($directory)
         // create an array to hold directory list
         $results = array();
         // create a handler for the directory
         $handler = opendir($directory);
         // open directory and walk through the filenames
         while ($file = readdir($handler)) {
           // if file isn't this directory or its parent, add it to the results
           if ($file != "." && $file != "..") {
        //$results[] = $file;
         // Delete Files
        $filename = $file;
      unlink($filename); //this delete a file
         // tidy up: close the handler
         closedir($handler);
    ?>

  • Is there a way to delete music files in iTunes from my iPod/iPhone ? Delete option is gone in iOS 7

    Does iOS 7 have a way to delete files in iTunes from my mobile device? And GOD the keyboard is BAD BAD BAD!!!

    Thank you! Before you swiped right to get a delete. Never thought to swipe left :)

  • Deleted itouch files using ifile from cydia. i restarted it but now it shows the apple logo and that is it... it doesnt respond. any ideas of how to make it work?

    I restarted my itouch using the home button and top button...it restarted but it only shows the apple logo and that is it.  I deleted all files from ifile and then it froze... any ideas of how to make it work again?

    Discussions of hacked ipods is not permitted here.

  • HELP needed to write a function returning 1 record from join tables

    Hi,
    I would like to have some help to write a function so It can return 1 result.
    I post my question in the APEX Express sextion but I think it's belong here.
    Mount Points and Home Directory
    Also, can I move a thread in another forum?
    thanks
    Roseline
    Edited by: user8772975 on 2009-09-19 21:43

    ok, I think I started to understand the functions. But I still can't figured out
    CONTEXT
    We are scanning pages and images from different newspaper. All the .tif, .jpg are on DVDs.
    I'm trying to build a search page who will allow for all DVDs and All images name related to the search result. Let say I search for:
    FIGARO
    I have this SQL query and I want to make a function that will return the same thing as:
    select     
          "DOSSIER"."ID" as "DOSSIERID",
          "DOSSIER"."TITLE" as "TITLE",
          "DVD"."ID" as "DVDID",
          "DVD"."NAME" as "DVDNAME",
          "DVD"."ID_DOSSIER" as "DVD_ID_DOSSIER",
          "ELEMENTS"."ID" as "ELEMENTSID",
          "ELEMENTS"."NAME" as "ELEMENTSNAME",
          "ELEMENTS"."ID_DVD" as "ELEMENTS_ID_DVD"
    from      "DOSSIER" "DOSSIER",
               "DVD" "DVD",
               "ELEMENTS" "ELEMENTS"
    where   "DVD"."ID_DOSSIER"="DOSSIER"."ID"
    and      "ELEMENTS"."ID_DVD"="DVD"."ID"
      and       "DOSSIER"."TITLE" = :P3_SEARCH
    ORDER BY "DVD".NAMEBasiccly, We are scanning pages and images from different newspaper. All the .tif, .jpg are on DVDs.
    So we have someting like that:
    TITLE: FIGARO
    DVD:        C2008-203
    Elements: 12l10201.tif, 12l10202.tif, 12l11101.tif, 12l11102.tif, 12l11201.tif
                    12l11202.tif, 12l12101.tif, 12l12102.tif
    DVD         C2008-204
    Elements: 12l12202.tif, 12l13101.tif, 12l13102.tif, 12l13201.tif, 12l13202.tif,
                   12l14101.tif, 12l14102.tif, 12l14201.tif, 12l14202.tif, 12l15101.tif,
                   12l15102.tif, 12l15201.tif
    DVD:       C2008-205
    Elements: 12l15202.tif, 12l16101.tif, 12l16102.tif, 12l16201.tif, 12l16202.tif,
                    12m01101.tif, 12m01102.tif, 12m01201.tifBased on what people on the forum told me, I now know that I have to use Pl/SQL so I have to write a function that will return the same thing as the prvious query.
    Is that exact?
    Based on this example,
    [http://plsql-tutorial.com/plsql-functions.htm|http://plsql-tutorial.com/plsql-functions.htm]
    I would write something like:
    CREATE FUNCTION my_super_function
    RETURN VARCHAR(2000);
    IS
    details VARCHAR(2000);
    BEGIN
    select     
          "DOSSIER"."ID" as "DOSSIERID",
          "DOSSIER"."TITLE" as "TITLE",
          "DVD"."ID" as "DVDID",
          "DVD"."NAME" as "DVDNAME",
          "DVD"."ID_DOSSIER" as "DVD_ID_DOSSIER",
          "ELEMENTS"."ID" as "ELEMENTSID",
          "ELEMENTS"."NAME" as "ELEMENTSNAME",
          "ELEMENTS"."ID_DVD" as "ELEMENTS_ID_DVD"
    from      "DOSSIER" "DOSSIER",
               "DVD" "DVD",
               "ELEMENTS" "ELEMENTS"
    where   "DVD"."ID_DOSSIER"="DOSSIER"."ID"
    and      "ELEMENTS"."ID_DVD"="DVD"."ID"
      and       "DOSSIER"."TITLE" = :P3_SEARCH
    RETURN details;
    END;
    / And then, use soemthing like:
    select my_super_function("DOSSIER"."ID") from "DOSSIER" "DOSSIER" where "DOSSIER"."TITLE" = :P3_SEARCHI'm kinda of lost. I spent the last 6 hours but I think that programming is a working progress.
    Any hint would be appreciated,
    thanks
    Roseline

  • How to delete the 7 lakhs workitem from user's inbox in workflow

    Dear Experts.
    I want to delete around 7 lakhs work items from user's inbox.Kindly suggest how can we delete at a time.
    Kindly suggest us.
    Thanks in Advance.
    Regards.
    Kumar.

    Hi Kumar
    Try to find why 700,000 items went to a single user...is it an accident or a valid case. Do fix the root cause to avoid this in future.
    Now for the answer to your question:
    1) Go to table SWWUSERWI, USER_ID = 'USERNAME' and get all work items in in field WI_ID
    2) Execute report RSWWWIDE (tcode SWWL) and paste all work item IDs ; make other fields empty - un-check "Delete Log Data as well"
    This should be the LAST resort!
    Regards,
    Modak

  • How do I delete locked files that came from a PC from my time capsule?

    I had to temporarly tansfer 200 gigabytes of files to my timecapsule as temorary storage so I could reformat a Lacie drive for a collegue. Once the files had been copied back on to the Lacie I went to delete them from my Time Capsule and it keeps on telling me I don't have permission even though I'm signed in as Admin. I've tried taking ownership of the main folder all the sub-folders and files are in but OSX won't let me.  I also can't use disk utility on the time capsule as it doesn't appear within the program. Anyone have any ideas?

    TM creates a sparsebundle owned by TM..
    When people copy files to the TC they often see a mounted directory.. and plonk files in there.. unfortunately that just happens to be TM sparsebundle.. and that is a lobster trap.. you can copy in but once a file is in.. it can never be deleted. 
    Did you try a PC? It is often a case that windows explorer can delete stuff mac cannot since permissions is kind of a unix thing.. that MS has always ignored.
    No luck then sorry but you need to wipe the TC .. you can of course save your TM backup (assuming you avoided putting the files in there).. and recover it back.. think of it as the same thing you did to the lacie in reverse.

Maybe you are looking for

  • Limiting Swap File Usage

    i have an issue with my main drive, and whilst i am getting this sorted, in the meantime i have installed a new installation of mavericks onto a 16gb flash drive. now a usual fresh install of mavericks takes about 5.8gb and this should leave me a few

  • How can I call external SSL application to enter Payments from EBS 10.5.10?

    Hello I am not able to do [Can I call any ActiveX control in the Forms under Oracle EBS 11.5.10 ?|http://forums.oracle.com/forums/thread.jspa?threadID=1086549&tstart=135] Now I am looking for some ideas or alternatives or suggestions. We are at EBS 1

  • Weird character 'u00A4' display  at output of  ADOBE form in SAP for amount

    When display pattern for amount field is set for ADOBE form in SAP, output displays ' ¤ '. All display patterns shows '$' at the begining, but when output is generated it displays '¤'. Advice me how to eliminate this. (or) Is there a way to hide this

  • Connecting databases without database link

    Hi, I have net80 configuration for 2 different database in desktop with oracle client. I can login either of the two database using connect strings. I need to get some data to store in in database 1 from database 2. But for some inevitable reason cre

  • Corrpted file, appears I have lost everything

    Mac user, have not upgraded yet. Was using LR no issues, downloaded about 150 pics and had no problem sorting, deleting, developing. Put the computer to sleep, pulled it out a few hours later and opened LR and got a message about the file being corru