I had problems with compiz setting and I make multiple accounts, now I want to transfer my information from all deleted users in my current account, some data I can not copy because I am not right to read, I type in terminal "sudo nautilus
" and I get the permission for read, but the copied data is available only for superusers and I must charge the permissions for each file and each folder. How I can copy the information with out the superuser rights OR how I can charge the permissions for selected folder and all files and folders included in it?
You have to change the permission and also own the permission for the folder to which you want to access.
Following command will help you:
Where
saurav
is the user to which you want to own the files and/home/user
is the example of the user accounting you want to access.. You can changesaurav
to your user's name and/home/user
to the user account that that you've created. You can also use this if you want to access files and folders of multiple users:and so on..
I recommend the following, assuming the files you want to copy are inside a folder called "backup" for example, do the following where this folder resides:
Where chmod 777 will give Read, Write and Executable permissions to all files inside this folder to all users in this PC, saving you from having the problem you just mentioned. The -R at the end will make sure all files, sub-directories, in a recursive way will get the permission change.
In my experience, there is no way to gain access to that data without elevated permissions. If you have sudo (I am assuming you do since you ran sudo nautilus) or root access it is quick and easy as the other two posts have mentioned.
Without elevated permissions, I don't know of any "right" way (meaning without breaking in and changing the root password) to get the data. Nautilus is just the file manager and will not change the set perms.