First Full Backup on Usb: Permission Denied

I am new to Ubuntu 13.04. I am trying to do a full backup to my USB and I have used GParted to create a partition on my USB and formatted it as ext4. It still has permission denied errors. I get this message:

Permission denied when trying to create ‘/media/stacyjane/ubuntu backup/duplicity-full.20130726T043854Z.vol1.difftar.gpg
1

1 Answer

You need to set ownership & permissions.

If mounted at /media/stacyjane

sudo chmod -R a+rwX,o-w /media/stacyjane
sudo chown -R $USER:$USER /media/stacyjane

Note that the -R is recursion and everything is changed, do NOT run on any system partitions. All directories will be 775. All files will be 664 except those that were set as executable to begin with.

The -R parameter is recursive, so it will apply to all lower directories & files, but do not use on any system partition, just data.

see also

man chmod
man chown
1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Sarah Jenkins

Sarah Jenkins

Senior Technology Editor & AI Specialist

Sarah Jenkins is a veteran tech journalist with over 12 years of experience covering artificial intelligence, mobile innovations, and digital ethics. Her insights have appeared in leading technology publications worldwide.

Share this article
Twitter Facebook Pinterest