Home Forums OS X Server and Client Discussion Questions and Answers simple for a unix Guru….

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #377558
    trampoline
    Participant

    I have 800 new account folders created using imported users…
    I could not use the old folders due to corruption issues however I have all the old user accounts…
    Now I would like to copy all the contents of the old user folders over to the new folders like this…

    Get path of new folder
    get path of old folder use a wild card for the actual user folder at each end
    strip permissions from the old files and move them over and place the new permissions from the top level of the new user folder on all the transfered files

    so I guess one line will look something like
    mv */path/to/old/folder /path/to/new/folder/
    then something to get the permissions before it and place permissions on each file or the whole folder after moving
    something like chown me:me
    however the new folders will use acl list permissions as well… so that needs to be placed on it…
    then loop the whole thing possibly using apple script…

    It’s beyond me but probably 5 minutes work for an applescript / shell Guru…

    has anyone got one of these they have used before, someone must have it seems so obvious but it’s beyond me.

    If anyone can help that would be lovely…

    Thanks… 😯

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.

Comments are closed