You are not logged in.

#1 2022-07-17 18:32:50

Hyurimaru
Member
Registered: 2022-07-15
Posts: 10

SOLVED - No permission to use my second SSD

my second ssd is in ext4 file system. and has a partition that i just created using cfdisk today
problem is only root has permission, how do i give permission to my username? (yes, im in wheel)

Last edited by Hyurimaru (2022-07-17 19:45:15)

Offline

#2 2022-07-17 18:40:21

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,671

Re: SOLVED - No permission to use my second SSD

First off, where and how are you mounting it?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#3 2022-07-17 18:41:30

Hyurimaru
Member
Registered: 2022-07-15
Posts: 10

Re: SOLVED - No permission to use my second SSD

ewaller wrote:

First off, where and how are you mounting it?

I just open it from the file manager Dolphin, type password and it mounts
but i cant create files or anything

Last edited by Hyurimaru (2022-07-17 18:42:57)

Offline

#4 2022-07-17 19:22:33

Hyurimaru
Member
Registered: 2022-07-15
Posts: 10

Re: SOLVED - No permission to use my second SSD

[maru@Hyuri ~]$ lsblk
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
sda           8:0    1  57.7G  0 disk
└─sda1        8:1    1  57.7G  0 part
nvme1n1     259:0    0 931.5G  0 disk
└─nvme1n1p1 259:3    0 931.5G  0 part /run/media/maru/e3928094-c068-4380-ad7f-7a59df9a2944
nvme2n1     259:1    0   1.8T  0 disk
└─nvme2n1p1 259:2    0   1.8T  0 part /run/media/maru/51b6a792-d1d8-4f1b-a5bb-a54399b92337
nvme0n1     259:4    0   1.8T  0 disk
├─nvme0n1p1 259:5    0   400M  0 part /boot/efi
├─nvme0n1p2 259:6    0    16G  0 part [SWAP]
└─nvme0n1p3 259:7    0   1.8T  0 part /

nvme0n1 is where my main system is, nvme1n1 and nvme 2n1 are mounted but i cant make changes, and when i click properties, it says only root has permission.

Offline

#5 2022-07-17 19:31:08

Hyurimaru
Member
Registered: 2022-07-15
Posts: 10

Re: SOLVED - No permission to use my second SSD

I used sudo chown maru:maru /dev/nvme2n1 but i still cant use the ssd as a user

Offline

#6 2022-07-17 19:35:25

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,527

Re: SOLVED - No permission to use my second SSD

Why do you want your user to own the device?
If you just want your user to own the mounted directory, chown that after mounting the device

sudo chown -R maru:maru /run/media/maru/51b6a792-d1d8-4f1b-a5bb-a54399b92337

will own everything in there to the user maru.

Offline

#7 2022-07-17 19:37:04

Hyurimaru
Member
Registered: 2022-07-15
Posts: 10

Re: SOLVED - No permission to use my second SSD

seth wrote:

Why do you want your user to own the device?
If you just want your user to own the mounted directory, chown that after mounting the device

sudo chown -R maru:maru /run/media/maru/51b6a792-d1d8-4f1b-a5bb-a54399b92337

will own everything in there to the user maru.

Thanks mate. worked.

Offline

#8 2022-07-17 19:42:11

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,527

Re: SOLVED - No permission to use my second SSD

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Also read the wiki a bit. Start here.
https://wiki.archlinux.org/title/File_systems

You're supposed to know stuff like this…

Offline

#9 2022-07-17 19:50:50

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,671

Re: SOLVED - No permission to use my second SSD

But, I am puzzled that Dolphin created the mountpoint in /run/media/maru/ without those permissions. hmm


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#10 2022-07-17 19:55:51

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,527

Re: SOLVED - No permission to use my second SSD

It's not the mountpoint but the (root if the) mounted filesystem.

Offline

#11 2022-07-17 20:56:26

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,671

Re: SOLVED - No permission to use my second SSD

Well, heck.  In all these years, I never realized the root of a file system carried permissions.  The model I had had in my head was that that file systems were intrinsically owned by root and adopted the permissions of where they were mounted.  I read your assertion, and was sure you were wrong -- so I had to go off and prove myself wrong.

Thank you.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#12 2022-07-18 13:28:09

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,527

Re: SOLVED - No permission to use my second SSD

Perhaps rooted in the pattern that mounting FAT32 and other non-filesystems will frequently get you the "ownership" of the mounting UID for the entire non-filesystem.
Lennart would have less issues w/ his homed, though, if it was the case tongue
(No chown() based uid mapping…)

To understand why that approach would lead to problems

cd tmp
mkdir foo
sudo touch foo/bar
ls -la foo # so far so good
rm -f foo/bar # no sudo here
ls -la foo # errrrr … ewww

I read your assertion, and was sure you were wrong -- so I had to go off and prove myself wrong.

Testing a firm belief probably says something very admirable about your character - but since I'm an arrogant jerk, I'll just take it as a compliment and thank you as well big_smile

Offline

Board footer

Powered by FluxBB