Get a list of copied/moved files from a folder

Hi everyone
A friend of mine works in an office, and they're thinking that somebody is copying files from their Macs to flash drives or something to give the data to another company. He asked me a way to make a log of which folders/files are copied (just filename, where they copy it and time of copy). I've revised the system logs and I haven't found the way. Maybe with a folder action or something?
Of course, this is not for bad use. It's all about a company security.
Thanks in advance,
Enrique

Wow, I'll try it... but isn't that audit programme something to put inside the code of a software?
My English isn't very good, so I feel lost in that Mac reference library...

Similar Messages

  • Moving files from one folder to another caused freeze

    I now have a list of files stuck in the center of my screen.
    I'm sure a reboot will fix this (I hope!) but I thought it was a bug worth reporting.
    All I did was move a copy a collection of files from one folder to another folder.  It made the "move" sound, and the files have been copied, but something clearly went wrong

    Have java.io.File objects pointing to the three folders. Get the list of all the files in the folder. Start a loop and check if the filename ends with Data.dat. If it is so then copy file to the final folder.
    To Copy file you can use any of the two approaches.
    1. You can read that file as byte stream (java.io.FileInputStream) and write it to the other folder as bytes (java.io.FileOutputStream).
    2. You can use shell commands to do this. (java.lang.Runtime.exe() method)
    Ali Ahsan

  • How to copy a file from one folder to another folder in Linux

    Hello everyone,
    Oracle forms 11g 11.1.2.0.0
    OS: Oracle Linux
    We use webutil to upload files to the application server from the client machine, and stores them in a folder named JOB_DOCS on the application server (This folder is created as a databse directory too). File types are JPEG, GIF, PDF, TXT, BMP, DOC, XLS etc...
    At a later stage when the user tries to view the uploaded documents, this was not getting displayed on the screen
    on our windows server, when the user clicks on the print button we copy the file from the JOB_DOCS folder to the forms\java folder using the below command
    HOST('COPY ' ||d:\JOB_DOCS\test.pdf||' '||'c:\oracle\middleware\as\forms\java\test.pdf ,NO_SCREEN);
    once the file is under the forms\java folder then it is getting displayed on the screen to print or save, and later we remove the file from forms\java folder.
    But my problem here is, recently we have installed our application on Oracle Linux server, and we have JOB_DOCS folder there, and the users can upload files to this folder also. How can we copy the file test.pdf from JOB_DOCS to forms/java in linux?
    And what could be the reson for the document cannot be accessed from the folder where it is saved? We tried giving folder permissions, adding the folder to PATH variable etc.

    For copying and moving directories you can use the cp and mv commands just like you use them with files. Yeah, I know. If you've already tried to copy a directory with cp, you've probably noticed that cp just complains at you. Probably it says something like cp: omitting directory yadda yadda. You see, the cp command wants you to use the -r option if you want to copy a directory with its contents. The -r means "copy recursively":
    $ cp -r dir1 dir2
    The above creates a directory named dir2 whose contents will be identical to dir1. However, if dir2 already exists, nothing will be overwritten: the directory dir1 will be copied into the dir2 directory under the name dir2/dir1.
    When renaming directories, you use the mv command exactly the same way as with files:
    $ mv dir1 dir2
    When dealing with directories, mv works a bit like cp does. If dir2 doesn't exist, the above will rename dir1 to dir2, but if dir2 exists, the directory dir1 will be moved into the dir2 directory under the name dir2/dir1.
    ref http://www.tuxfiles.org/linuxhelp/dirman.html

  • Getting a list of users and permission from a folder

    I run this command to get a a list of users and permission from a folder
    $project_folder = "\\servername\foldername"
    get-acl $project_folder | %{ $_.Access  } | ft -property IdentityReference, AccessControlType, FileSystemRights > folder.csv.
    This only lists information for 1 folder.
    If i have multiple folders how should the code be modified?

    this is the code i am looking for 
     $project_folder
    = "\\servername\foldername\foldername1"
    get-acl $project_folder | %{ $_.Access  } | ft -property IdentityReference, AccessControlType,
    FileSystemRights > folder.csv.
    I  run this code and this gives me the information for only the folder 'foldername1'.
    Ex. i need a list of users who have permmission in \\servername\foldername\foldername2.
    i run the code and it gives me the permissions and list of users in foldername2.
    This is the issue
    IF there are multiple folders \\servername\foldername\foldername2, \\servername\foldername\foldername1,
    i need to run the code each time for 1 folder. 
    is there a command where i can combine the path of these 2 or more folders and export
    it to csv
    Ex.  $project_folder
    = "\\servername\foldername\foldername1",
    "\\servername\foldername\foldername2"
    get-acl $project_folder | %{ $_.Access  } | ft -property IdentityReference, AccessControlType,
    FileSystemRights > folder.csv.
    This will give me the list of users and the type of access they have in foldername1 and
    foldername2

  • How to copy a file from a folder on macbook pro

    ive been trying to copy a file (a video file) from my finder to my external hard drive, drag it and stuff, but i keep getting this forbidden sign.
    i'd love to get some help.
    thanks.

    Hi,
    Normally this happens if the hard drive is either formatted in an incompatible format (like NTFS which is read only) or if you do not have permissions to write to the hard drive.
    You can check the format in disk utility by selecting the external hard drive partition in the left and then down the bottom it will show the format. It should either be Mac OS Extended (Journaled) or MS-DOS FAT. If it is not you will need to erase the drive to format it.
    You can check the drive permissions by right clicking (control clicking) the icon for the external hard drive, and selecting "Get Info". down the bottom in sharing and permissions, check the box that says "Ignore Ownership"
    Hope this helps.

  • Getting a list of users and permission from a folder including nested groups

    $project_folder = "\\servername\foldername\foldername1"
    Get-Acl $project_folder | 
        ForEach-Object { 
            $_.Access | Add-Member -MemberType NoteProperty -Name Path -Value $_.Path -PassThru  
        } | 
        ft -GroupBy Path -Property IdentityReference, AccessControlType, FileSystemRights > foldertst.csv
    The above command gives me a list of all the users who have access to foldername1. (including users and groups).
    How do i modify this code to get the information of the nested groups for this folder

    Sorry, I won't be providing a complete solution, just a few suggestions and comments.
    first thing will be to determine for each ACE (access control entry) whether the IdentityReference refers to a user account or a group. If a group, you will then need to process each of its members, each of which will share the FileSystemRights of the current
    ACE.
    But... if any of the members are other groups, you will need to process them recursively as well. Recursively.
    There are a few gotcha's, though:
    you need to recognize and avoid infinite recursion when, for example, group A is a member of group B which is a member of group A. One way to do this is to keep a list of all groups encountered, processing each only once.
    if one ACE belongs to group C, another belongs to group D, group A is a member of C, and group B is a member of D, you must ensure that all members of A and B are listed with ACE C and ACE D.
    Once you have identified all user accounts you might find that some have multiple records. For example, user AA might belong to group A, and get unlimited access through the ACE owned by group C, but deny read access through the ACE owned by group D. If
    the first mention of this user in your output shows he has unlimited access, that will, of course be incorrect. at the very least the output should be sorted by username. You could attempt to amalgamate all of his various accesses (like the effective permissions
    tab) into a single one. But it would be difficult to show which group memberships contributed which aspects of his access permissions in any kind of simple or intuitive way.
    security configurations can easily become overly complex. The best solution is to simplify and standardize how permissions are applied and how groups are nested. I have had to do this on occasion, and the problem of determining how things should be permitted
    from how they actually are is probably the most complicated part of the job.
    good luck.
    Al Dunbar -- remember to 'mark or propose as answer' or 'vote as helpful' as appropriate.

  • Moving Files from Movies Folder

    I have a lot of home videos on itunes that I categorize as "tv shows" so it's easier for me to find what I'm looking for. To do that I have to add them to the "movies" category then later change the file info for "tv show".
    However, when I do that the files remain unorganized on the iTunes movies folder on my computer (/iTunes/Music/Movies).
    Is there anything I can do so files will be moved to a tv show folder when the info is changed just like happens with my songs?

    Perhaps you're changing the genre to "TV Shows," but the choice on the Video Kind tab remains "Movies"? It's the Video Kind dropdown menu that matters. Vidoes you pull down to say "TV Shows" will appear in the TV Shows library.

  • Moving files from one folder to another using workflows

    Hi everyone,
    I need help creating a workflow. Within my Shared Documents Library, there is a folder, within which there are other sub-folders.
    Shared Documents--> Resumes --> Approved
    Shared Documents--> Resumes --> Rejected
    I want to create a workflow so that the resumes are uploaded to the Resumes folder and based on whether the user approves or rejects them, they are moved into either the Approved or Rejected folders. Any help would be highly appreciated
    Thank you.

    Why to make it more complex when we already have facility to group them by status option? Create a view and select group by “status” or create a separate web part page and add Shared Document library web part 2 times on the same page. For the first web part
    select filter option which only displays files with “Approved” status and for the other web part select it for “Rejected”
    Though you can refer below link if you wish to involve workflow into this
    http://captechconsulting.com/blog/dee-gavlick/moving-documents-restricted-subfolder-sharepoint-designer-workflow-sharepoint-2010
    Regards,
    Pratik Vyas | SharePoint Consultant |
    http://sharepointpratik.blogspot.com
    Posting is provided AS IS with no warranties, and confers no rights
    Please remember to click Mark As Answer if a post solves your problem or
    Vote As Helpful if it was useful.

  • Script to copy current files from one folder to another and to FTP it to a another server

    I have created a simple script that copies the file, but doesn't give me only the current day file.  I'm not sure what I'm doing wrong.
    :: @echo off
    setlocal
    :: Checking for production cluster
    if not exist e: exit
    date /t
    for /f "tokens=1-4 delims=/ " %%A in ('date /t') do (
       set M=%%B
       set D=%%C
       set Y=%%D)
    xcopy E:\ACHDlrPPcsvDownload\*-%Y%%M%%D%*-GMACTEST.csv /y E:\ACHDLRCSV
    pause
    endlocal
    I also want to ftp this file to another server. I've tried the basic FTP command but it doesn't work.

    Here is a more reliable method of extracting the date.
    @echo off
    :: Checking for production cluster
    if not exist e: exit
    set M=%date:~4,2%
    set D=%date:~7,2%
    set Y=%date:~10,4%
    set target=%Y%%M%%D%
    @echo E:\ACHDlrPPcsvDownload\*-%target%*-GMACTEST.csv /y E:\ACHDLRCSV
    xcopy E:\ACHDlrPPcsvDownload\*-%target%*-GMACTEST.csv /y E:\ACHDLRCSV
    Look at the command being echoed to validate the filename template.  Try it at a prompt.
    ¯\_(ツ)_/¯

  • Removed some files from library folder

    moved files from library folder and attempted to put them back after experiencing major changes and problem. This is not correcting the situation what can be done to restore it back to what it was before I started?

    Hi Ali,
    Update, I did a verify permissions with disk utility and some stuff is where it should be now, (recovered iphoto yeah) but still a problem with other things as before.
    So to answer your questions,
    What is the exact path to this folder? And please post the contents of the folder.
    I get to her old itunes by the following path;
    home>music>itunes>itunes music - this folder contains folder icons of all her old itunes library, each artist has a folder, such as amy cook>list of albums>list of songs - if selected will than open itunes and will import to new itunes library.
    I don't quite understand the heirarchy you are describing. Please post the contents of her Home folder.
    Her home folder contains
    Desktop
    Documents
    Library
    Movies
    Music
    Pictures
    plus 9 folders she had created over the past four years these are intact and accessible to proper application programs (ie documents open in appleworks, pictures are from the pictures library not iphoto, 3rd party software such as genealogy programs are intact and up to date)
    "I find some old unchanged items such as itunes, imovie, email mailbox items, in a folder that she created before the change took place in her user
    account."
    What is the exact path to this folder?
    As for this folder some things were moved back to proper places with the above mentioned verify permissions, some like, mailbox items, I was able to import to current settings to restore to how it use to be. From what I gather she created this file when things were going wrong and she feared messing the whole thing up. I access this by the following path;
    home>library>(then the folder she created) Library do not touch.
    When I compare the main library file to my account main library file they do not contain the same items in fact many of the missing items seem to be in this folder that she created. I assume the ones I need are in this file she created but I am really hesitant to just start moving things around out of fear of creating more problems on her side or messing up my side.
    If you have sufficient available disk space, you shouldn't have any problem, but you need a reliable backup, just in case.
    In regards to archive/install - sufficient available disk space meaning as much or more than what I am currently using? How do I check this to be sure?
    Which brings me to a whole new question if you have time?
    We do have an external back up system, which we used before a semi-recent move, (I plan on finding the box it is packed in believe me), however we attempted to use imacs backup program to do a quicker backup, were able to back up her side onto disks, but when I attempted to do the same on my side I received an failure error screen something about a drained buffer and being unable to perform a backup. Please tell me I have not fried my dvd drive!!!
    Thanks again, hope I answered in a way that is helpful to you.
    need to know

  • Can't copy some files from Windows 7 to Mac OSX over network

    Hi,
    I'm running the latest version of Max OSX v10.8.4 on a brand new Macbook Pro.
    I have followed the setup instructions at http://www.7tutorials.com/how-change-workgroup-mac-os-x-easy-networking to access my Macbook from Windows, and http://www.howtogeek.com/howto/24950/how-to-share-a-folder-in-os-x-with-windows/ to share some folders from my Macbook to Windows.
    I am now trying to copy some files from my Windows 7 Pro (SP1) computer to my Mac, and have hit the following problems:
    I can view my Macbook in my list of local networked computers on WIndows, but I cannot access it. Clicking on it causes Windows 7 to try and access it, but then I get a message after a minute saying the network path could not be found. However, if I manually enter the IP address of my Macbook in the Windows address bar (\\192.168.0.191), I can view and access all the shared folders. I can never access the Macbook via it's computer name (\\MACBOOK-ROB).
    I cannot copy some files from Windows to my Macbook shared folders via Windows. There is nothing to distinguish these files from the hundereds of other files that I have successfully copied to my Macbook. They are pictures and music with no special characters in the filenames, not overly long filenames or folder paths, no access restrictions, or any other security restriction that I can see. However, every single attempt to copy these files to my Macbook results in WIndows reporting that access to the destination was denied.
    I have tried both these above scenarios on WiFi and Ethernet, and the results are the same.
    So:
    Why am I unable to access my Macbook by it's computer name on the network? How can Windows see it, but not access it?
    What are the limitations on transferring files over SMB that is (presumably) causing these specific files to fail?
    Thanks for any help you can offer.

    I have a fix for inability to copy files. I had the same problem moving a lot of old files across my LAN from a Windows XP machine to a Mac Mini running Mountain Lion. After confirming copy of some special file, I would get an error that terminated the copy operation, and info on the Mac side would show a locked folder.
    I finally decided to eliminate all special files on the Windows side, before copying, by running
         attrib -s -h -r /s /d [drive or folder]\*.*
    in a command window. Running attrib /?  tells what the arguments mean, but it doesn't explain that you need the *.* to make the command go through the hierarchy clearing the special attributes on all the files.
    After I did that, and then used drag and drop between two Windows Explorer windows (one on the Windows drive, on on the target drive on the Mac), the whole move operation ran to completion without stopping either for error or to ask for confirmation.
    I do not have a fix for the inability to access some computers by name rather than by IP address. I'm looking into the possibility of activating bind on the Mac but I haven't done anything yet.

  • HT4889 moving files from pc to mac book

    Hi have down loaded to set up moving files from pc to mac book pro but keep getting an error message on pc  saying error occurred whilst  preparing your info for transfer ! i am running visa on pc any help pls thanks

    Look at these links.
    *How to use your iPod to move your music to a new computer*
    http://docs.info.apple.com/article.html?artnum=300173
    http://www.ilounge.com/index.php/articles/comments/copying-music-from-ipod-to-co mputer/
     Cheers, Tom

  • When copying raw files from Extreme IV card to hardrive, finder copies a few files then exits task and wipes the card clean of all images.

    When copying raw files from Extreme IV card to hardrive, finder copies a few files then exits task and wipes the card clean of all images.  Have tried new card and card-reader to no avail.  Have done this many times on other macs with no problems.
    Can edit files off the card, in CameraRaw, prior to 'copying' them, ie can 'save as' to the hard drive, so files seem okay on card, before I try to copy them using copy and paste.
    Running OS 10.8.3 on a new macbook pro.

    Rita,
    The process for determining what is causing the files to be corrupt can be a tedious one depending on the following:
    1. Can you review the images on your camera's LCD screen without problems? If not then the problem is most probably either a corrupted/faulty memory card or a faulty camera. If this is the case then your best bet at recovery (of sorts) is to use a program such as BrezzeBrowser from BreezeSys to extract the embedded jpeg versions of the corrupted RAW files from within each RAW file. Chances are, you won't manage to actually repair the corrupted RAW file but the jpegs are better than nothing.
    2. If the images review ok on your camera but are corrupted when viewing on your computer and there seems to be no other problem with other files on your computer then it may be either a faulty card reader or usb/firewire cable between the card reader and the computer that is the culprit. Try the card reader with a different cable and also try a different card reader to determine the cause of the corruption.
    3. If your symptoms are that you get different files corrupting over time when viewing them on your computer then the problem may be any one of either failing RAM memory, hard disk, hard disk controller or IDE/SATA hard disk cables. This is where the troubleshooting can be pretty tedious testing then eliminating each item from the list of suspicious pieces of hardware. Try the card and card reader on an altogether different computer to see if the files transfer correctly to that computer. If so then the problem lies with your computer hardware. If you haven't already done so at this stage, backup all your important data immediately (hopefully you keep backs anyway).
    Hope this helps.

  • Moving files from one user to another

    Good afternoon all!
    In short I need to create a new user on a MacBook Pro running 10.7 (latest updates available as of this posting). However in the past when I have done this, when I moved the needed files (Photoshop actions, images, etc) over to the new user I kept getting permission errors which makes sense.
    So my question is simply, how do I migrate data from one user account to another while either modifying or fixing permission issues?
    Thanks!

    Copy all the data files into /Users/Share as the old user then log in as the new user and copy the files from /Users/Share to the home folder.

  • Computer freezes when moving files from USB, or to another partitioned HD

    Hello, i've been moving files from two USB's to my Macintosh HD, and when I do that, the computer kinda freezes up, i can move the cursor, but not kinda click anywhere, and then a minute after or something, it gets normal again, but the transfer is going horribly slow. this happens when i move from Macintosh HD, to Macintosh HD 2 (a partitioned one). the files are 2 gb each USB. which means im transferring 4 gb at the time.

    Neurot wrote:
    I have 6 folders on my hard drive. These folders were created by downloading a bunch of rar files, then extracting them each to their own folder. I have not touched the permissions, so they should be the default of me having read/write and everyone else having read (correct me if i'm wrong).
    Using two Finder windows, I drag and drop the six folders from one hard drive to another, and hold down the Apple key so that it moves instead of copies. I let go and it starts copying the files (since there is no "move", but rather a "copy and then delete").
    I would recommend you don't use this method to move a lot of files between drives. it's much safer first to copy and if the copy is successful to delete the original afterward. there was a data loss bug in OS X a while back that wold sometimes lead to total loss on both the source and the target when doing this.
    this bug is supposed to be long fixed but still...
    How is the hard drive you are moving the files to formatted? what yo describe sometimes happens when moving a lot of stuff to or from FAT formatted drives. also, repair both drives in disk utility. repair disk, not permissions.
    Message was edited by: V.K.

Maybe you are looking for