Copying Files to protected User Shares

Hi,
What is the easiest way to copy files to user home directories. I just rebuilt a server after a crash and have user home directories on another computer. I want to be able to give them back their files but keep the permission structure in tact.
Any ideas?
Thanks.

Set the preference how you want it on the client then copy the related preference or .plist file to the desktop. Connect to your open directory server using WGM and add this preference in as a managed preference.

Similar Messages

  • How do you copy files from one user to another

    How do you copy files from one user to another user on the same machine?

    open your home folder in finder move file to public, log into other account, click the go tab on the finder menu, select computer, your hard drive (Macintosh HD Default)>Users, the origonal user> public and drag that file to your specified folder.
    hope it works
    Craig.

  • 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 

  • Can't copy files to a network share but can copy folders...

    I frequently use a network share at work. I can view files off of it fine. I can erase files off it. I can copy folders to it.
    However, any time I copy any single file I get the following error.
    "The operation can’t be completed because you don’t have permission to access some of the items."
    This occurs for every file I've tried. From txt files to jpgs to docs. Everything gives that error and fails. I'm at a loss and it's totally killing my productivity.
    It's a linux based share and all permissions on that box are correct. My account can easily copy files from other machines. Also, the fact that files and modifications work on this computer seems to prove that as well. I think it's pretty apparent that the cause of this error is on my laptops end.
    I've verified my disk permissions. I have no clue what could be causing this.

    Look at this thread for discussion of this issue.
    http://discussions.apple.com/thread.jspa?threadID=2382501
    Search is your friend.

  • Problems copying files from another user that originated from Time Machine

    I bought my wife a new MacBook Pro to replace a 6 or 7 year old iMac, and in the course of setting it up tonight, we've run into a little snag.
    She didn't need or want the vast majority of the stuff on the old drive. So I reinstalled the applications she wanted, and copied a few of her documents. MOST of what she wanted was the iTunes and iPhoto databases.
    I attempted to copy these over via the time machine drive that used to be plugged into the iMac. I was told there are insufficient permissions to do so. No problem. I used Migration Assistant to copy from the external drive, and selected just the items that we wanted copied -- Music and Photos.
    This worked great, except it copied over a new user account that matched the old one (she's using a different/married name now, so the user accounts didn't match up). In and of itself, I couldn't care less if it creates another user as I figured I could always go in, copy what I need from the restored user folder to the new user, and then delete the user account we don't need.
    Unfortunately, that's where I've hit the final snaffu. All the files I need are in a user account for "Heather A" (restored from the Time Machine drive via Migration Assistant). I need to copy those files (Music, Photos in particular) to the user account "Heather T" (the new account we setup when we first booted up the new MBP). However, in Finder, there's a little red circle with a line through it over the icon for those folders within "Heather A", and attempting to even open them (much less copy anything), generates the error "The folder 'Music' can't be opened because you don't have permission to see its contents."
    How do I get around this and/or change the permissions?
    I should note that both the "Heather A" and "Heather T" accounts are administrator accounts, so I'm at a loss as to why this is happening and how to fix it.
    Any help would be greatly appreciated.
    Dan

    Sssuming there still in the transferred account, delete the files you copied over to the new account. Log into the old account, drop all those files and iTunes into her new accounts /Public/Drop Box/, log into the new account, and drag to where you want them. That should resolve the permissions issues.

  • Problems copying files to a SMB share.

    Hello,
    Having some odd issues since moving to 10.6. It appears to be a combination of two problems.
    We are in a PC based Active Directory environment. The Mac is bound to the AD and has a Mobile account configured. The problem is with copying files to the network Home folder.
    On attempting to copy a file to the network drive I received a "The operation can't be completed because you don't have permission to access some of the items" error. This only seems to effect some files. I checked the permissions on both the file I was attempting to copy and the destination folder. I had full read/write access to both.
    I attempted to copy the file with the terminal and got an error that I was unable to copy the extended file attributes of the file as I did not have permission.
    Using the xattr command I could see that the file had the com.apple.TextEncoding attribute. I used the xattr -d command to delete the attribute and I was then able to copy the file with the Finder. Another file I tested that I could not copy had the com.apple.FinderInfo attribute. Deleting this attribute also allowed me to copy the file.
    It seems that any file with extended file attributes in 10.6 cannot be copied to our SMB shares. I have tested this on all of our 10.6 Macs with exactly the same result. 10.5 has not had the same problem.
    Now for the second problem. After copying the file as part of the testing I attempted to copy the same file over and replace the existing file and got the error "The Finder can't complete the operation because some data in "" can't be read or written (Error code -36)". I attempted to this a number of times and found that approx 50% of the time it does copy with no error. Checking the Console gives me the following message for the times it does give an error :
    27/10/09 4:03:27 PM /System/Library/CoreServices/Finder.app/Contents/MacOS/Finder[153] Allocator race detected: transaction is not verified for -101/2 - test7.txt
    Any light that can be shone on this issue would be great. This means for us that OS X 10.6 is fundamentally broken and can't be installed on any machines.
    -Justin

    Just posted on the Entourage Help Blog: Workaround for saving Office 2008 files to SMB servers in Snow Leopard
    http://blog.entourage.mvps.org/2009/12/workaroundfor_saving_office_2008_files_to_smb_servers_insn.html
    According to Craig, a poster on the microsoft.public.mac.office newsgroup:
    Changing the owner of the share to NETWORK SERVICE will solve the problem. I have tested this on a test share I set up during troubleshooting and it works! I have told my MS support rep about the workaround and she was going to spread it around. She mentioned that Apple appears to have a fix in the works but not to expect it to be released until February!

  • How to copy files from one user to another on same macbook pro

    I used the migration assistant to move files from an old windows pc to my new macbook pro.  It created a second user and put everything there.  I now can't figure out how to move them so they are under me.

    Welcome to Apple Support Communities
    The easiest way is to put your files in /Users/Shared. To access to this folder, open a Finder window, select the Go menu (on the menu bar) > Go to Folder, and type that directory.
    That folder can be read by all users, so you won't have any problem to copy your files to the other user account.
    Another option would be to copy your files to an external drive. Also, see > https://discussions.apple.com/docs/DOC-5472

  • Copy files to new user account

    Hi,
    When I first installed OS Mavericks, my macbook got super slow. Mail and actualy everything with a connection to iCloud froze my computer. After some searching I found that creating a new account was the sollution. Since I have created a new user account everything goes ok again. I just can't get my files from my old account to my new one. Every time there comes a forbinen sign on the folder.
    I tried to copy them via my Root user, and via the shared folder in the User folder, but nothing helps.. It's probbebly very easy, but i can't find it.
    Any help?
    Regards,
    Maarten

    Have you tried using the shared folder under Users on the main hard drive where Applications, Library, and Systems are?

  • How to copy files using single user option command??

    i want to copy all fonts in library/fonts to the original fonts folder in system/library/fonts becouse i cut all fonts in the original folder to font folder under library and the mac doesn't work,but still i can access the system from single user options, and i need to know the command to copy the fonts

    Files can be moved with mv or copied using cp or ditto. Use commands such as 'man mv' for usage instructions, or check Apple's developer documentation.
    (54261)

  • Copying files from another user

    I migrated my files successfully, but not into to my user.  I need these files on my main user and I have no idea how to do this. 

    Have a read here:
    http://pondini.org/OSX/MigrationProblems.html
    http://pondini.org/OSX/Transfer.html
    Might be better/best to start the thing all over and using the Setup Assistant instead of the MIgration Assistant this time:
    Using Setup Assistant on Lion
    Stefan

  • Updated my server to OS X Mountain Lion - and now I can't open pdf files, that my users share on wiki.

    Hi!
    I've updated my mac mini lion server to mountain lion server. I have an exentsive use of wiki in my education environment. Everything looks great, except, when uploading an PDF file to the wiki document folder I can no longer download the file - I can preview the file on the wiki page, but I can no longer download the file to my iPad / iBook.
    Come on Apple - you did not remove that feature!!!!
    Oh - the same problem comes to pages documents etc.
    What to do - my students starts monday - do I need to role-back my server?
    Kind regards,
    Martin Rise Christensen

    The problem is not in the Wiki itself but in the frontend version that gets displayed when you browse it from an ipad.
    The webpage looks different on the ipad because of that. If you use another browser on the ipad and you get the "default" frontend you can upload just fine.
    You can also disable this ipad version alltogether but you have to go in modify the code to do it. This will display the "default" frontend for every device.

  • Access Denied Errors Copying Files to Network Share

    We recently upgraded to Coldfusion MX 7 (7.02 Windows) and
    Windows 2003 Server. Now I am getting access-denied errors when
    attempting to copy files to a network share (not a mapped drive -
    \\server\share) using <cffile action="copy">. All other file
    copy operations work fine. This has been working fine for several
    months but broke when we upgraded to MX 7 and Windows 2003. Any
    suggestions for a solution would be apprectiated.

    I figured out what the problem is in case anyone else is
    interested. The Coldfusion Application Server service is by default
    set to run as local only. You need to set this service to run under
    a user that has access to network resources and rights to the
    destination path.

  • Can not copy files to network share

    Hi everyone.
    We have a Windows Server 2003r2 64-bit. There are a few network share on this server and folders with user profiles (we use roaming profile in our infrastructure).
    A few days ago some users lost possibility to copy files on any network share on this server. Windows says "Not enough space on the disk", but free space on server is about 12% (100gb). If copy files to other server, everything is OK.
    Log on user to another PC didn't help.
    If join user to group "Local admin" on server - files copying succesfully.
    Creating new folder with FC permissions for this user didn't help.
    FSRM role isn't installed, no quotas.
    Anyone ancountered whith similar situation?

    Hi,
    It seems that you configure disk quota on users to limit the disk space usage.
    Configuring Disk Quotas on NTFS Volumes
    http://technet.microsoft.com/en-us/library/cc758877(v=ws.10).aspx
    If you configure disk quota on users, users cannot save data on the disk when the users exceed their quota limit. By default, quota limits are not applied to the Administrators local group. Thus, the uses joined to the "Local admin" group don’t have
    the issue.
    Managing Disk Quotas
    http://technet.microsoft.com/en-us/library/dd277427.aspx
    Best Regards,
    Mandy 
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Two computers and two users with the same name. Can't copy files anymore...

    Hi all, after a user migration to my new iMac I had to make a change of the shortname. I knew it was not a good idea but had no choice otherwise I had to wait other 3 hours to migrate data again...
    Anyway, I managed to change my shortname with success, but one strange thing happened afterwards... I have two macs networked, both have an admin user with the same shortname/real name, 'gillo' (I followed the procedure in one of these two, the Intel iMac. The other, a Powerbook, was not modified).
    While previously I had no problems in copying files from the user 'gillo' on the Powerbook TO the user 'gillo' on the iMac, after the shortname change I'm not anymore able to do it. The error I get is:
    "The operation cannot be completed because you do not have sufficient privileges for some of the items"
    Doesn't matter where I put the files, Desktop, Documents, even the Drop Box, I always get the same error.
    I went through some checks and this is the 'log':
    - The files/folders in the iMac 'gillo' directory are not locked.
    - The files can be copied without troubles to the dirs of another admin user
    - Permissions are the same as the other admin user and owner/group are the correct ones.
    - Both Macs have 10.4.6
    - The 'gillo' user on the iMac can copy files FROM the user 'gillo' on the Powerbook.
    - I repaired permissions and the hard disk booting from the install DVD.
    - I tried to change permissions of the directories (such as Desktop) on the iMac 'gillo' user allowing everybody to read/write. Also a no go.
    Anybody went through this already? Or maybe something similar not directly related to the short name change?

    Actually, everyone missed one point, when a device is priced, the cost of icloud storage space for that device is also included in it that is why they are able to give you 5gb each for each user ID, in nutshell there is nothing free coming with apple device purchase, it is paid for.  What they are trying by giving only 5gb per user ID irrespective of the number of devices used is pure broadlight looting, they take money from you when you buy each device and give you nothing, This is a case of goods and services bought but not fully deliverd ie apple can be suied for discreminatory treatment towards it's users. I wonder why no one tried this yet in America where everyone sue everyone for petty things..... there is no one to take up this issue? . if tim got any love for the guys who shell out money for the devices his company makes, he should be implimenting this as priority before someone wake up from sleep and sue him.

  • Windows 8.1 Network Share 0x8007003b Error Copying Files

    Hi All,
    I'm having an issue when copying files from a Windows network share. If the file is above 5MB it will start copying and then after a minute or two I will get an error such as:
    Interrupted Action
    An unexpected error is keeping you from copying the file. If you continue to receive this error, you can use the error code to search for help with this problem.
    Error 0x8007003B: An unexpected network error occurred.
    The network share is in a different office and is accessible over a point-to-point VPN, so the connection is not that fast. 
    But before everyone tells me to start diagnosing the router and or VPN please take note of the following:
    My colleague who is running Windows 7 can copy files from the network share fine
    If I run a Windows 7 VM on my Windows 8.1 laptop I can copy the files across fine
    I also know it isn't an issue with this particular file share. I set up a little lab, where I had one VM which had a shared folder and 2 other client VMs one running Windows 7 and one running Windows 8.1. I limited the bandwidth to the two client
    VMs to a similar speed we see across our VPN. The result was that the Windows 8.1 failed with the same error above, whereas the Windows 7 copied fine.
    There is also a noticeable difference visually when copying using Windows 8.1 and Windows 7:
    Windows 7 - The progress bar progresses smoothly giving the current speed and estimated time remaining
    Windows 8.1 - The progress bar progresses in a jumpy fashion. E.g. it shows no progress, then after a minute it jumps and shows 16% progress, then shows no further progress, then jumps by another 18%. There is no estimated time remaining.
    I ran Wireshark to investigate what was going on at the network layer. I see the following behaviour:
    Windows 8.1 - The file is copying fine then all of a sudden there are a lot of TCP dupack packets. After which the Windows 8.1 client sends a RST packet and then the error pops up.
    Windows 7 - The file is copying fine then you also see a load of TCP dupack packets, however no error is displayed and it continues copying fine.
    I'd appreciate any help with this I'm hoping there are some settings I can change to make Windows 8.1 behave more like Windows 7!
    FYI originally posed here (but was advised to ask on Technet) - https://answers.microsoft.com/en-us/windows/forum/windows8_1-files/windows-81-network-share-0x8007003b-error-copying/300bc9a4-597b-402a-b885-9dd6f6fb51a2
    Thanks,
    Zak

    Hi MeipoXu,
    Sorry, it has taken me so long to reply. I thought I had subscribed to receive updates on this thread, but I didn't see anything!
    I've ran the commands you gave but some of them did not work, I got the following error: 
    Set global command failed on IPv4 The parameter is incorrect.
    However, output of current settings are below.
    TCP Global Parameters
    Receive-Side Scaling State          : disabled
    Chimney Offload State               : disabled
    NetDMA State                        : disabled
    Direct Cache Access (DCA)           : disabled
    Receive Window Auto-Tuning Level    : normal
    Add-On Congestion Control Provider  : none
    ECN Capability                      : disabled
    RFC 1323 Timestamps                 : disabled
    Initial RTO                         : 3000
    Receive Segment Coalescing State    : disabled
    Non Sack Rtt Resiliency             : disabled
    Max SYN Retransmissions             : 2
    To answer your original questions.
    Do you mean the file below 5 MB will copy fine ?
    5MB is not a hard limit. If the file is small enough it will copy before it errors out. A file of around 5MB or so fails with an error.
    Have you tried to copy the files from another Windows 8.1 machine (This will help us to verify whether the issue is casued by the specific machine)?Have you tried to copy another file from the network share to have a check ?
    Yes I've tried from another Windows 8.1 machine and have the same behaviour. It is the same with different files from the network share. And the same with different network shares.
    I am seeing nothing in the event viewer when the error occurs. I do not believe this to be a VPN issue because I can recreate this situation perfectly. As I mentioned in the original post- I
    also know it isn't an issue with this particular file share. I set up a little lab, where I had one VM which had a shared folder and 2 other client VMs one running Windows 7 and one running Windows 8.1. I limited the bandwidth to the two client VMs to a similar
    speed we see across our VPN. The result was that the Windows 8.1 failed with the same error above, whereas the Windows 7 copied fine.
    Basically, I had virtual machines all on the same local network. One virtual machine was hosting a file share with files on it. I created one Windows 7 VM and one Windows 8.1 VM. Using VMWare Workstation you can limit the network bandwidth to the VMs. When
    I did not limit the network bandwidth I could copy all files of all sizes fine. However, when I limit the network bandwidth to a speed of around 30-50KBps, the Windows 8.1 VM fails to copy files with the same error. But Windows 7 VM copies the files fine.
    The point of limiting the bandwidth in this way is to create a similar scenario to that I see when connecting over the VPN.
    This all leads me to believe there is some sort of issue with copying files from fileshares over slow connections using Windows 8.1.
    Cheers,
    Zak

Maybe you are looking for