klricks wrote: ↑
Wed Jun 26, 2019 3:26 am
In order to modify any files that are not in the users home directory (/home/pi/........) you must prefix the command with sudo
That's an incredibly insecure suggestion and will bypass all permissions set by the file's owner.
It'll work but you really shouldn't do this. Use it on the wrong files or in the wrong directory and you can easily break your system.
It's far better to understand and configure file and directory permissions than to brute force them with sudo. Getting the permissions and ownership you want may also mean you need to edit mount options for the storage.
It's also hard to do "sudo ..." in the GUI file manager.
If you want to see why using sudo for this is bad, consider these commands (don't run them, you'll trash your system):
One will fail, one will delete everything. Or
In the wrong directory the first will fail but the second will go ahead and delete everything.
This is made worse on raspbian as the default configuartion doesn't prompt for a password when sudo is used so there's no chance to realise your mistake before it's too late.
As for the OP's problem. It's hard to suggest reasonable solutions without more information. Such as the output of
on the files to be moved and both the source and target directories.