Copying files across the network changes their permissions... Why?

Okay, I have several Macs running Leopard 10.5.5. All of my users store their working files in their Shared folders so other people who log into their Mac have access to them so they can make corrections/changes etc.
We also configure the Shared Folder to be shared under File Sharing --> Shared Folders pref pane. The permissions are set there for Everyone to have Read/Write. The problem occurs when a user connects via the network to another users' Mac Shared Folder and copies a file to their Mac. Once they copy the file the permissions change to Everyone Read Only.
My question is why and can I keep the permissions intact?
Thanks

Mac_Tech wrote:
Okay, I have several Macs running Leopard 10.5.5. All of my users store their working files in their Shared folders so other people who log into their Mac have access to them so they can make corrections/changes etc.
We also configure the Shared Folder to be shared under File Sharing --> Shared Folders pref pane. The permissions are set there for Everyone to have Read/Write. The problem occurs when a user connects via the network to another users' Mac Shared Folder and copies a file to their Mac. Once they copy the file the permissions change to Everyone Read Only.
My question is why
that's how it's supposed to work. a new file is created on the other computer and it acquires standard permissions for new files. this can not be changed.
what you can do is make sure they always copy those files to a particular directory and put ACLs on that directory that give everyone read+write rights to everything in it. For example, make a folder inside /Users/Shared directory. call it, say "sharedstuff".
then run the following terminal command
chmod +a "everyone allow delete,chown,list,search,add_file,\
addsubdirectory,delete_child,file_inherit,directoryinherit" \
/Users/Shared/sharedstuff
now everything you copy to that folder will be read+write by everyone even if you do this across a network.

Similar Messages

  • I need to copy files over the network PSSession . ( Firewall / DMZ / Etc. )

    Hello
    I need to copy files over the network PSSession . ( Firewall / DMZ / Etc. )
    I have a script where I copy from my local server ( server1) to the remote server ( server2 ), but I can´t not make script that will copy from the remote server to my local by my session. From server2 to server1
    Script is as below ...:-)
    HELP : ....
    winrm s winrm/config/client '@{TrustedHosts="SERVER2"}'
        $Source = "D:\test\ok.log"
        $Destination = "D:\test\ok.log"
        $session = New-PSSession -ComputerName SERVER2
    Set-StrictMode -Version Latest
    ## Get the source file, and then get its content
    $sourcePath = (Resolve-Path $source).Path
    $sourceBytes = [IO.File]::ReadAllBytes($sourcePath)
    $streamChunks = @()
    ## Now break it into chunks to stream
    Write-Progress -Activity "Sending $Source" -Status "Preparing file"
    $streamSize = 1MB
    for($position = 0; $position -lt $sourceBytes.Length;
        $position += $streamSize)
        $remaining = $sourceBytes.Length - $position
        $remaining = [Math]::Min($remaining, $streamSize)
        $nextChunk = New-Object byte[] $remaining
        [Array]::Copy($sourcebytes, $position, $nextChunk, 0, $remaining)
        $streamChunks += ,$nextChunk
    $remoteScript = {
        param($destination, $length)
        ## Convert the destination path to a full filesytem path (to support
        ## relative paths)
        $Destination = $executionContext.SessionState.`
            Path.GetUnresolvedProviderPathFromPSPath($Destination)
        ## Create a new array to hold the file content
        $destBytes = New-Object byte[] $length
        $position = 0
        ## Go through the input, and fill in the new array of file content
        foreach($chunk in $input)
            Write-Progress -Activity "Writing $Destination" `
                -Status "Sending file" `
                -PercentComplete ($position / $length * 100)
            [GC]::Collect()
            [Array]::Copy($chunk, 0, $destBytes, $position, $chunk.Length)
            $position += $chunk.Length
        ## Write the content to the new file
        [IO.File]::WriteAllBytes($destination, $destBytes)
        ## Show the result
        Get-Item $destination
        [GC]::Collect()
    ## Stream the chunks into the remote script
    $streamChunks | Invoke-Command -Session $session $remoteScript `
        -ArgumentList $destination,$sourceBytes.Length
        Remove-PSSession -Session $session

    But have will the script look,  if i need to copy from
    From server2 to server1.
    My script copy from server1 to server2 and working, but I need server2
    to server1.

  • Problem of file association while copying files from the network.

    Hello,
    I have a network shared folder with Quark Xpress files on it. I own an Imac with MacOSX 10.4.3 where Quark Xpress is not installed but I want to transfer Quark files from this network share to an other.
    When I do this, the file association is missing on the copied file. The original has still the Quark icon, but the copied file has a blank icon and when trying to execute it from a mac with Quark Xpress installed, it does not recognize it (?). It's kind of a file association loose.
    For information, when I do the same manipulation using a mac with OS9 and Quark installed, I have no problem with the file association in output.
    Hope someone had the same situation to help me. In anyway, sorry for my English, I tried to do my best to explain my problem !

    Zip the files. Select the files, Finder->File->Make Archive, transfer them, and unzip them using the Finder or Stuffit Expander.

  • How to I copy files across a Network using 10.9?

    On earlier versions I could find another Mac on the network and log into it to enable me to see the file structure.  To copy files from one machine to another i just dragged a file or folder full of files from the folder on the source machine to a folder on the destination machine.  Since upgrading my machine to 10.9 I find that the files on the destination machine are all 'denied access'.  This was never an issue before.  Is this a bug or is there a setting somewhere set to a different default than before that I need to find and change?

    weston_front wrote:
    Since upgrading my machine to 10.9 I find that the files on the destination machine are all 'denied access'. 
    When you select the destination Mac, do you still login with the user account that has Read/Write access?
    Do the shared folders on the destination Mac have your user account included for Read/Write access?

  • Weird X on corner of copied file over the network

    i was copying a file from my Mac Pro (Lion) to my MBP (ML) over the network and i noticed this little x in a black box on the top left hand corner of the icon while it was being copied.
    does anyone know if this is normal?
    the two little red marks mean that the file is a windows file for my virtual machine but i have seen this x before and i was curious to know if this is in fact a Mac OS functionality.
    TIA

    OK. weird. the files on my dropbox have this weird blue x and then a green checkmark in this spot if i am not mistaken.
    so we are saying this is a function of a PROGRESS BAR and it goes away when the copy has completed?
    i mean, it did go away over here but i don't remember seeing it before for some reason.
    THANKS

  • Cannot Copy Files over a network

    I've had a new hard drive installed in iMac by Apple, and Apple re-installed the OS, which is running 10.6.7 (all current software updates are installed). The iMac is part of a network connecting to a OS X Server 10.4.10
    All of the Network Drives have been connected, the user can copy documents under 1MB to and from the server fine. However if we try to copy files over 1MB the first file will copy fine, but then no more files can be copied to the server from this machine, regardless of the size.
    If i use another Mac, with the same user credentials I can copy files of any size without any issues. I have tried connecting to the Network using both the Ethernet port and Airport but I experience the same issue regardless.
    If I reboot the iMac I can copy a file over 1MB again and then the symptoms re-present themselves. I have tried creating a users, new network drives, folders etc. I can connect using any user, to any of the new folders from any other machine on the network but not from this one.
    When the copying fails Finder just hangs with
    Copying "" to "ShareName" rather than having the name of the file, I believe this may be where the error lies.
    I have also tried running the App Maintenance from Titanium Software, after running this i can copy files over the network fine, but after I have copied 10 or so files, the situation goes back to not copying files correctly. 
    Tags:

    I have tried several files and also I have copied the files on to a USB Hard Drive and then onto another machine, that machine was able to copy the files over the network.
    The Firewall is switched off on this Mac, I have tried various different options with the Firewall, Turning it off, ensuring the AFP connections are allowed.
    Also using the Maintenance app, that I mentioned clears the Caches, repairs permissions etc etc

  • How to share files across my network from Belkin N

    I have a belkin N+ router that you cant plug a USB hard drive or a flash drive into to share the files across the network. It shows my router as a device on the network but gives me the same error message every time I try to acess them. How can I set this up from my Mac, what do I need to to do?

    I had the same problem. I was first getting an error on my PC about the library being created with a newer version of iTunes. I upgraded my PC to 8.1 and am now receiving the following error when trying to open up the shared library:
    "The iTunes application could not be opened. An unknown error occurred (13005)."

  • Why can't I copy a file across a network?

    I am having a very peculiar problem copying a simple text file across a network.  The problem occurs when I try to copy from a newly purchased and newly upgraded MacBook (13 inch aluminum 08) to a 2010 Mac mini.
    When I try to copy from the MacBook to the mini, Document folder to Document folder, I get this message:
        A new item named “filename” already exists in this location.  Do you want to replace it with the one you’re moving?
    If I click Replace, I get this message.
         The operation can’t be completed because an item with the name “” already exists.
    If I click Keep Both, the process begins to create thousands (yes thousands!) of numbered copy files with the same file name and zero contents.
    Copying from the MacBook to a different Mac works normally.
    The problem, I suppose, stems from the fact that I migrated my user account from the Mac mini to the MacBook.  But, I’ve done that before without a problem, so what is happening?
    I also suppose that the solution is to delete the migrated user account on the MacBook and create a new one, but that’s a nuisance.
    Can anyone solve this puzzle?
    Thanks-
    Robin

    Sorry I couldn't help.  You mention copying a simple text file, then mention ~/Documents to ~/Documents, then finally mention migration assistant.
    It's honestly not too clear what you're tyring to accomplish.  Do you have mutliple user accounts now and you want to thin them down?  Do you simply want to get your Documents from the mini to the new computer?  I copy between Macs all the time (ML to Mavericks, Mavericks to Mavericks).  The worst thing I've faced is the need to reset home permissions and ACLs.
    Many of the guru's who frequent the Mavericks area also come here.  I'm sure one of them can help.  Good luck.

  • View/Change User Accounts From Across The Network - Do not have Server

    Is there a program or utility that can be run in Mac OS X Tiger or Leopard to manage user accounts on other Macs that are located across the network? Is there anything that will do this that is free, or not too much money?
    Our setup: multiple Macs on a network that is primarily a Windows AD Domain. For various reasons, we do not have the Macs setup as members of AD. We also do not have a Mac OS X Server. I am wondering if there is something that is built-in, free, or on the cheaper-end, to manage user accounts and their permissions from across the network on the Macs?
    Thank you for your help!
    Dan

    If the systems are not bound to a parent domain, then local account policy will need to be set individually. There is a way to get Workgroup Manager working on OS X client, but I do not know of a way for it to see remote NetInfo/DS Local data stores. It will only see the local store. NetInfo in the 10.2 days could pull this off. But Apple removed those features in favor of LDAP and eventually DS Local.
    You will probably need to use a combination of tools. Start with defining base settings in the User Template to ensure that all new home folders are created equal. Then use ARD or ssh to define user policy with pwpolicy and other tools like niutil (Tiger) or dscl. Test with mcxquery. If you get Server Admin Tools, you can use Workgroup Manager to craft the needed xml for mcx values, then inject into the user account.
    But this is only going to get you local policy. If users are connecting to file shares and mail, they are using their network credentials so those policies need to be managed at the domain level.
    I would encourage binding the machines to the domain. While this can, and has (sadly), been done, being part of the domain is so much easier. If you need a system for storing the LDAP schema, get a Mini and do it on the cheap. Otherwise, consider AD schema modification and then practice your xml skills.
    Hope this helps

  • Can anyone help me?Time Machine couldn't complete the backup to...  An error occurred while copying files. The problem may be temporary. If the problem persists, use Disk Utility to repair your backup disk.  What is the problem?  I've made no changes.

    I recently starting receiving the error message "Time Machine couldn't complete the backup to... An erro occurred while copying files.  The problem may be temporary.  If the problem persists, use Disk Utility to repair your backup disk.  I have had no problems backing up my MacBook Pro 2011 to my Western Digital My Book Live through a Linksys EA4500 router until recently.  I've made no major changes.  I've ran a diagnosis on my back up drive with no problems.  The Time Machine back up starts, but about after about 5 to 10 minutes I get the error message.  I can see the shared drive in Finder.  The light on the drive blinks while it starts the back up.  I can see the shared folders on the networked drive.  The backup process starts but for some reason it just stops.  Can anyone help?

    You can't repair a network volume in Disk Utility.
    Backing up to a third-party NAS with Time Machine is risky, and unacceptably risky if it's your only backup. I know this isn't the answer you want, and I also know that the manufacturer says the device will work with Time Machine, and that it usually seems to work. Except when you try to restore, and find that you can't.
    If you want network backup with Time Machine, use as the destination either an Apple Time Capsule or an external hard drive connected to another Mac or to an 802.11ac AirPort base station. Only the 802.11ac base stations support Time Machine, not any older model.
    If you're determined to keep using the NAS for backup, your only recourse for any problems that result is to the manufacturer (which will blame Apple.)

  • Time machine: An error occurred while copying files. The problem could be temporary. If the problem persists, use Disk Utility to repair your backup disk.

    Time machine backups are failing. I've followed the instructions I found on the Time Machine troubleshooting page (http://pondini.org/TM/Troubleshooting.html) but have gotten to where I don't know what to do next.
    Sequence of events:
    The main error message is always:
    An error occurred while copying files. The problem could be temporary. If the problem persists, use Disk Utility to repair your backup disk.
    Yesterday, I opened Disk Utility and verified the disk. Got this error:
    Error: This disk needs to be repaired using the Recovery HD. Restart your computer, holding down the Command key and the R key until you see the Apple logo. When the OS X Utilities window appears, choose Disk Utility.
    I ran Disk Utility and repaired the hard drive. Then I manually started the backup before going to bed, figuring it was going to take a long time to run. When I got up this morning, the backup had failed with the same "could be temporary" error. I checked the log, which says:
    Starting manual backup
    Attempting to mount network destination URL: afp://Tery%20Griffin;[email protected]/Tery%20Griffin's%20Time%20Ca psule
    Mounted network destination at mount point: /Volumes/Tery Griffin's Time Capsule using URL: afp://Tery%20Griffin;[email protected]/Tery%20Griffin's%20Time%20Ca psule
    Disk image /Volumes/Tery Griffin's Time Capsule/Tery Griffin’s Computer (44).sparsebundle mounted at: /Volumes/Time Machine Backups
    Backing up to: /Volumes/Time Machine Backups/Backups.backupdb
    Event store UUIDs don't match for volume: Macintosh HD
    Error: (-36) Applying backup protections to /Volumes/Time Machine Backups/Backups.backupdb/Tery Griffin’s Computer (44)/2014-03-05-201742.inProgress/ABB10CF2-F041-4DE5-B6AE-3C228B59ADCC
    Error: (5) setxattr for key:com.apple.backupd.SnapshotStartDate path:/Volumes/Time Machine Backups/Backups.backupdb/Tery Griffin’s Computer (44)/2014-03-05-201742.inProgress/ABB10CF2-F041-4DE5-B6AE-3C228B59ADCC size:17
    Error: (5) setxattr for key:com.apple.backupd.SnapshotState path:/Volumes/Time Machine Backups/Backups.backupdb/Tery Griffin’s Computer (44)/2014-03-05-201742.inProgress/ABB10CF2-F041-4DE5-B6AE-3C228B59ADCC size:2
    Deep event scan at path:/ reason:must scan subdirs|new event db|
    Finished scan
    Found 145601 files (11.88 GB) needing backup
    16.1 GB required (including padding), 620.77 GB available
    Copied Zero KB of 11.88 GB, 0 of 145601 items
    Copied 0 files (Zero KB) from volume Macintosh HD.
    Copy stage failed with error:11
    Backup failed with error: 11
    Ejected Time Machine disk image: /Volumes/Tery Griffin's Time Capsule/Tery Griffin’s Computer (44).sparsebundle
    Ejected Time Machine network volume.
    Starting automatic backup
    Attempting to mount network destination URL: afp://Tery%20Griffin;[email protected]/Tery%20Griffin's%20Time%20Ca psule
    Mounted network destination at mount point: /Volumes/Tery Griffin's Time Capsule using URL: afp://Tery%20Griffin;[email protected]/Tery%20Griffin's%20Time%20Ca psule
    Disk image /Volumes/Tery Griffin's Time Capsule/Tery Griffin’s Computer (44).sparsebundle mounted at: /Volumes/Time Machine Backups
    Backing up to: /Volumes/Time Machine Backups/Backups.backupdb
    Event store UUIDs don't match for volume: Macintosh HD
    Error: (-36) Applying backup protections to /Volumes/Time Machine Backups/Backups.backupdb/Tery Griffin’s Computer (44)/2014-03-05-201742.inProgress/9F8E7957-9C50-49C3-8314-880E5203E3D9
    Error: (5) setxattr for key:com.apple.backupd.SnapshotStartDate path:/Volumes/Time Machine Backups/
    Does anyone know what the problem is here and what I should do?
    Thanks,
    Tery

    You have repaired your boot drive (which is good) but have you repaired your time machine drive?  I don't own a Time Capsule so I don't know if disk utility can operate on it.  If it can, you should repair it as well.  You may need to erase it and start a new backup.  That happens to time machine volumes from time to time and is why people who are serious about their data never rely on a single source of backup.

  • Time Machine will not complete a system backup and terminates with "Unable to complete backup. An error occurred while copying files to the backup volume.  This follows a problem when Time machne terminated when the volume was almost full.

    On 11/1/2011, Time Machine (TM) terminated with an error message I did not record.  I noted that the drive was full and decided to do a separate complete bootable  system backup using Carbon Copy Clone (CCC), before clearing the TM volume and trying to start it over clean.  Part way through the full system backup CCC put up a message that there was a Physical Problem  "Library/Application Support/Techtool Protection/McIntosh HD/Directory Backup 2011-11-01-16-28-16".  That was about the time that TM malfunctioned, so I assumed they were related.  After starting CCC over a couple of times, and getting the same error message, I let it go through to completion of the backup, which took three or four hours.  I then ran tests using Disk Utility and verified that there was nothing physically wrong with both the internal hard drive and the TM volume.  I also erased and reformatted the TM volume.  However, every time I started Time Machine, it would record a few GB and terminate with "Unable to complete backup. An error occurred while copying files to the backup volume".  I restarted the computer with no change in results.  Note that prior to starting the CCC backup, I "Repaired Permissions", "zapped the PRAM" and "re-set the SMC", hoping to have a clean bootable system on the backup.  I ran Techtool and no problems were found.
    I'm running this on an Intel iMac under 10.5.8 and recording to a 500GB My Passport drive.  My hard drive is only about half full at 246 GB.  My assessment is that something happened at 16-28-16 on 11/1/2001 to screwup the Backup Directory in the file at "Library/Application Support/Techtool Protection/McIntosh HD/Directory Backup 2011-11-01-16-28-16". My question is, how do I fix it?
    I had just completed writing everything above here, explaining the problems I had been encountering for the past 24 hours.  I had the Time Machine window standing open on the desktop where I could see it, having recentlycleared it after the last termination.  As I was proofing what I had written, I looked at the window and noted that the clock had started a new run for a full back up, since all prior efforts had failed and the TM volume was empty.  As I watched and waited for it to fail again, as it had been doing at about 13 GB, it kept going and going until it just finished a complete backup, about 4.5 hours later, with my having done nothing.  Now my question would have to be - what could possiibly have happened to make it perform this way?   It will be interesting to see if it continue to operate normally, or if the problem will return, in a later backup run.

    jcm21 wrote:
    CCC put up a message that there was a Physical Problem  "Library/Application Support/Techtool Protection/McIntosh HD/Directory Backup 2011-11-01-16-28-16"
    You should not keep those files for long, and probably shouldn't back them up (if you need them at all -- since you do regular backups, I'm doubtful just how worthwhile that feature is).
    "Unable to complete backup. An error occurred while copying files to the backup volume".
    One of Apple's maddeningly incomplete messages. Most likely, there's a problem with a file (quite possibly the one CCC didn't like).  See #C3 in Time Machine - Troubleshooting for details and instructions on finding and fixing it.
    If you continue running the Directory Protection app, be sure to exclude your Time Machine drive from it (as it will just take up lots of room, and won't help repair your backups if there's a problem);  and exclude the folders it creates from being backed-up by Time Machine (as they'll create large backups, and you probably can't use the backed-up folders anyway), per #10 in Time Machine - Frequently Asked Questions.

  • Using robocopy to copy files from a network share over a WinRS command line session

    Hello,
    Preface: Using server 2008 enterprise.
    I can't seem to get robocopy to function over WinRS and I'm not sure where the problem actually lies.  Running robocopy locally on the computer does work fine, but as soon as I try to run it through a remote command prompt through the WinRS client or directly with the WinRS client I get an access denied message (error 5).
    I've tried using runas while logged into the remote command prompt as well, thinking that it could have been some sort of permissions inheritence issue.
    I've checked the permissions on the remote file share, I've even given 'Everyone', 'Anonymous Logon' and the computer's active directory account full control over the folder and the file I'm trying to copy, but still get the access denied error.
    I've tried using /COPY:DT since I read that usually resolved error 5 issues.
    None of these things have worked.
    I'm kind of out of ideas, I've read some blogs of people who have written powershell scripts which use winrm/robocopy so I figure I'm missing something stupid.  Or maybe I've stumbled upon a bug?
    C:\>robocopy \\192.168.100.1\share c:\test example.exe
       ROBOCOPY     ::     Robust File Copy for Windows
      Started : Mon Feb 09 17:35:32 2009
    2009/02/09 17:35:32 ERROR 5 (0x00000005) Getting File System Type of Source \\192.168.100.1\share\
    Access is denied.
       Source - \\192.168.100.1\share\
         Dest : c:\test\
        Files : example.exe
      Options : /COPY:DAT /R:1000000 /W:30
    2009/02/09 17:35:32 ERROR 5 (0x00000005) Accessing Source Directory \\192.168.100.1\share\
    Access is denied.

    Yep, I verified permissions on them all :(
    To maybe complicate the issue, I looked at the environment variables for myself while logged in locally to the computer and through WinRS and they look to be the same.   
    EDIT: Out of pure frustration I wrote a quick console application which impersonates the currently logged in user and copies a file from the network share I'm trying to access to the local computer.  The application properly impersonates the user - but does not copy the files while it's run through WinRM.  When you run the application as a locally logged in user it works just fine.
    WinRM must be behaving goofy :(
     This is the output of the following application:
    C:\Windows\System32>test.exe 
    Name: domain\loggedinuser 
    IsAuthenticated: True 
    User: {GUID} 
    AuthenticationType: Kerberos 
    Destination directory doesn't exist, creating new directory.. 
    Undoing impersonation.. 
    No exceptions, no nothing :(
    Imports System.IO 
    Imports System.IO.File 
    Module Module1 
       Dim impersonationContext As System.Security.Principal.WindowsImpersonationContext 
       Dim currentWindowsIdentity As System.Security.Principal.WindowsIdentity 
       Dim cpr As New copyProgress(AddressOf FileCopyProgress) 
       Dim destinationDir As DirectoryInfo = New DirectoryInfo("c:\destination\") 
       Private Delegate Function copyProgress(ByVal totalFileSize As Int64, ByVal totalBytesTransferred As Int64, ByVal streamSize As Int64, ByVal streamBytesTransferred As Int64, ByVal dwStreamNumber As Int32, ByVal dwCallbackReason As Int32, ByVal hSourceFile As Int32, ByVal hDestinationFile As Int32, ByVal lpData As Int32) As Int32 
       Private Declare Auto Function CopyFile Lib "kernel32.dll" (ByVal lpExistingFileName As String, ByVal lpNewFileName As String, ByVal lpProgressRoutine As copyProgress, ByVal lpData As Int32, ByVal lpBool As Int32, ByVal dwCopyFlags As Int32) As Int32 
       Private Function FileCopyProgress(ByVal totalFileSize As Int64, ByVal totalBytesTransferred As Int64, ByVal streamSize As Int64, ByVal streamBytesTransferred As Int64, ByVal dwStreamNumber As Int32, ByVal dwCallbackReason As Int32, ByVal hSourceFile As Int32, ByVal hDestinationFile As Int32, ByVal lpData As Int32) As Int32 
       End Function 
       Private Function FileCopyProgress2(ByVal totalFileSize As Int64, ByVal totalBytesTransferred As Int64, ByVal streamSize As Int64, ByVal streamBytesTransferred As Int64, ByVal dwStreamNumber As Int32, ByVal dwCallbackReason As Int32, ByVal hSourceFile As Int32, ByVal hDestinationFile As Int32, ByVal lpData As Int32) As Int32 
       End Function 
       Sub Main() 
          Try 
             currentWindowsIdentity = CType(System.Security.Principal.WindowsIdentity.GetCurrent, System.Security.Principal.WindowsIdentity) 
             impersonationContext = currentWindowsIdentity.Impersonate() 
             Console.WriteLine("Name: " & currentWindowsIdentity.Name) 
             Console.WriteLine("IsAuthenticated: " & currentWindowsIdentity.IsAuthenticated) 
             Console.WriteLine("User: " & currentWindowsIdentity.User.ToString) 
             Console.WriteLine("AuthenticationType: " & currentWindowsIdentity.AuthenticationType) 
             If Not destinationDir.Exists Then 
                Console.WriteLine("Destination directory doesn't exist, creating new directory..") 
                destinationDir.Create() 
             End If 
             CopyFile(Path.Combine("\\192.168.100.1\share\", "example.exe"), Path.Combine("c:\destination\", "example.exe"), cpr, 0, 0, 0) 
          Catch ex As Exception 
             Console.WriteLine(ex.ToString) 
          Finally 
             Console.WriteLine("Undoing impersonation..") 
             impersonationContext.Undo() 
          End Try 
          Console.ReadKey() 
       End Sub 
    End Module 

  • Time Machine reporting "The backup was not performed because an error occurred while copying files to the backup disk". Anyone have any idea what's gone wrong?

    After months of working OK Time Machine is reporting "The backup was not performed because an error occurred while copying files to the backup disk". Anyone have any idea what's gone wrong?

    asknrobson wrote:
    Wierd!
    I followed #C3 and loaded Time Machine Buddy, which was defnitely helpful, then deleted the file that the backup failed at, but after 3 more attempts I stopped deleting or excluding files as this wasn't improving the situation.
    The recommendation is to exclude those files from being backed-up, not to delete them!
    Updating boot support partitions for the volume as required:
    Yes, that's a bit misleading.  It just means that will be done, if it's required, which it isn't on your backups.
    I have no idea if anything actually was changed however just when I had given up and walked away, TM has started working after a week of failing.
    It probably did find and fix something.  Just for reference, Disk Utiltiy usually shows the progress and repair messages in the center part of the window, but often doesn't when repairing a sparse bundle on a network.  You can see the messages at any time by clicking the Log icon in the toolbar, or select Window > Show Log from the menubar.
    Anyway, glad it's sorted out!

  • Unable to complete backup. An error occurred while copying files to the...

    Add me to the list of those with TIme Machine backup failures.
    I am repeatedly getting the following error message:
    "Unable to complete backup. An error occurred while copying files to the backup volume."
    I do have work-around.
    1. Open Time Machine Preferences... (from the Time Machine menu in the menu bar)
    2. Change Disk...
    3. Re-select the disk you are already using and select "Use for Backup"
    4. Back Up Now (from the Time Machine menu in the menu bar)
    The error eventually comes back, but following the above procedure keeps it at bay for a few days.
    I have only had these errors since 10.5.3.

    Mle,
    Take a look at the following...
    *_“Unable to Complete Backup. An Error Occurred While Copying Files to the Backup Volume.” (Console: “Error: (-43) copying”, “Copy stage failed with error:11”)_*
    There are several reasons why this error message can appear. Consider each topic individually. If one does not resolve the issue, move on to the next one. The following topics have resolved this issue for others.
    *If A Backup Is Interrupted* #
    “If an interruption occurs, Time Machine will wait for a period of time to see if the Time Capsule becomes available again. After this time expires you will see a alert message stating "Time Machine Error. Unable to complete backup. An error occurred while copying files to the backup volume." In Time Machine preferences, the "Latest Backup:" field will state "Failed".” [http://support.apple.com/kb/HT1176]
    You will need to reestablish communication with the Time Machine backup disk.
    *Anti-Virus Software* #
    Have you been running anti-virus software? xClav, Norton, Sophos, Macaffe etc... According to many posters in the forums this software can play havoc with Time Machines attempt to function properly.
    *Firewire Devise Interferes with Time Machine Backups* #
    If you are backing up to an external hard disk by means of firewire, do you happen to have another firewire device attached as well? An iSight camera or video recorder maybe? Sometimes additional firewire devises can interfere with the signal/power to the backup drive. Unplug it and attempt a backing up again.
    *Corrupt File / Incorrect Permissions* #
    One poster observed: “I searched my system logs and found a file that caused my connection to the TC to fail. I erased that file (after checking what it was - a temporary file connected to my Epson scanner) and tried again to back up for the first time. This time it worked, and in under 10 hours (I had been expecting about 20-24 hours, based on the data transfer speed).”
    Initially this might be resolved without deleting the offending file. Simply use Disk Utility to “Repair Disk Permissions”. Or failing that, booting from the Mac OS X Installation DVD and running “Repair Disk” on the Mac’s internal hard disk. Now try backing up
    Otherwise, you may need to track down the specific file causing Time Machine to choke.
    Before attempting another backup, go into Applications --> Utilities --> and launch Console.
    Under “LOG FILES” on the left select "system.log".
    In the search field in the upper right, type in backupd. This is the process Time Machine uses to perform backups. By searching just for this process we'll isolate only Time Machine activities.
    With the Console open, attempt another backup and note the time it starts and the time it stops. Often, the activities reported will identify the very file or event that caused the attempt to choke. (You can copy and paste the events for this backup attempt from the log into a post here and we may be able to tell you exactly what is happening.)
    Once you determine which file or event it is, you can decide whether to move, delete, or modify certain things and then attempt another backup. For Instance, if the logs report something like this:
    +Error: (-43) copying /Users/Home/Library/Application Support/Quicksilver/Actions.plist to+
    +/Volumes/Backup HD/Backups.backupdb/My Mac Pro//Users/Home/Library/Application+
    Support/Quicksilver
    Then it’s telling you Time Machine is choking on the file labeled Actions.plist and it’s having trouble copying to the backup disk.
    On your computer, Navigate to that file ( Actions.plist ) and move it to the Trash, but DON’T empty it yet. Now try backing up again. If it succeeds, you can launch Time Machine and go back 24-48 hours and restore a copy of Actions.plist and replace it. Then empty trash.
    *Partition Scheme/Formatting Issue*
    This KB article explains one reason you may be seeing that error message [http://support.apple.com/kb/TS1550]. It's a partition scheme issue. Time Machine is incompatible with disks partitioned as Master Boot Record (MBR). Unfortunately, this describes nearly every hard drive you can buy because MBR is a Windows partition scheme. You will likely need to repartition the drive and start again. (Naturally, this DOES NOT apply to Apples’ Time Capsule.)
    One article on Time Machine made this observation: “Virtually everybody will have to open Disk Utility and repartition the disk as APM or GUID. It doesn't really matter which one because the Time Machine disk will not be bootable anyway. APM allows a disk to boot a PowerPC, GUID allows the disk to boot an Intel processor but both are easily digestible by Time Machine on either kind of processor.” (http://www.girr.org/mac_stuff/backups.html)
    Once the external hard disk is repartitioned, select it again in Time Machine preferences and use it for your backups.
    Let us know if any of the suggestions above resolved your issue.
    Cheers!

Maybe you are looking for

  • How to restrict users' event on a column report

    Hello All, I wrote a classical report with hotspot on one field. I used a parameter ID to skip the transaction screen to avoid an extra click for users. My question is restricting an event to the 'only' column where the hotspot is defined. I found ou

  • Need help with XML TRANSFORMATION dump

    HI Experts , I want to parse this XML file to abap internal table ,i use the ST below and i get  dump . The file is like that : <Containers>      <Container workitemid="0000001" IsParent="X">           <Element name="__INITIATO" value="U295"/>       

  • RMAN-10006: error running SQL statement: alter session set remote_dependenc

    Backups are failing with following error RMAN-00554: initialization of internal recovery manager package failed RMAN-12001: could not open channel default RMAN-10008: could not create channel context RMAN-10002: ORACLE error: ORA-00096: invalid value

  • Youtube, Photo Stream not working, also watching a movie from apple or netflix  fault.

    Can anyone help, since I updated the latest software on my Apple TV, my youtube no longer works, it says unavailable, and i cant log in, it says I can log in with this account. also everytime i watch a movie on netflix or from apple, it freez or rest

  • Create default user settings like WIndows XP

    When I configure a Windows machine I can make the desktop and all application settings I want. I then copy the profile to the DEFAULT USER account. Now when any user is created on that machine it takes on all the same settings as the default account.