Change ownership
Linux Mint 19.1 XFCE
I have a bunch of folders with files inside that reside in a VeraCrypt volume. I want to copy them all to a USB stick in order to paste them on another computer. A straight copy/paste does not work because permission is denied. I am the only user of the computer, and the user/owner has read/write permission. I have tried Code:
sudo chown -R 777 path/to/VC/directory The only way I can do the copy procedure is if I open a file manager as root on the source computer and the same for pasting on the receiving computer. But the I can only use the file if I open the file manager as root, which is not the right way to go about this. I am probably doing something wrong, so how can I achieve the permission change? |
you are using the wrong command.
what you need is chmod Code:
sudo chmod -R 777 path/to/VC/directory |
Quote:
|
you are in an encrypted volume
most likely, that the problem lies there. when copying, did you use sudo or su ?? |
Quote:
And, if you don't want to change permissions, you can also use Code:
sudo cp <source> <destination> |
Quote:
Note that "Windows" type of fs'es (FAT, NTFS) do not have the concept of "ownership", the owner of the directory and files will be the mounting ID (unless specified different as an option). And there is an attribute for readonly/readwrite, but as there's no owner/group/world concept none for group/others and no X-bits either. All those are simulated at the mount. So for FAT/NTFS: use i.e. -o uid=<your ID number>,fmask=0133 as mount options. |
Quote:
|
Quote:
|
Quote:
|
you need to make sure that your USB stick is mounted. Once you have done this, you should be able to run the command you are trying to run.
|
Quote:
|
Quote:
Quote:
If so, are you able to change permission of files that were copied to USB? |
Assuming that the user number (UID) is the same on your source and target machines (which it will probably be for a single-user system, i.e. 1000), all you need to do is ensure that the USB stick's filesystem (ext4) is also fully owned by your user (using chown -R). You can then use it to transfer files from one machine to the other to your heart's content.
|
Quote:
Many thanks for your help. |
Quote:
|
All times are GMT -5. The time now is 11:17 AM. |