Hi
Im quite new at this so I will try to explain what need to do and I hope you can give me some pointers & tips.
On this scenario I have 3 users
Userno1 has one directory (with sub dirs), all directories have certain files with different restrictions.
What I basicly want to do is to copy all of those directories & files to Userno2 so that userno2 has the same restrictions.
I become sesu - userno1, then execute
cp -r /my_dir /home/userno2/my_directory.
But that doesnt seem to be work as intended to.
And those files that do get copied, theire restrictions are set to userno1, userno2 isnt really the owner.
So basicly my questions is, do you guys know a good way to copy that directory from a user to another user meanwhile the new user will receive all of the access?