+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 24
Mac Thread, Need to copy user areas and preserve permissions in Technical; Ive got a window of 2 days after we break up to move everyones mac user areas from one server ...
  1. #1

    Join Date
    Jul 2006
    Location
    London
    Posts
    2,962
    Thank Post
    159
    Thanked 152 Times in 116 Posts
    Rep Power
    48

    Need to copy user areas and preserve permissions

    Ive got a window of 2 days after we break up to move everyones mac user areas from one server to another. Should be easy, but every time I have tried, permissions are not preserved (they are from AD, but both servers are bound to it)

    Tried both the simple 'drag and drop' GUI way and also through terminal, but the result is the same. What do I need to do?

    I suppose one way would be to enable SMB on both shares and copy using a Windows machine, but that doesnt really seem like an ideal method

  2. #2


    Join Date
    Dec 2005
    Location
    In the server room, with the lead pipe.
    Posts
    4,534
    Thank Post
    271
    Thanked 752 Times in 590 Posts
    Rep Power
    218
    I assume using

    Code:
    cp -R  --preserve /source /destination
    doesn't give you what you need?
    Last edited by pete; 11th December 2009 at 12:42 PM.

  3. #3
    AIT
    AIT is offline
    AIT's Avatar
    Join Date
    Dec 2009
    Location
    Nottingham
    Posts
    369
    Thank Post
    46
    Thanked 32 Times in 30 Posts
    Rep Power
    18
    if you use the windows machine i would use the command xcopy that copys permissions aswell..

  4. #4

    Join Date
    Jul 2006
    Location
    London
    Posts
    2,962
    Thank Post
    159
    Thanked 152 Times in 116 Posts
    Rep Power
    48
    Quote Originally Posted by pete View Post
    I assume using

    Code:
    cp -R  --preserve /source /destination
    doesn't give you what you need?
    Ah, I didnt know about the 'preserve' bit no doubt that will work then

  5. #5

    Join Date
    Jul 2006
    Location
    London
    Posts
    2,962
    Thank Post
    159
    Thanked 152 Times in 116 Posts
    Rep Power
    48
    Nope that doesnt work. Well, with -P it doesnt work anyway. --preserve isnt recognised at all

  6. #6
    DMcCoy's Avatar
    Join Date
    Oct 2005
    Location
    Isle of Wight
    Posts
    3,386
    Thank Post
    10
    Thanked 483 Times in 423 Posts
    Rep Power
    110
    -p it's lowercase. I hope it's not 10.4 or earlier because cp doesn't copy ACLs with those

  7. #7


    Join Date
    Dec 2005
    Location
    In the server room, with the lead pipe.
    Posts
    4,534
    Thank Post
    271
    Thanked 752 Times in 590 Posts
    Rep Power
    218
    Quote Originally Posted by sidewinder View Post
    Nope that doesnt work. Well, with -P it doesnt work anyway. --preserve isnt recognised at all
    Ah, the option is present, just different flag under OS X (my example was for GNU cp). Use a lowercase "-p", see here: Mac OS X Manual Page For cp(1)

    try
    Code:
    cp -R -p /source /destination
    Your example ("-P") tells it to ignore symbolic links, lower case ("-p") preserves attributes.

    *nix - like a big friendly shire horse that'll happily trample over your feet if you tell it to.

    edit: DMcCoy beat me to it

  8. #8

    Join Date
    Jul 2006
    Location
    London
    Posts
    2,962
    Thank Post
    159
    Thanked 152 Times in 116 Posts
    Rep Power
    48
    Even with lowercase -p it still refuses to copy any permissions this is really odd

    This is the exact command I used:

    cp -R -p /volumes/homes/itteam/user /volumes/Data/homes/itteam

    homes being the mounted share of the old server. Did this as root

    Oh and its 10.5.8 I'm doing this on

  9. #9
    DMcCoy's Avatar
    Join Date
    Oct 2005
    Location
    Isle of Wight
    Posts
    3,386
    Thank Post
    10
    Thanked 483 Times in 423 Posts
    Rep Power
    110
    Are ACLs enabled on the destination volume? Both must also be connected to whatever the ACLs came from (OD/AD)

  10. #10

    Join Date
    Jul 2006
    Location
    London
    Posts
    2,962
    Thank Post
    159
    Thanked 152 Times in 116 Posts
    Rep Power
    48
    Probably a stupid question but how do I check that? There are shares on this server using ACLs
    Both are connected to AD, thats where all the permissions are from. One is an OD master, the other is a replica

  11. #11

    Join Date
    May 2008
    Posts
    213
    Thank Post
    2
    Thanked 27 Times in 27 Posts
    Rep Power
    17
    I had a similar issue and ended up using rsync which seemed todo the trick - if your going between machines you can 'pull' the files remotely via ssh.

  12. #12
    DMcCoy's Avatar
    Join Date
    Oct 2005
    Location
    Isle of Wight
    Posts
    3,386
    Thank Post
    10
    Thanked 483 Times in 423 Posts
    Rep Power
    110
    fsaclctl -p /Volumes/volumename

    This will tell you if ACLs are enabled on the volume or not.

  13. #13

    Join Date
    Jul 2006
    Location
    London
    Posts
    2,962
    Thank Post
    159
    Thanked 152 Times in 116 Posts
    Rep Power
    48
    On both servers, running that says ACL's are supported on both

  14. #14
    DMcCoy's Avatar
    Join Date
    Oct 2005
    Location
    Isle of Wight
    Posts
    3,386
    Thank Post
    10
    Thanked 483 Times in 423 Posts
    Rep Power
    110
    Quote Originally Posted by sidewinder View Post
    On both servers, running that says ACL's are supported on both
    I don't know if it works over the network, at minimum make sure you are connected to the remote server with AFP.

  15. #15

    Join Date
    Jul 2006
    Location
    London
    Posts
    2,962
    Thank Post
    159
    Thanked 152 Times in 116 Posts
    Rep Power
    48
    I ran it on the local terminal on each server. Indeed running it on a remote volume brung up an error that support is unknown

SHARE:
+ Post New Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Cloud user areas
    By browolf in forum Group Project
    Replies: 31
    Last Post: 3rd March 2011, 07:01 AM
  2. Replies: 19
    Last Post: 21st April 2008, 10:53 AM
  3. DPA +User Areas
    By Dos_Box in forum School ICT Policies
    Replies: 43
    Last Post: 5th December 2007, 11:54 AM
  4. User areas + User share permissions.
    By Dos_Box in forum Windows
    Replies: 6
    Last Post: 11th September 2007, 11:17 AM
  5. User Areas - Shares!?!
    By wesleyw in forum How do you do....it?
    Replies: 7
    Last Post: 23rd August 2006, 01:07 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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