ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Mac OS X Writing to NTFS

    Scheduled Pinned Locked Moved Unsolved IT Discussion
    mac osxsmbntfsrobocopy
    29 Posts 5 Posters 5.0k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • DustinB3403D
      DustinB3403
      last edited by

      Are you dealing with ransomware?

      My initial thought was going to be file path length issues, but that doesn't appear to be long enough.

      Where is robocopy being run from, and what did you name the script. Naming the script "robocopy-server1.bat" (for example) actually effects robocopy.

      1 Reply Last reply Reply Quote 0
      • Mike DavisM
        Mike Davis
        last edited by

        no randsomware. From what I read and what I can see, the files were from a zip file that was extracted by a Mac. Most of the files are somewhere else in the folder tree.

        I put the robocopy in a .bat file called "copyPublicFiles.bat" being run from the root of the drive.

        scottalanmillerS 1 Reply Last reply Reply Quote 0
        • Mike DavisM
          Mike Davis
          last edited by

          It doesn't appear to be a robocopy issue since I can't access the files through Windows. I can rename them, but not open or copy them.

          1 Reply Last reply Reply Quote 0
          • ObsolesceO
            Obsolesce
            last edited by

            @Mike-Davis said in MAC OS X writing to NTFS:

            files were from a zip file that was

            Who is the owner of the file?

            If it is encrypted, you'll need to decrypt it.

            1 Reply Last reply Reply Quote 1
            • scottalanmillerS
              scottalanmiller
              last edited by

              Robocopy should be able to copy an encrypted file without knowing the difference.

              1 Reply Last reply Reply Quote 1
              • DustinB3403D
                DustinB3403
                last edited by

                @Mike-Davis are you running the script from the server were the files reside, or a remote system?

                1 Reply Last reply Reply Quote 0
                • Mike DavisM
                  Mike Davis
                  last edited by

                  Owner of the file is the domain\administrators group and I can't take ownership.

                  I'm running the script on a remote system. This is the server where if I log in locally, it locks up. Once I have the bulk of the users files over and cut the shares over, I can probably reboot to safe mode and see if I have any more options there.
                  0_1492863694727_encryptedFile.png

                  1 Reply Last reply Reply Quote 0
                  • scottalanmillerS
                    scottalanmiller
                    last edited by

                    Does it lock up if you use PowerShell?

                    1 Reply Last reply Reply Quote 0
                    • DustinB3403D
                      DustinB3403
                      last edited by

                      Any reason you can't mount this drive into another working system to copy the files off?

                      1 Reply Last reply Reply Quote 0
                      • DustinB3403D
                        DustinB3403
                        last edited by

                        Doing a remote robocopy, while not "disallowed" isn't really the best approach in my experience.

                        I've always run robocopy from the source, not from the target (or on a intermediary server)

                        Mike DavisM 1 Reply Last reply Reply Quote 0
                        • Mike DavisM
                          Mike Davis
                          last edited by

                          @DustinB3403 said in MAC OS X writing to NTFS:

                          Any reason you can't mount this drive into another working system to copy the files off?

                          The old server is physical, so I would have to pull the RAID array...

                          DustinB3403D 1 Reply Last reply Reply Quote 0
                          • Mike DavisM
                            Mike Davis @DustinB3403
                            last edited by

                            @DustinB3403 said in MAC OS X writing to NTFS:

                            Doing a remote robocopy, while not "disallowed" isn't really the best approach in my experience.

                            I've always run robocopy from the source, not from the target (or on a intermediary server)

                            When I log in locally (or with remote desktop) the server locks up.

                            DustinB3403D scottalanmillerS 2 Replies Last reply Reply Quote 0
                            • DustinB3403D
                              DustinB3403 @Mike Davis
                              last edited by

                              @Mike-Davis said in MAC OS X writing to NTFS:

                              @DustinB3403 said in MAC OS X writing to NTFS:

                              Any reason you can't mount this drive into another working system to copy the files off?

                              The old server is physical, so I would have to pull the RAID array...

                              OK.. yep that sucks.

                              1 Reply Last reply Reply Quote 0
                              • DustinB3403D
                                DustinB3403 @Mike Davis
                                last edited by

                                @Mike-Davis said in MAC OS X writing to NTFS:

                                @DustinB3403 said in MAC OS X writing to NTFS:

                                Doing a remote robocopy, while not "disallowed" isn't really the best approach in my experience.

                                I've always run robocopy from the source, not from the target (or on a intermediary server)

                                When I log in locally (or with remote desktop) the server locks up.

                                Any chance that the robocopy job is just too intensive? Have you tried any other solutions like powershell?

                                1 Reply Last reply Reply Quote 0
                                • scottalanmillerS
                                  scottalanmiller @Mike Davis
                                  last edited by

                                  @Mike-Davis said in MAC OS X writing to NTFS:

                                  @DustinB3403 said in MAC OS X writing to NTFS:

                                  Doing a remote robocopy, while not "disallowed" isn't really the best approach in my experience.

                                  I've always run robocopy from the source, not from the target (or on a intermediary server)

                                  When I log in locally (or with remote desktop) the server locks up.

                                  That's not exactly a direct answer. When you log in remotely from PowerShell?

                                  Mike DavisM 1 Reply Last reply Reply Quote 0
                                  • Mike DavisM
                                    Mike Davis @scottalanmiller
                                    last edited by

                                    @scottalanmiller said in MAC OS X writing to NTFS:

                                    @Mike-Davis said in MAC OS X writing to NTFS:

                                    @DustinB3403 said in MAC OS X writing to NTFS:

                                    Doing a remote robocopy, while not "disallowed" isn't really the best approach in my experience.

                                    I've always run robocopy from the source, not from the target (or on a intermediary server)

                                    When I log in locally (or with remote desktop) the server locks up.

                                    That's not exactly a direct answer. When you log in remotely from PowerShell?

                                    using the copy-item powershell command returns

                                    Copy-Item : Access to the path '\\server1\public\Sales-Ads-Marketing2014\History2-17-14\duntonwriting\DuntonWriting
                                    .png' is denied.
                                    At line:1 char:10
                                    + Copy-Item <<<<  \\server1\public\Sales-Ads-Marketing2014\History2-17-14\duntonwriting\DuntonWriting.png c:
                                        + CategoryInfo          : PermissionDenied: (\\server1\publ...ntonWriting.png:FileInfo) [Copy-Item], Unauthorized
                                       AccessException
                                        + FullyQualifiedErrorId : CopyFileInfoItemUnauthorizedAccessError,Microsoft.PowerShell.Commands.CopyItemCommand
                                    

                                    Was there another powershell command I should try?

                                    1 Reply Last reply Reply Quote 0
                                    • scottalanmillerS
                                      scottalanmiller
                                      last edited by

                                      So Copy-Item fails from perms, can you change perms over PowerShell to get control of the file?

                                      Mike DavisM 1 Reply Last reply Reply Quote 0
                                      • Mike DavisM
                                        Mike Davis @scottalanmiller
                                        last edited by

                                        @scottalanmiller said in MAC OS X writing to NTFS:

                                        So Copy-Item fails from perms, can you change perms over PowerShell to get control of the file?

                                        Not sure how to do that. Everyone already has full control and I already have ownership, and you can't give ownership. Normally the command would be get-acl, add you permissions to the ones in the array, then set-acl. You can't add yours to the list when they are already there.

                                        scottalanmillerS 1 Reply Last reply Reply Quote 0
                                        • scottalanmillerS
                                          scottalanmiller @Mike Davis
                                          last edited by

                                          @Mike-Davis said in MAC OS X writing to NTFS:

                                          @scottalanmiller said in MAC OS X writing to NTFS:

                                          So Copy-Item fails from perms, can you change perms over PowerShell to get control of the file?

                                          Not sure how to do that. Everyone already has full control and I already have ownership, and you can't give ownership. Normally the command would be get-acl, add you permissions to the ones in the array, then set-acl. You can't add yours to the list when they are already there.

                                          Those are NTFS ACLs. Are you sure that you have permission to read/copy in SMB? Because you are accessing through the SMB filesystem here, not talking to NTFS directly. So check those perms as well.

                                          1 Reply Last reply Reply Quote 0
                                          • scottalanmillerS
                                            scottalanmiller @Mike Davis
                                            last edited by

                                            @Mike-Davis said in MAC OS X writing to NTFS:

                                            no randsomware.

                                            Is that related to handsomeware?

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post