Find the answer to your Linux question:
Results 1 to 2 of 2
I have a SLES10 SP1 server with 1TB of data which is served to Windows and Mac clients via Samba. In order to move the data to a new disk ...
  1. #1
    Just Joined!
    Join Date
    Oct 2007
    Posts
    7

    Copying files with ACLs in SUSE Linux Enterprise 10

    I have a SLES10 SP1 server with 1TB of data which is served to Windows and Mac clients via Samba. In order to move the data to a new disk array, I tried to copy all the directory structure to the new filesystem. I used the cp -r command to copy all the data, and then mounted the new filesystem in the place under root where Samba is looking.

    Only when my users could no longer access their data did I realise that the cp command strips the Access Control List (ACL) data from the files. Having made trials with different cp options and also using Gnome's Nautilus, I've found that everything I try strips away the ACLs from the files.

    Can anyone tell me how to copy files from the server? I tried using an XP workstation, but it's too slow. Any ideas?

    Many thanks in advance,
    Amy

  2. #2
    Linux Guru gogalthorp's Avatar
    Join Date
    Oct 2006
    Location
    West (by God) Virginia
    Posts
    3,105
    Try using the =a parameter (archive)

    See man -A cp for more info

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...