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

Thanks guy's

 

Allways a pleasure to ask a question in here, with all those great answers

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...