Jump to content

move with permissions [solved]


Recommended Posts

Hi all

 

How do I move or copy a directory, with a lot of sub-directorys and a lot more files, without loosing the permissions on every file and directory?

 

I had to set special permissions on it all, because I was affraid to do something foolish like change in the wrong file.

 

Thanks in advance.

 

Regards Orts

Link to comment
Share on other sites

If you move it, the permissions will go with it. The same with if you copy it also, from the command line though you'll have to use the command like this:

 

cp -dpRx Documents /home/newuser/

 

for example would take the Documents folder and all it's contents to /home/newuser.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...