Author Topic: File Ownership [SOLVED]  (Read 1227 times)

Offline zebedeeboss

  • Global Moderator
  • Hero
  • *****
  • Posts: 3233
  • Karma: 625
  • Life first... Peppermint a close 2nd :)
    • View Profile
  • Peppermint version(s): P10 / P9 Respin
File Ownership [SOLVED]
« on: September 07, 2019, 03:11:34 am »
Hi

I have a drive mounted as follows in FSTAB

Quote
LABEL=F /mnt/F auto nosuid,nodev,nofail,x-gvfs-show 0 0

When I look at the properties of the file in Nemo it states that root is the owner and group

using
Code: [Select]
sudo chown -R zebedee:zebedee /mnt/F
completes but root is still the owner

example file listing shows
Quote
-rwxrwxrwx 1 root root  855798905 Oct 12  2018

Advise please.   Bearing in mind this drive is accessible from multiple distro's and has the same problem in all.

If I try and modify the permissions in a root session of Nemo - I can pick zebedee but then it immediately goes back to root ? Same thing for Group too

Regards Zeb...
« Last Edit: September 10, 2019, 01:49:27 am by zebedeeboss »
Be Kind Whenever Possible...   It is Always Possible - Dalai Lama

P10r x64 Desktop - AMD Threadripper 2950X - 64Gb RAM - NVIDIA RTX2080Ti 11Gb - 2 x 27" 4k

Offline murraymint

  • Trusted User
  • Veteran
  • *****
  • Posts: 2200
  • Karma: 458
  • soft boiled with a yolk of gold
    • View Profile
  • Peppermint version(s): 7, 8, 9
Re: File Ownership
« Reply #1 on: September 07, 2019, 03:38:40 am »
Is this an NTFS partition?

Offline zebedeeboss

  • Global Moderator
  • Hero
  • *****
  • Posts: 3233
  • Karma: 625
  • Life first... Peppermint a close 2nd :)
    • View Profile
  • Peppermint version(s): P10 / P9 Respin
Re: File Ownership
« Reply #2 on: September 07, 2019, 03:40:46 am »
yeah sorry - forgot to mention that
Be Kind Whenever Possible...   It is Always Possible - Dalai Lama

P10r x64 Desktop - AMD Threadripper 2950X - 64Gb RAM - NVIDIA RTX2080Ti 11Gb - 2 x 27" 4k

Offline murraymint

  • Trusted User
  • Veteran
  • *****
  • Posts: 2200
  • Karma: 458
  • soft boiled with a yolk of gold
    • View Profile
  • Peppermint version(s): 7, 8, 9
Re: File Ownership
« Reply #3 on: September 07, 2019, 03:41:38 am »

Offline zebedeeboss

  • Global Moderator
  • Hero
  • *****
  • Posts: 3233
  • Karma: 625
  • Life first... Peppermint a close 2nd :)
    • View Profile
  • Peppermint version(s): P10 / P9 Respin
Re: File Ownership
« Reply #4 on: September 07, 2019, 03:51:52 am »
Thanks I will take a look.

The weird thing is these drives have worked fine for years...  It is only just recently that this has occurred

Regards Zeb...
Be Kind Whenever Possible...   It is Always Possible - Dalai Lama

P10r x64 Desktop - AMD Threadripper 2950X - 64Gb RAM - NVIDIA RTX2080Ti 11Gb - 2 x 27" 4k

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26437
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: File Ownership
« Reply #5 on: September 07, 2019, 08:26:50 am »
And the problem is ?

What I mean is, why is this a problem for you ? .. wouldn't it be just as easy to make the mountpoint read/write/execute by everyone ?

Just trying to figure out what the exact problem is and what your goals are ?
« Last Edit: September 07, 2019, 08:29:09 am by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline zebedeeboss

  • Global Moderator
  • Hero
  • *****
  • Posts: 3233
  • Karma: 625
  • Life first... Peppermint a close 2nd :)
    • View Profile
  • Peppermint version(s): P10 / P9 Respin
Re: File Ownership
« Reply #6 on: September 07, 2019, 08:56:33 am »
What I mean is, why is this a problem for you ? .. wouldn't it be just as easy to make the mountpoint read/write/execute by everyone ?

You are right, the problem was I could not rename a file in MX19 beta this morning.   What would I need to change in fstab to do that please ?

Regards Zeb...
Be Kind Whenever Possible...   It is Always Possible - Dalai Lama

P10r x64 Desktop - AMD Threadripper 2950X - 64Gb RAM - NVIDIA RTX2080Ti 11Gb - 2 x 27" 4k

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26437
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: File Ownership
« Reply #7 on: September 07, 2019, 02:13:10 pm »
Can you give me the contents of your fstab ?

and the output from:
Code: [Select]
sudo fdisk -land
Code: [Select]
blkid
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline zebedeeboss

  • Global Moderator
  • Hero
  • *****
  • Posts: 3233
  • Karma: 625
  • Life first... Peppermint a close 2nd :)
    • View Profile
  • Peppermint version(s): P10 / P9 Respin
Re: File Ownership
« Reply #8 on: September 09, 2019, 06:24:05 am »
Apologies - been busy

Spoiler (click here to view / hide)
[close]

Code: [Select]
zebedee@threadripper ~ $ blkid
/dev/nvme0n1p1: UUID="BF5B-0CB9" TYPE="vfat" PARTLABEL="EFI System Partition" PARTUUID="c6a5196e-3a51-4ffa-be84-4603d1d08997"
/dev/nvme0n1p2: UUID="a4597704-a482-4fab-9d7f-b1e07dc210b5" TYPE="swap" PARTUUID="2c958e2a-67f2-4482-b98d-9354b49cbbbb"
/dev/nvme0n1p3: LABEL="Peppermint" UUID="62410ee8-7e2b-43f0-aad7-8eaec645cf17" TYPE="ext4" PARTUUID="73db31aa-1583-4e7c-9765-dc8107097f77"
/dev/nvme0n1p5: LABEL="Windows 10" UUID="9292F81792F80191" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="8acf41fe-0532-459f-bb41-df8a02711e68"
/dev/nvme0n1p6: UUID="32443A78443A3EC3" TYPE="ntfs" PARTUUID="7dc1323c-630b-41c3-9907-a20d4b923fc0"
/dev/nvme0n1p7: LABEL="ArcoLinux" UUID="2a620883-0d36-4bc4-91e1-5143503d7407" TYPE="ext4" PARTUUID="21bf7e6d-21ad-4a7a-aff1-38d0a5418e5f"
/dev/sda1: UUID="F489-9EE1" TYPE="vfat" PARTLABEL="EFI System Partition" PARTUUID="fc31967b-1183-4a2a-8c90-e199214dd6e8"
/dev/sda2: UUID="fef42237-4713-4ae2-8728-3e4991008b92" TYPE="swap" PARTUUID="03252434-c729-49d8-9680-3a0616589c54"
/dev/sda3: LABEL="Solus" UUID="9142955f-71f0-415c-bcba-3497c15b2f3e" TYPE="ext4" PARTUUID="e9e06f95-8b0e-46a2-a159-bc896003e395"
/dev/sda4: LABEL="PCLinuxOS" UUID="3c185fbc-c2bb-47f7-8f16-8fe0f422830a" TYPE="ext4" PARTUUID="fe798137-955f-40a0-a166-b6031651bd7f"
/dev/sda5: LABEL="antiX" UUID="803884e4-3797-4767-ab57-27db8347dfa4" TYPE="ext4" PTTYPE="dos" PARTUUID="45bac5be-535e-457b-9c04-da863a043573"
/dev/sda6: LABEL="Data2" UUID="dfe0315e-ca53-48ca-a499-124a73e6ee9e" TYPE="ext4" PARTUUID="ee1b4471-7c35-4af6-ab6c-e42156ad9361"
/dev/sda10: UUID="8CD1-39A9" TYPE="vfat" PARTUUID="a263c55d-e2ea-41f1-a79e-5c12aab795ee"
/dev/sdb2: LABEL="F" UUID="2C64709E64706C88" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="0f725765-74ef-41c9-9f8e-8c73b061ceeb"
/dev/sdd1: SEC_TYPE="msdos" UUID="A454-339B" TYPE="vfat" PARTUUID="cb4f099e-2bc3-434c-886c-c8ef4ecfdaa8"
/dev/sdd2: LABEL="Tumbleweed" UUID="95116679-136c-4a27-b069-f83e11cc8e57" TYPE="ext4" PARTUUID="50666fae-c54f-45db-9f7b-f4dbe20b8f3b"
/dev/sdd3: LABEL="Salient KDE" UUID="b28561f7-4ac2-4874-9ef3-bc61d156dc1c" TYPE="ext4" PARTUUID="b2c36d05-e915-4138-be5c-c4acb0a389d3"
/dev/sdd4: LABEL="MX_Linux" UUID="dea3633d-98ea-4e94-94ba-4676a4bf1441" TYPE="ext4" PTTYPE="dos" PARTUUID="910107da-61f2-4696-abb5-4c103fc0f4ed"
/dev/sdd5: LABEL="Manjaro OpenBox" UUID="ff339e75-0355-4235-8953-c8fd886a0d51" TYPE="ext4" PARTUUID="980d9ccd-1221-4c10-b1a8-e2839662b71d"
/dev/sdd6: UUID="0d1c5c85-6934-4af6-960b-482cb539d32b" TYPE="ext4" PARTUUID="e04109d1-2103-4ef8-abc7-198193dee8ff"
/dev/sdd7: LABEL="Feren KDE" UUID="c8f1ca35-a6f5-4daf-a971-857c4dc4d362" TYPE="ext4" PARTUUID="6a2bb6ae-2b70-440a-95cd-b4a14c66ce09"
/dev/sdc1: LABEL="G" UUID="01D456426CFDF540" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="6be6dff0-5642-01d4-f86f-f335212bea00"
/dev/sdh1: LABEL="Data" UUID="33842076-a51a-4c4a-a1d2-74aa72889bad" TYPE="ext4" PARTUUID="60c27a6e-8893-44a9-865b-385f271d11e5"
/dev/sdh2: UUID="6AEC-0D47" TYPE="vfat" PARTLABEL="NO NAME" PARTUUID="62f4fc8e-d070-4277-9b05-6dcd42235266"
/dev/sdi1: UUID="23FD-5113" TYPE="vfat" PARTLABEL="grub" PARTUUID="2decf280-5a3b-4eff-9654-7434f32fa299"
/dev/sdi2: UUID="25BE-DFF5" TYPE="vfat" PARTLABEL="boot" PARTUUID="43d141f0-ac0e-420a-8cbb-c820836235da"
/dev/sdi3: UUID="db9aaa98-6c80-459e-aa97-7bb4a510c39c" TYPE="ext4" PARTLABEL="rootfs" PARTUUID="e2105a2b-33cb-4c51-b5d1-8b2a845ed42e"
/dev/loop0: TYPE="squashfs"
/dev/loop1: TYPE="squashfs"
/dev/loop2: TYPE="squashfs"
/dev/loop3: TYPE="squashfs"
zebedee@threadripper ~ $

Regards Zeb...

Be Kind Whenever Possible...   It is Always Possible - Dalai Lama

P10r x64 Desktop - AMD Threadripper 2950X - 64Gb RAM - NVIDIA RTX2080Ti 11Gb - 2 x 27" 4k

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26437
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: File Ownership
« Reply #9 on: September 09, 2019, 08:19:27 am »
Quote
the problem was I could not rename a file in MX19 beta this morning

So does that mean you CAN rename a file on that partition in Peppermint (without elevated privileges) ?



From MX19, what's the output from
Code: [Select]
mountand can we have the same from Peppermint too.
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline zebedeeboss

  • Global Moderator
  • Hero
  • *****
  • Posts: 3233
  • Karma: 625
  • Life first... Peppermint a close 2nd :)
    • View Profile
  • Peppermint version(s): P10 / P9 Respin
Re: File Ownership
« Reply #10 on: September 09, 2019, 08:34:28 am »
Hi

yes I can rename a file in Peppermint

Spoiler (click here to view / hide)
[close]

From MX - I had more drives switched on

So F2 does not work in MX and rename is greyed out. So i am guessing this is an MX problem and should take it to their forums lol

Regards Zeb...
« Last Edit: September 09, 2019, 08:40:26 am by zebedeeboss »
Be Kind Whenever Possible...   It is Always Possible - Dalai Lama

P10r x64 Desktop - AMD Threadripper 2950X - 64Gb RAM - NVIDIA RTX2080Ti 11Gb - 2 x 27" 4k

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26437
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: File Ownership
« Reply #11 on: September 09, 2019, 12:11:06 pm »
Seems like in MX the directories are being mounted via fuse

What's the output from:
Code: [Select]
mountin Peppermint

and can I have the fstab from both OS's



Can you also post the output from:
Code: [Select]
ls -l /mntfrom both OS's
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline zebedeeboss

  • Global Moderator
  • Hero
  • *****
  • Posts: 3233
  • Karma: 625
  • Life first... Peppermint a close 2nd :)
    • View Profile
  • Peppermint version(s): P10 / P9 Respin
Re: File Ownership
« Reply #12 on: September 10, 2019, 01:32:24 am »
mount in peppermint
Spoiler (click here to view / hide)
[close]

/mnt command in Peppermint
Code: [Select]
zebedee@threadripper ~ $ ls -l /mnt
total 188
drwxr-xr-x 20 zebedee zebedee  4096 Aug 23 11:23 Data
drwxr-xr-x  4 zebedee zebedee  4096 Aug 25 10:14 Data2
drwxrwxrwx  1 root    root     4096 Aug 30 05:34 E
drwxrwxrwx  1 root    root    81920 Sep  9 06:26 F
drwxrwxrwx  1 root    root     8192 Sep  7 14:54 G
drwxrwxrwx  1 root    root    16384 Aug 30 05:34 H
drwxrwxrwx  1 root    root     4096 Aug 30 05:34 I
drwxrwxrwx  1 root    root     8192 Aug 30 05:34 J
drwxrwxrwx  1 root    root     4096 Aug 30 05:34 K
drwxrwxrwx  1 root    root     4096 Aug 30 05:34 L
drwxrwxrwx  1 root    root    24576 Aug 30 05:34 M
drwxrwxrwx  1 root    root    24576 Aug 30 05:34 O
drwxr-xr-x  2 root    root     4096 Jul 12 10:45 temp
zebedee@threadripper ~ $

/mnt command in MX19
Code: [Select]
zebedee@mx-2950x:~
$ ls -l /mnt
total 164
drwxr-xr-x 20 zebedee zebedee  4096 Aug 23 11:23 Data
drwxr-xr-x  4 zebedee zebedee  4096 Aug 25 10:14 Data2
drwxrwxrwx  1 root    root     4096 Aug 30 05:34 E
dr-xr-xr-x  1 root    root    81920 Sep  9 06:26 F
dr-xr-xr-x  1 root    root     8192 Sep  7 14:54 G
drwxrwxrwx  1 root    root    16384 Aug 30 05:34 H
drwxrwxrwx  1 root    root     4096 Aug 30 05:34 I
drwxrwxrwx  1 root    root     8192 Aug 30 05:34 J
drwxrwxrwx  1 root    root     4096 Aug 30 05:34 K
drwxrwxrwx  1 root    root     4096 Aug 30 05:34 L
drwxrwxrwx  1 root    root    24576 Aug 30 05:34 M
drwxr-xr-x 25 root    root     4096 Sep  7 08:05 Peppermint
zebedee@mx-2950x:~

Regards Zeb...
« Last Edit: September 10, 2019, 01:38:24 am by zebedeeboss »
Be Kind Whenever Possible...   It is Always Possible - Dalai Lama

P10r x64 Desktop - AMD Threadripper 2950X - 64Gb RAM - NVIDIA RTX2080Ti 11Gb - 2 x 27" 4k

Offline zebedeeboss

  • Global Moderator
  • Hero
  • *****
  • Posts: 3233
  • Karma: 625
  • Life first... Peppermint a close 2nd :)
    • View Profile
  • Peppermint version(s): P10 / P9 Respin
Re: File Ownership [SOLVED]
« Reply #13 on: September 10, 2019, 01:43:16 am »
Hi, fixed it thanks to your commands. I can now edit files on those two drives as per normal.

Not sure how but the F and G drive got mounted with different read/write permissions ??

So I went into gnome-disks and stopped the mounts - remounted it in the normal way (using gnome-disks) and checking the /mnt command it now shows drwxrwxrwx like the others.

Many Thanks

Regards Zeb...
« Last Edit: September 10, 2019, 01:49:47 am by zebedeeboss »
Be Kind Whenever Possible...   It is Always Possible - Dalai Lama

P10r x64 Desktop - AMD Threadripper 2950X - 64Gb RAM - NVIDIA RTX2080Ti 11Gb - 2 x 27" 4k

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26437
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: File Ownership [SOLVED]
« Reply #14 on: September 10, 2019, 06:24:23 am »
Great news :)

Personally I tend to add mounts manually in fstab .. just means I know what they **should** be doing, so have a place to start if they're not doing as expected.
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec