Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Installed Mint 19 Cinnamon 64 bit. I am "trying" to back up my drive to an external USB drive. The backup tool won't let me. It says I am not the owner and don't have permission. Who is the owner? How do I fix this?
(I would wipe the USB drive but I have some things there I want to keep)
Please H E L P
Thanks
p.s. I am beginning to wonder if backup tool requires the root password to operate but does not do its job as 'root''
also
please interpret:
~$ namei -o /dev/sdc1 (my USB?)
f: /dev/sdc1
d root root /
d root root dev
b root disk sdc1
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
Rep:
Quote:
Originally Posted by see3ducks
Installed Mint 19 Cinnamon 64 bit. I am "trying" to back up my drive to an external USB drive. The backup tool won't let me. It says I am not the owner and don't have permission. Who is the owner? How do I fix this?
(I would wipe the USB drive but I have some things there I want to keep)
...
The "ls -la " command can tell you who owns the files/folder(s) in question.
Quote:
p.s. I am beginning to wonder if backup tool requires the root password to operate but does not do its job as 'root''
also
please interpret:
~$ namei -o /dev/sdc1 (my USB?)
f: /dev/sdc1
d root root /
d root root dev
b root disk sdc1
The problem seems to be the ownership of the external USB drive's mount point and/or filesystem. Your output is telling you that the root filesystem and the /dev folder is owned by the "root user", which it would be.
Please run the following command and post the output using CODE tags;
Code:
lsblk -f
(make sure your external USB drive is actually plugged in when you do)
If I'm right in thinking the above is your external USB drive, then it appears to be formatted with the ext4 filesystem, and it has one partition that I assume(?) takes up 100% of drive space.
Try running the following command to give everyone read/write (rw) permissions to your external USB drive;
Code:
sudo chmod 777 /media/steve/9d6794b1-6/
You shouldn't use the "777" with the chmod command on anything other than removable media.
Last edited by jsbjsb001; 11-07-2018 at 09:11 PM.
Reason: addition and corrected the chmod command
I tried that - no change. It appears that the chmod didn't do a thing and 'root' is the only one with access. Two things.... that chmod should have had some effect and even entering the password for the backup too should also work. Hhhhhmmmm off to bed. I think better in the morning.
Thanks...
Have a look under /var/run/media/user and do ls -la to see what owner, group and file permissions are assigned to the disk.
I don't like /var/run/media and the behaviour, and I have found often a time that I have no access to whatever is created in there "automatically" with various desktop functions, are actually mounting the disk with ownership and group as root and 750 or 755 or similar file permissions.
The same applies to how /media works with desktops as well. Even if you mount the disk through the desktop with user tools, it might be assigned root as group and owner anyway.
the USB drive is auto-mounted when I plug it in. I unmounted it and re-plugged it in. Didn't work. I am going to try to mount it as a normal user and see what happens.
What gets me is when a USB is auto-mounted even if it is as root I would think when Mint requests the password the backup tool would have access as root. Me Thinkx I am over my head now :-) It's almost like Mint's backup tool requests the password but fails to run as root. I was thinking about uninstalling and reinstalling the backup tool, but it let me remove it. Incidentally, this USB drive runs fine as backup on other versions of Mint.
Thanks...
==================================================================================================== ==========
Quote:
Originally Posted by jsbjsb001
Have you tried mounting your external USB drive as a normal user and not under the "root user" account ? Which I assume you have mounted it under.
If I'm right in my assumption, unmount it and re-mount it under your normal user account instead.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.