Confused over device ownership - SOLVED

Questions about other topics - please check if your question fits better in another category before posting here
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
bushyiii
Level 4
Level 4
Posts: 258
Joined: Thu Apr 07, 2016 12:42 am

Confused over device ownership - SOLVED

Post by bushyiii »

Using lM 20.2 Xfce.
computer:/// lists all my devices.
Checking properties / permissions shows HDD ownership as "root:root "
In the terminal using "ls -la" shows device ownership "guy:guy"
I have Plex mediaserver that so far is unable to access the files on all the attached HDDs that display the same properties as listed above.
File permissions for the media drives is 777

Any guidance is greatly appreciated.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
all41
Level 19
Level 19
Posts: 9520
Joined: Tue Dec 31, 2013 9:12 am
Location: Computer, Car, Cage

Re: Confused over device ownership

Post by all41 »

In the terminal using ls -la shows device ownership "guy:guy"
by default the ls commands refer to /home/username---so yes it is showing guy:guy for files and directories
in your home directory--it's your directory and you own the files-all is peachy here.
If you open the terminal in a specified directory and run ls -la the results are displayed for that specific directory.
see terminal results of:
man ls

Also please post the terminal results of the following:

Code: Select all

lsblk

Code: Select all

blkid
and:

Code: Select all

cat /etc/fstab
Everything in life was difficult before it became easy.
User avatar
Flemur
Level 20
Level 20
Posts: 10096
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: Confused over device ownership

Post by Flemur »

bushyiii wrote: Wed Dec 08, 2021 11:31 amAny guidance is greatly appreciated.
You should post the exact commands you issued and the responses that Mint/bash/whatever issued, inside </> "code" tags, like this:

Code: Select all

$ ls *.not
ls: cannot access '*.not': No such file or directory
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
bushyiii
Level 4
Level 4
Posts: 258
Joined: Thu Apr 07, 2016 12:42 am

Re: Confused over device ownership

Post by bushyiii »

The ls -la command had been executed within the attached usb drive: "guy@guy-HP-Compaq-8200-Elite-SFF-PC:/media/guy/7Tb$ ls -la"

Code: Select all

guy@guy-HP-Compaq-8200-Elite-SFF-PC:~$ lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 119.2G  0 disk 
├─sda1   8:1    0   512M  0 part /boot/efi
├─sda2   8:2    0    49G  0 part /run/timeshift/backup
├─sda3   8:3    0  29.5G  0 part 
└─sda4   8:4    0  40.4G  0 part 
sdb      8:16   1 372.6G  0 disk 
└─sdb1   8:17   1 372.6G  0 part 
sdc      8:32   0   7.3T  0 disk 
└─sdc1   8:33   0   7.3T  0 part /media/guy/7Tb
sdd      8:48   0   9.1T  0 disk 
└─sdd1   8:49   0   9.1T  0 part /media/guy/Elements
sde      8:64   0   7.3T  0 disk 
├─sde1   8:65   0   128M  0 part 
└─sde2   8:66   0   7.3T  0 part /media/guy/Seagate Backup Plus Drive
sr0     11:0    1  1024M  0 rom  

Code: Select all

guy@guy-HP-Compaq-8200-Elite-SFF-PC:~$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda2 during installation
UUID=04f4ae2c-947c-46d9-a0be-026bdcb0495f /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sda1 during installation
UUID=6451-7FBF  /boot/efi       vfat    umask=0077      0       1
/swapfile                                 none            swap    sw              0       0
Image https://paste.pics/4c8d3b5f3d1ed6750d076e8b731745ba
The picture url is composed of three screenshots adjacent to one another. From left to right the 1st is a shot of "computer:///", 2nd is the Permissions tab for "Seagate Backup+ Hub BK: 7Tb" showing "root" as owner & the 3rd showing the terminal output of "/media/guy/7Tb$ ls -la"

I just noticed something from the beginning of the ls -la output that had scrolled off the window.

Code: Select all

guy@guy-HP-Compaq-8200-Elite-SFF-PC:/media/guy/7Tb$ ls -la
total 6624520
drwxrwxrwx  33 guy  guy       36864 Dec 10 09:27  .
drwxrwxrwx+  6 root root       4096 Dec 10 16:01  ..[
/code]
User avatar
all41
Level 19
Level 19
Posts: 9520
Joined: Tue Dec 31, 2013 9:12 am
Location: Computer, Car, Cage

Re: Confused over device ownership

Post by all41 »

Devices belong to root.
Partitions created in Linux belong to root.
Users can take ownership of the partition mountpoint--but the partition is still
owned by root.
Everything in life was difficult before it became easy.
bushyiii
Level 4
Level 4
Posts: 258
Joined: Thu Apr 07, 2016 12:42 am

Re: Confused over device ownership

Post by bushyiii »

Thanks, I was unaware, I thought the user that created them could own them.
User avatar
all41
Level 19
Level 19
Posts: 9520
Joined: Tue Dec 31, 2013 9:12 am
Location: Computer, Car, Cage

Re: Confused over device ownership

Post by all41 »

bushyiii wrote: Wed Dec 22, 2021 7:17 pm Thanks, I was unaware, I thought the user that created them could own them.
Yes--only root can create partitions, so newly created partitions automatially belong to root.
You can gain read/write if you take ownership of the partition's mountpoint.
Everything in life was difficult before it became easy.
Locked

Return to “Other topics”