Re: [partly solved] Re: mounting media in plasma5

2023-07-27 Thread Max Nikulin
On 05/07/2023 21:32, Max Nikulin wrote: On 04/07/2023 18:24, Hans wrote: Is there any configuration file I can look at? https://wiki.archlinux.org/title/udisks#Mount_to_/media I have realized that I do not mind to make specific ext4 partitions mounted using udisksd accessible by all users a

Re: [partly solved] Re: mounting media in plasma5

2023-07-05 Thread Max Nikulin
On 04/07/2023 18:24, Hans wrote: Is there any configuration file I can look at? I am not sure that I am realizing what you are trying to achieve, but maybe the following may give some hint https://wiki.archlinux.org/title/udisks#Mount_to_/media however it is necessary to carefully check wit

Re: [partly solved] Re: mounting media in plasma5

2023-07-05 Thread gene heskett
On 7/5/23 03:39, Max Nikulin wrote: On 05/07/2023 12:43, gene heskett wrote: On 7/4/23 23:14, Max Nikulin wrote: On 04/07/2023 22:06, gene heskett wrote: or deb which appears to be a snap Debugging of snap and similar isolation technologies heavily relying on namespaces (mount and other one

Re: [partly solved] Re: mounting media in plasma5

2023-07-05 Thread Max Nikulin
On 05/07/2023 12:43, gene heskett wrote: On 7/4/23 23:14, Max Nikulin wrote: On 04/07/2023 22:06, gene heskett wrote: or deb which appears to be a snap Debugging of snap and similar isolation technologies heavily relying on namespaces (mount and other ones) sounds like an off-topic in the t

Re: [partly solved] Re: mounting media in plasma5

2023-07-04 Thread gene heskett
On 7/4/23 23:14, Max Nikulin wrote: On 04/07/2023 22:06, gene heskett wrote: or deb which appears to be a snap Debugging of snap and similar isolation technologies heavily relying on namespaces (mount and other ones) sounds like an off-topic in the thread where udisks2 magic is the most like

Re: [partly solved] Re: mounting media in plasma5

2023-07-04 Thread Max Nikulin
On 04/07/2023 22:06, gene heskett wrote: or deb which appears to be a snap Debugging of snap and similar isolation technologies heavily relying on namespaces (mount and other ones) sounds like an off-topic in the thread where udisks2 magic is the most likely issue.

Re: [partly solved] Re: mounting media in plasma5

2023-07-04 Thread gene heskett
On 7/4/23 08:11, Greg Wooledge wrote: On Tue, Jul 04, 2023 at 01:24:17PM +0200, Hans wrote: But ne thing I could not understand, maybe someone can answer this: When Plasma5 (KDE) or any other application is creating a new mount below /media/, where does this new folder gets its ACL rules? The

Re: [partly solved] Re: mounting media in plasma5

2023-07-04 Thread Hans
Am Dienstag, 4. Juli 2023, 14:11:19 CEST schrieb Greg Wooledge: Hi Greg, yes, that is exactly the point I was looking for. As I had no clue, where t start looking at, your advice is the one. Thank yu very much! I will read and leran now, and now that I know, what is related, I will be able to g

Re: [partly solved] Re: mounting media in plasma5

2023-07-04 Thread Greg Wooledge
On Tue, Jul 04, 2023 at 01:24:17PM +0200, Hans wrote: > But ne thing I could not understand, maybe someone can answer this: > > When Plasma5 (KDE) or any other application is creating a new mount > below /media/, where does this new folder gets its ACL rules? There is no such thing as "or any ot

[partly solved] Re: mounting media in plasma5

2023-07-04 Thread Hans
Ok, after some learning phase I could solve my problem. I used getfacl and setfacl to set the correct (and wanted) rights for the required directory. And I understood, that the ACL rules are stored in special blocks of the filesystem. So far, so clear. But ne thing I could not understand, ma

Re: mounting media in plasma5

2023-07-03 Thread Max Nikulin
On 03/07/2023 20:45, Greg Wooledge wrote: Who or what mounted the device? udiskd (udisks2 package) in response to a d-bus call from GUI. There is the udisksctl(1) CLI tool as well. On an external ex4 drive it is possible to chown directories to a specific user or a group, however it would n

Re: mounting media in plasma5

2023-07-03 Thread Bob McGowan
On 7/3/23 07:36 AM, Hans wrote: An ext4 file system has its own internal Unix ownerships and permissions. When mounted, those ownerships and permissions are what determine who can read or write to each file/directory within the file system. Yes, I know. The ACL that's being added at the root di

Re: mounting media in plasma5

2023-07-03 Thread Hans
> An ext4 file system has its own internal Unix ownerships and permissions. > When mounted, those ownerships and permissions are what determine who > can read or write to each file/directory within the file system. Yes, I know. > > The ACL that's being added at the root directory of the mounted f

Re: mounting media in plasma5

2023-07-03 Thread Greg Wooledge
On Mon, Jul 03, 2023 at 04:09:23PM +0200, Hans wrote: > > If not: Can you create a new file in /media/myusername/ ? > > Nope, I can not. I was at a customer today and did an upgrade from bullseye > to bookworm and there I discvered this issue the first time, as he has a > hardrive with ext4. As

Re: mounting media in plasma5

2023-07-03 Thread Hans
Am Montag, 3. Juli 2023, 16:02:34 CEST schrieb Thomas Schmitt: > Hi, > > Hans wrote: > > getfacl /media/myusername/ > > [...] > > user:myusername:r-x > > I wonder why the desktop did not give you write permission. > Does > mount | grep /media/myusername > show option "ro" in the part of the out

Re: mounting media in plasma5

2023-07-03 Thread Hans
Ok, I learned now, that I can either clear the directory /media/myusername frm ACL, or I can set special settings with "setfacl" or deinstall acl (worst idea). But what d you suggest, should I do? I believe, there is some configuration file, where ACL are preset or preconfigured. Remember, I am

Re: mounting media in plasma5

2023-07-03 Thread Thomas Schmitt
Hi, Hans wrote: > getfacl /media/myusername/ > [...] > user:myusername:r-x I wonder why the desktop did not give you write permission. Does mount | grep /media/myusername show option "ro" in the part of the output line which is in "()" brackets ? If not: Can you create a new file in /media/myu

Re: mounting media in plasma5

2023-07-03 Thread Hans
The device is a usb-harddrive, formatted with ext4. It is connected to an usb port, and the user is mounting it using the option in plasma5 (KDE). So it is plasma5 which is mounting the device. As I did not use ACL in the past, I am just crawling through docs and the web, to learn, how to set

Re: mounting media in plasma5

2023-07-03 Thread Greg Wooledge
On Mon, Jul 03, 2023 at 03:40:22PM +0200, Hans wrote: > getfacl /media/myusername/ > getfacl: Entferne führende '/' von absoluten Pfadnamen > # file: media/myusername/ > # owner: root > # group: root > user::rwx > user:myusername:r-x > group::--- > mask::r-x > other::--- > Exchanged my r

Re: mounting media in plasma5

2023-07-03 Thread Hans
Am Montag, 3. Juli 2023, 15:16:22 CEST schrieb Thomas Schmitt: Hi Thomas, good hint! Yes, of course ACL. I forgot about it. This is the output: getfacl /media/myusername/ getfacl: Entferne führende '/' von absoluten Pfadnamen # file: media/myusername/ # owner: root # group: root user::rwx

Re: mounting media in plasma5

2023-07-03 Thread Thomas Schmitt
Hi, > drwxr-x---+  2 root root 4096 24. Jun 18:55 myusername > The device will be mounted under "/media/myusername/", but when I look. I > see owner rot and group root. And only root is allowed to read and write > into this folder. The "+" indicates the presence of ACL. What do you get from g

mounting media in plasma5

2023-07-03 Thread Hans
Hi folks, there is a little thing, I am not quite understanding: I want to mount an usb-media (harddrive) with ext4-filesystem in plasma5. When I physically connect it to an usb port, it can be automatically mounted and dolphin will open. This is working well. But I am wondering of the rights