You are not logged in.
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
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
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
[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
I used sudo chown maru:maru /dev/nvme2n1 but i still cant use the ssd as a user
Offline
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-a54399b92337will own everything in there to the user maru.
Offline
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 devicesudo chown -R maru:maru /run/media/maru/51b6a792-d1d8-4f1b-a5bb-a54399b92337will own everything in there to the user maru.
Thanks mate. worked.
Offline
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
But, I am puzzled that Dolphin created the mountpoint in /run/media/maru/ without those permissions. ![]()
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
It's not the mountpoint but the (root if the) mounted filesystem.
Offline
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
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 ![]()
(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 … ewwwI 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 ![]()
Offline