1

I'm running Xubuntu 16.04.1, and backed up all my critical files to a 3-TB external USB drive before doing a clean install. However to do so I had to use the "Send to" applet in Thunar, and work in a "sudo thunar" environment. Consequently all the backup files of my home directory are owned by "root" rather than myself.

Consequently after restoring the files I had to do a recursive "chown" to restore my user and group ownership.

I'd like to avoid this problem for future backups, but it appears that the "uid" and "gid" options are omitted from ext4 mount options, nor do I find anything equivalent that I could add to fstab to force ownership. Can anyone tell me if (a) what I want is possible for ext4 filesystems and (b) if it is, how to go about it?

-1

Try working in a non-sudo environment?

As sudo means that the "root" user is copying it instead of the user (you). So I assume that if you do not work in a sudo environment, the user (you) who copied it will inherit the ownership of the copied files.

  • Unfortunately, because of the way this version mounts the USB drive, it can only be written by the root user. That's the whole point of my question: how can I force the mounting without sudo? – Jim Kyle Sep 14 '16 at 12:50

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.