LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 11-07-2018, 02:36 PM   #1
see3ducks
LQ Newbie
 
Registered: Jan 2018
Posts: 20

Rep: Reputation: Disabled
[SOLVED?] No USB permission


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

Last edited by see3ducks; 11-08-2018 at 05:31 PM.
 
Old 11-07-2018, 04:40 PM   #2
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,819

Rep: Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144
What utility are you using for backup here? System-wide backup? User backup?
 
Old 11-07-2018, 05:14 PM   #3
see3ducks
LQ Newbie
 
Registered: Jan 2018
Posts: 20

Original Poster
Rep: Reputation: Disabled
Mint backup tool
 
Old 11-07-2018, 06:25 PM   #4
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Quote:
Originally Posted by see3ducks View Post
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)
 
Old 11-07-2018, 06:52 PM   #5
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,819

Rep: Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144
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''
I assume that you are launching it as root (and entering the appropriate administrator credentials)?
 
Old 11-07-2018, 07:31 PM   #6
see3ducks
LQ Newbie
 
Registered: Jan 2018
Posts: 20

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by see3ducks View Post
Mint backup tool
====================================
Code:
 lsblk -f
NAME   FSTYPE LABEL UUID                                 MOUNTPOINT
sda                                                      
└─sda1 ext4         7e783993-bd26-4aba-bfee-19ac8507a133 /
sdb                                                      
├─sdb1 ntfs         01D2ABB499F7E9F0                     
├─sdb2                                                   
├─sdb5 ext4         c388026c-bf41-49c8-93c0-fcf27057b1b4 
└─sdb6 swap         5ce6dd02-4ad9-46a7-b101-31d5180f1352 
sdc                                                      
└─sdc1 ext4         9d6794b1-6e91-4619-9d6c-8edf3b1403d7 /media/steve/9d6794b1-6
sr0
 
Old 11-07-2018, 07:32 PM   #7
see3ducks
LQ Newbie
 
Registered: Jan 2018
Posts: 20

Original Poster
Rep: Reputation: Disabled
lsblk -f

Code:
 lsblk -f
NAME   FSTYPE LABEL UUID                                 MOUNTPOINT
sda                                                      
└─sda1 ext4         7e783993-bd26-4aba-bfee-19ac8507a133 /
sdb                                                      
├─sdb1 ntfs         01D2ABB499F7E9F0                     
├─sdb2                                                   
├─sdb5 ext4         c388026c-bf41-49c8-93c0-fcf27057b1b4 
└─sdb6 swap         5ce6dd02-4ad9-46a7-b101-31d5180f1352 
sdc                                                      
└─sdc1 ext4         9d6794b1-6e91-4619-9d6c-8edf3b1403d7 /media/steve/9d6794b1-6
sr0

Last edited by see3ducks; 11-07-2018 at 07:33 PM. Reason: adding
 
Old 11-07-2018, 07:34 PM   #8
see3ducks
LQ Newbie
 
Registered: Jan 2018
Posts: 20

Original Poster
Rep: Reputation: Disabled
Code:
 lsblk -f
NAME   FSTYPE LABEL UUID                                 MOUNTPOINT
sda                                                      
└─sda1 ext4         7e783993-bd26-4aba-bfee-19ac8507a133 /
sdb                                                      
├─sdb1 ntfs         01D2ABB499F7E9F0                     
├─sdb2                                                   
├─sdb5 ext4         c388026c-bf41-49c8-93c0-fcf27057b1b4 
└─sdb6 swap         5ce6dd02-4ad9-46a7-b101-31d5180f1352 
sdc                                                      
└─sdc1 ext4         9d6794b1-6e91-4619-9d6c-8edf3b1403d7 /media/steve/9d6794b1-6
sr0
 
Old 11-07-2018, 07:40 PM   #9
see3ducks
LQ Newbie
 
Registered: Jan 2018
Posts: 20

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ferrari View Post
I assume that you are launching it as root (and entering the appropriate administrator credentials)?
Just running it from the desktop and THEN it asks for the password.
 
Old 11-07-2018, 08:42 PM   #10
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Code:
sdc                                                      
└─sdc1 ext4         9d6794b1-6e91-4619-9d6c-8edf3b1403d7 /media/steve/9d6794b1-6
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
 
Old 11-07-2018, 09:41 PM   #11
see3ducks
LQ Newbie
 
Registered: Jan 2018
Posts: 20

Original Poster
Rep: Reputation: Disabled
no work

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...
 
Old 11-07-2018, 11:06 PM   #12
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
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.

Then try your backup again.
 
Old 11-08-2018, 06:48 AM   #13
zeebra
Senior Member
 
Registered: Dec 2011
Distribution: Slackware
Posts: 1,833
Blog Entries: 17

Rep: Reputation: 640Reputation: 640Reputation: 640Reputation: 640Reputation: 640Reputation: 640
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.

Last edited by zeebra; 11-08-2018 at 06:50 AM.
 
Old 11-08-2018, 09:59 AM   #14
see3ducks
LQ Newbie
 
Registered: Jan 2018
Posts: 20

Original Poster
Rep: Reputation: Disabled
no such directory

no such directory as /var/run/media found :-(
 
Old 11-08-2018, 10:11 AM   #15
see3ducks
LQ Newbie
 
Registered: Jan 2018
Posts: 20

Original Poster
Rep: Reputation: Disabled
ggggggrrrrrrr

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 View Post
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.

Then try your backup again.

Last edited by see3ducks; 11-08-2018 at 10:12 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Cannot get user permission to use new USB trumpforprez Linux - Newbie 7 06-19-2018 02:16 PM
Permission trouble (usb) fatalerror0x00 Slackware 3 10-23-2012 04:48 PM
[SOLVED] sane and usb permission Celyr Slackware 3 08-09-2012 05:06 AM
usb stick permission lindberg.bill Slackware 9 02-23-2007 04:55 AM
USB drive permission zakidad Linux - Newbie 9 06-19-2005 07:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration