You are not logged in.

#1 2024-01-21 16:47:11

860lacov
Member
Registered: 2020-05-02
Posts: 497

How KDE Plasma partition manager makes ext4 pendrive writable to user?

When I create a partition with mkfs.ext4 I need to create a directory that is owned by a user. If I don't do this, I can write files as root only.
I could probably make some udev rule to make pendirve writable to everyone.

But in KDE Plasma partiton manager there is an option to give write/read permission for everyone or administrator only.

Unfortunately, I can't figure it out.
Could you please give me a hint how it works?

By default, KDE Plasma mounts pendrives in /run/media/$USER directory

In my case /run/media/jm
jm has drwxr-x---+

After connecting pendrive, inside jm directory there is Transcend (label of my pendirve) with:
drwxrwxrwx (this is after creating partition in Plasma partition manager)

When I create partition with mkfs.ext4 than Transcend inside jm has drwxr-xr-x

Offline

#2 2024-01-21 16:51:47

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,232

Re: How KDE Plasma partition manager makes ext4 pendrive writable to user?

You don't need to make a directory, you can just change the permission on the "root" of the partition by chmod/chowning the mounted root path.

Permissions on ext4 are stored on the drive, they are not applied on mount.

Online

#3 2024-01-21 18:18:22

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

Re: How KDE Plasma partition manager makes ext4 pendrive writable to user?

V1del wrote:

Permissions on ext4 are stored on the drive, they are not applied on mount.

Damn.  I've been tilting at that windmill for years.  It never even dawned on me that things defined in antiquity would change with modern file systems.


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

Board footer

Powered by FluxBB