Cant remove a file from a directory

hi gems...god morning...
I am facing an issue but i cant figure it out..
I have two users which belong to same group i.e. user1 and user2
Now user1 owns a directory(dir1) and the permission is 775.
Now user2 makes a FTP and places a file(fil1) into that directory(dir1) owned by user1.
The umask setting is 027 and thats why in that directory(dir1) the file permission becomes 640.
But when i am trying to delete that file(fil1) using user1, then it is not allowing me..
what can i do..please suggest...thanks in advance...

thanks for replying...
It really looks strange and all i thought it is a code problem..
Means the scenario i have told here is not from the direct access to the solaris box...
It is happenning when a batch job is being called from there. The operations the batch job does is to take the file, do some processing and then remove that file. Everything is getting successful except the last step.
But when I tried from the backend(direct access through putty) then it behaves normally.
So i am confirm that it is a code issue. I have told the developers to check the code.

Similar Messages

  • Removing podcast feed from the directory

    Hello,
    I have read up on how to remove a feed from the directory, but when I go to the store the option "is mine and I want it removed from the Music Store" is not present. Why would this be? Is there another way to remove a feed.
    Also I want to remove this feed and replace it with one that has a similar title at a different URL. I want to change it from theantenna to The Antenna.
    Will this be a problem?
    best,
    a

    Correct. There is no option for "is mine and I want it removed"...There is an option for "remove podcast" and a text box to explain. However, it's still up to the iTunes staff to remove the podcast and they seem to be quite slow in doing so.
    Also supposedly if the feed no longer exists, they should remove the podcast from the directory.
    Also, as an alternative, you might consider using the <itunes:new-feed-url> tag in you old feed's XML file at the old location to change the URL of your existing podcast to the new one. Change the <title> in the XML to change the title of your podcast, iTunes will pick up the change the next time it updates.
    Erik

  • Anyone knows how to delete a file from a directory?????

    hi there
    anyone has any idea on how to delete a file from a directory? delete(String filename)? thank you.

    Hi,
    Check this link.
    Gives you an example code to show how to delete a file.
    http://examples.oreilly.com/jenut/Delete.java
    Hope this helps.
    Roopasri Vittal
    Developer Technical Support
    Sun Microsystems
    http://sun.com/developers/support

  • Java Program to copy file from one directory to another failing

    Hello All,
    Oracle Applications 12.1.3
    RDBMS: 11.2.0.30
    SQL*Plus: 10.1.0.5.0
    Java beginner here so help is much appreciated.  I'm have some java code that I'm using to copy a file from one directory to another in an Oracle Applications Server.  I notice that when moving to a new instnace I started to get file not found errors.  I think it's because of the directory.  My question is, does the directory in which I trying to pick up the file have to be a DBA_DIRECTORY, or a UTL_FILE directory in order for the java to find the file and move it?
    Here is my code...
    CREATE OR REPLACE AND COMPILE JAVA SOURCE NAMED "COPY_FILE_JVS" AS
    import java.io.*;
    public class COPY_FILE_JVC{
      public static void copy(String SourceFile, String DestDir) {
        File source = new File(SourceFile);
        File dest = new File(DestDir);
        File cpDestFile = null;
        try {
          if (dest.isDirectory()) {
              if(source.isFile()) {
                System.out.println("File name = " + source.getName());
                System.out.println("File name dest = " + dest.getPath() );
                System.out.println("File name cpDestFile = " + dest.getPath() + File.separator + source.getName());
                cpDestFile = new File(dest.getPath() + File.separator + source.getName());
              else {
                System.out.println("Directory or File Not Found");
                return;
          BufferedInputStream  br = new BufferedInputStream (new FileInputStream (source));
          BufferedOutputStream  bw = new BufferedOutputStream (new FileOutputStream (cpDestFile));
          int read = 0;
          while((read = br.read()) != -1) {
            //System.out.println((char)read);
            bw.write(read);
          br.close();
          bw.close();
        catch (FileNotFoundException e) {
        e.printStackTrace();
        catch (IOException e) {
        e.printStackTrace();

    I get these messages when calling the java from SQL Plus as follows...
    serveroutput on size 100000;
    dbms_java.set_output(1000000);
    MY_PKG.CopyFile('/home/my_user/set_env.sh','/interface/home'); (this is call to oracle pl/sql package which calls the java.)
    PL/SQL procedure successfully completed.
    Directory or File Not Found
    PL/SQL procedure successfully completed.
    If I change the directory from /home/my_user/ to any directory that is defined in DBA_DIRECTORIES or is a UTL_FILE directory to program works.  Is it perhaps because the java is in a PL/SQL package as seen below?  The PL/SQL program runs as the APPS user and I have issued the following the command grant JAVASYSPRIV to APPS.
    Here is the PL/SQL Package....
    CREATE OR REPLACE PACKAGE BOLINF.MY_PKG AUTHID CURRENT_USER AS
    CopyFile(p_SourceFile IN VARCHAR2, p_DestDir IN VARCHAR2);
    +++++++++++++++++++++++++++++
    CREATE OR REPLACE PACKAGE BODY BOLINF.MY_PKG  is
    CopyFile(p_SourceFile IN VARCHAR2, p_DestDir IN VARCHAR2)
    AS LANGUAGE JAVA NAME 'COPY_FILE_JVC.copy(java.lang.String, java.lang.String)';

  • Open file from a directory that is not web accessible?

    Subject says it all really, I'd like users to be able to download files from a directory that is otherwise not accessible by the browser. There is a way to do this is PHP, the readfile() function. Is there something equivalent in Java?
    Thanks!

    You can do that with a Servlet and a shot of java.io API.
    Here's an example: [http://balusc.blogspot.com/2007/07/fileservlet.html].

  • How does one remove temporary files from Safari?  A friend logged on to her Facebook account using my iMac.  Now I can't remove her e-mail address from Facebook.  It was suggested to me that I try clearing temporary files from Safari but I can't find

    How does one remove temporary files from Safari?  A friend logged on to her Facebook account using my iMac running Mac OSX 10.7.5 and Safari 6.1.6.  Now I can't remove her e-mail address from my computer.  When I open Facebook her address shows in the user button.  I do not have a Facebook account.  It was suggested to me that I try clearing temporary files from Safari but I can't find anything that tells me how to do this.  Are temporary files the same as the cache?  It also was suggested that I try clearing Safari cache.  How do I do that?

    Check Safari/Preferences/Passwords to see if the Facebook account is there. If so, select it and remove it. If you are still having problems, Safari/Preferences/Advanced - enable the Develop menu, then go there and Empty Caches. Quit/reopen Safari and test. If that doesn't work, Safari/Reset Safari.

  • How can I remove .nrw files from my NOKIA Asha 200...

    When I am connecting my NOKIA Asha 200 with my PC by data cable, I am watching almost 50 nos. *.nrw files inside the Image folder. I tried to delete all those file, but I was unable. Is there any one, who can tell me how to remove those files from my phone memory?
    Thanks & regards,
    Sudip Sinha.
    Calcutta.
    India.

    Back-up your data and then Factory Reset your phone ...(Menu-->Settings-->Restore Factory settings-->Settings only.. followed by 12345 which is default security code, unless set by you) .. When the phone reboots, check whether these .nrw files are now converted to .jpg .. If so, you should be able to delete them now ...

  • How to make button to format a HardDrive or USB, How to remove all files from folder, and How to delete a process in listbox with a textbox?

    Hello!
    Here's the question with explaniation: How can i format the USB or Drive by clicking a button what's meant for it?
    and the second question what's also in vb.net: How can i remove all files from folder ? 
     Here's the Look of program: *
    Using the PC button, it will delete the free space of the PC, do you guys/girls know where it's location?

    Example Code:
    Imports System.Runtime.InteropServices
    Imports System.IO
    Public Class Form1
    Dim CBoxDrives As New ComboBox
    WithEvents FButton As New Button
    <DllImport("shell32.dll")> _
    Private Shared Function SHFormatDrive(ByVal hwnd As IntPtr, ByVal drive As UInteger, _
    ByVal fmtID As UInteger, ByVal options As UInteger) As ULong
    End Function
    Private Enum SHFormatFlags As Integer
    SHFMT_ID_DEFAULT = &HFFFF
    SHFMT_OPT_FULL = &H1
    SHFMT_OPT_SYSONLY = &H2
    SHFMT_ERROR = &HFFFFFFFF
    SHFMT_CANCEL = &HFFFFFFFE
    SHFMT_NOFORMAT = &HFFFFFFD
    SHFD_FORMAT_FULL = 0 ' full format
    SHFD_FORMAT_QUICK = 1 ' quick format
    End Enum
    Private Sub FButton_Click_1(sender As System.Object, e As System.EventArgs) Handles FButton.Click
    If CBoxDrives.Text = "" Then
    MsgBox("No Drive Selected")
    Exit Sub
    End If
    Dim Iresult As ULong = SHFormatDrive(CType(Me.Handle.ToInt32, IntPtr), CUInt(Asc(CBoxDrives.Text.Substring(0, 1)) - Asc("A")), CUInt(SHFormatFlags.SHFMT_ID_DEFAULT), 1)
    End Sub
    Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
    Me.Size = New Size(200, 100)
    With FButton
    .Size = New Size(50, 25)
    .Location = New Point(5, 5)
    .Text = "Format"
    End With
    Me.Controls.Add(FButton)
    With CBoxDrives
    .Size = New Size(50, 25)
    .Location = New Point(75, 5)
    .DropDownStyle = ComboBoxStyle.DropDown
    End With
    Me.Controls.Add(CBoxDrives)
    Dim DrivesFound As Integer = 0
    Dim allDrives() As DriveInfo = DriveInfo.GetDrives()
    Dim d As DriveInfo
    For Each d In allDrives
    If ((d.DriveType = DriveType.Fixed) Or (d.DriveType = DriveType.Removable)) AndAlso Environment.GetEnvironmentVariable("SYSTEMROOT").StartsWith(d.Name) = False Then
    CBoxDrives.Items.Add(d.Name)
    DrivesFound += 1
    End If
    Next
    CBoxDrives.SelectedIndex = DrivesFound - 1
    End Sub
    End Class

  • How do i move a file from one directory to another?

    Can anyone help me in moving a file from one directory to another?
    The following code just does not work!!
    File source_file = new File(source_file);
    if(source_file.exists())
    File dest_file = new File(destination_file);
    if(!dest_file.exists())
    boolean moved = source_file.renameTo(dest_file);
    System.out.println("moved.."+moved);
    The varirable moved is always false.
    Can anyone tell me whts wrong in this code?

    The problem in your code is you used file object as argument when you create a new File. I changed a little bit codes and it should be fine now.
    String source_file1="test111.txt";
    String destination_file1="test222.txt";
    try{
         File source_file = new File(source_file1);
         if(source_file.exists())
              File dest_file = new File(destination_file1);
              if(!dest_file.exists())
                   boolean moved = source_file.renameTo(dest_file);
                   System.out.println("moved.."+moved);
    catch(Exception e){
               e.printStackTrace();
    }

  • How can I create a array with all files from a directory

    How can I create a array of files or varchar with all files from a directory?

    I thought the example could be improved upon. I've posted a solution on my blog that doesn't require writing the directory list to a table. It simply returns it as a nested table of files as a SQL datatype. You can find it here:
    http://maclochlainn.wordpress.com/2008/06/05/how-you-can-read-an-external-directory-list-from-sql/

  • ITunes 11 previously imported a video file, which I loaded on to my iPod Nano, but I removed the file from the iTunes library and now it won't (re-)import the same video. Any thoughts on why not?

    iTunes 11 previously imported a video file, which I loaded on to my iPod Nano, but I removed the file from the iTunes library and now it won't (re-)import the same video.
    I'm using 2 PCs, each with video files (.MP4) on their respective hard drives, and also one external drive with other video files on that I move between the two devices.
    iTunes on one PC will (sometimes!) let me add video content from the external hard drive, which is clearly iTunes-compatible, because I can then copy it over to my iPod Nano. On the other PC, I couldn't load that same video from the external hard drive. But if I copied that same video on to the PC's internal hard drive first, then iTunes would let me import it. That was yesterday - now iTunes is refusing to load any files from the internal or external hard drive(s).
    Any thoughts or suggestions, please?

    So I tried copying the files from the external hard drive to a USB drive. I could import the video files from the USB drive!
    So then I tried importing the same files on to my PC's internal hard drive again. I could import the video files from the internal hard drive!
    So then I tried to import the very same files that failed to load on the very same PC previously. I could now import them!
    I still can't import from the external hard drive directly, though.
    I really don't think I like the process of importing things into iTunes very much... any suggestions on what's causing any of this behaviour would be very interesting.

  • How do i remove a file from my favorites list on my hard drive

    how do i remove a file from my favorites list on my hard drive.  i was trying to put a file in my documents, and it added it to my favorites.  i have tried to drag it off but it won't disappear and it won't go into the trash either.  any suggestions.  i think it is simple because i have done it before, but can't remember what i did to correct it.  thanks

    Try Holding the CMD Key as you drag it off...

  • To Move Multiple Files from one directory to another.

    Hi,
    I need to move multiple files from one directory in UNIX (application server ) to another. I need something like an FM 'STRALAN_COPY_FILES' which is also valid in ECC 6.0.
    Thanks in advance.

    Hello Sachin
    Below you see a copy of how to use EPS_FTP_PUT using transaction SE37.
    Import parameters               Value             
    RFC_DESTINATION =                 NONE              
    LOCAL_FILE             =         filename          
    LOCAL_DIRECTORY   =              /dir1/dir2        
    REMOTE_FILE             =        filename          
    REMOTE_DIRECTORY   =             /dir1             
    OVERWRITE_MODE        =          F        " force -> overwrite existing file                 
    TEXT_MODE                    =   B               " binary
    TRANSMISSION_MONITOR            X       " display transmission monitor            
    *RECORDS_PER_TRANSFER            10                
    *REQUESTED_FILE_SIZE             0                 
    *MONITOR_TITLE                                     
    *MONITOR_TEXT1                                     
    *MONITOR_TEXT2                                     
    *PROGRESS_TEXT                                     
    *OBJECT_NAME  
    Regards,
      Uwe

  • Reading Files from client directory folder using servlets or struts.

    HI All,
    Could you please help me out int the below query.
    I want read all files from paricular directory folder from the client machine in web application. I am able to do it from my local machine. but when I am try to do it from some other machine I am not able to get the file list.
    It is very urgent ..please hep me ASAP.

    It should be problem with the file permissions in your client machine ???Hardly.
    @OP: a servlet executes at the server. It doesn't haved any access whatsoever to the client machine.

  • I have read 118 files (from a directory) each with 2088 data and put them into a 2 D array with 2cols and 246384row, I want to have aeach file on a separate columns with 2088 rows

    I have read 118 files from a directory using the list.vi. Each file has 2 cols with 2088rows. Now I have the data in a 2 D array with 2cols and 246384rows (118files * 2088rows). However I want to put each file in the same array but each file in separate columns. then I would have 236 columns (2cols for each of the 118 files) by 2088 rows. thank you very much in advance.

    Hiya,
    here's a couple of .vi's that might help out. I've taken a minimum manipulation approach by using replace array subset, and I'm not bothering to strip out the 1D array before inserting it. Instead I flip the array of filenames, and from this fill in the end 2-D array from the right, overwriting the column that will eventually become the "X" data values (same for each file) and appear on the right.
    The second .vi is a sub.vi I posted elsewhere on the discussion group to get the number of lines in a file. If you're sure that you know the number of data points is always going to be 2088, then replace this sub vi with a constant to speed up the program. (by about 2 seconds!)
    I've also updated the .vi to work as a sub.vi if you wa
    nt it to, complete with error handling.
    Hope this helps.
    S.
    // it takes almost no time to rate an answer
    Attachments:
    read_files_updated.vi ‏81 KB
    Num_Lines_in_File.vi ‏62 KB

Maybe you are looking for

  • Events created on iPhone don't appear in iCal on my computer...

    ...but events created on the computer do appear on the iPhone.  I'm using iCloud and other functions (e.g. Photo Stream) work fine.  I've browsed the community for suggestions, but keep ending up reading articles from 2007 or 2008.  Thanks in advance

  • I spilled water on my MacBook  Pro. What do I do?

    Immediately after spilling, I wiped down my MacBook Pro. The keyboard has a rubber cover so I'm hoping the keyboard was protected; however, my trackpad began to react slowly to my touch. After 5 minutes or so, the trackpad began responding better, bu

  • Split valuation : 'start and stop'

    Friends, My simple question is when can we start and stop SPLIT VALUATION. how to stop/deactivate, with which situation of stock / PO etc ?

  • Conversion of XML tags in receiver file adapter

    Hi All, I am sending one xml file to receiver file adapter. But in case of receiver side I need to change the tags in XML structure, eg: if source aml file  has tag <NAME> then in receiver case I need to convert it to <FNAME>. How will I achieve it?

  • How do I make a Hyperlink in Java?

    Hi! I've made an Image Icon out of a JButton in an applet. When the button is pushed I want to link to a popup html-window. Could you please write some code down to me. Appreciated. Thx.