[partitionmanager] [Bug 407192] Filesystems created by Partition manager are owned by root

2022-03-11 Thread Mr.Nobody
https://bugs.kde.org/show_bug.cgi?id=407192

--- Comment #36 from Mr.Nobody  ---
(In reply to Andrius Štikonas from comment #35)
> Please don't randomly reopen fixed bugs.
> 
> It clearly states that bug is fixed in version 22.04.0 and you are saying
> that you still have it on 21.12.2. So either compile the latest version from
> git repository yourself or patiently wait till your distro packages 22.04.0.

Please accept my apologies, I overlooked the fact that this was fixed in
version 22.04.0. I saw ver. 21.04.0
My mistake

-- 
You are receiving this mail because:
You are watching all bug changes.

[partitionmanager] [Bug 407192] Filesystems created by Partition manager are owned by root

2022-03-11 Thread Andrius Štikonas
https://bugs.kde.org/show_bug.cgi?id=407192

Andrius Štikonas  changed:

   What|Removed |Added

 Resolution|--- |FIXED
 Status|REOPENED|RESOLVED

--- Comment #35 from Andrius Štikonas  ---
Please don't randomly reopen fixed bugs.

It clearly states that bug is fixed in version 22.04.0 and you are saying that
you still have it on 21.12.2. So either compile the latest version from git
repository yourself or patiently wait till your distro packages 22.04.0.

-- 
You are receiving this mail because:
You are watching all bug changes.

[partitionmanager] [Bug 407192] Filesystems created by Partition manager are owned by root

2022-03-11 Thread Mr.Nobody
https://bugs.kde.org/show_bug.cgi?id=407192

Mr.Nobody  changed:

   What|Removed |Added

 CC||kar...@seznam.cz
 Resolution|FIXED   |---
 Status|RESOLVED|REOPENED

--- Comment #34 from Mr.Nobody  ---
I have this problem too, on version 21.12.2.
It's not fixed, same as in https://bugs.kde.org/show_bug.cgi?id=450620
When delete partition

STEPS TO REPRODUCE
1. Delete the partitions of a USB-drive
2. Create a new ext4 partition
3. Mount
4. Try to write on it

OBSERVED RESULT
The USB stick is read only, even after a few remounts.

When formatting in FAT32, its not read-only by default.

EXPECTED RESULT
Every partition format should be writable.

SOFTWARE/OS VERSIONS
Operating System: Manjaro KDE
KDE Plasma Version: 5.24.2
KDE Frameworks Version: 5.91.0
Qt Version: 5.15.2
Kernel Version: 5.10.102-1-MANJARO (64-bit)
Graphics Platform: X11

-- 
You are receiving this mail because:
You are watching all bug changes.

[partitionmanager] [Bug 407192] Filesystems created by Partition manager are owned by root

2022-02-20 Thread Andrius Štikonas
https://bugs.kde.org/show_bug.cgi?id=407192

Andrius Štikonas  changed:

   What|Removed |Added

 CC||amanita+kdeb...@mailbox.org

--- Comment #33 from Andrius Štikonas  ---
*** Bug 450620 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are watching all bug changes.

[partitionmanager] [Bug 407192] Filesystems created by Partition manager are owned by root

2021-12-28 Thread Michael D
https://bugs.kde.org/show_bug.cgi?id=407192

--- Comment #32 from Michael D  ---
Awesome, thanks!

-- 
You are receiving this mail because:
You are watching all bug changes.

[partitionmanager] [Bug 407192] Filesystems created by Partition manager are owned by root

2021-12-28 Thread Andrius Štikonas
https://bugs.kde.org/show_bug.cgi?id=407192

Andrius Štikonas  changed:

   What|Removed |Added

   Version Fixed In||22.04.0
 Status|CONFIRMED   |RESOLVED
 Resolution|--- |FIXED

--- Comment #31 from Andrius Štikonas  ---
Should be fixed now:

A couple of relevant PRs:
https://invent.kde.org/system/kpmcore/-/merge_requests/35/commits#7a8c185eb6a8130de17d4727b718122771038f05
https://invent.kde.org/system/partitionmanager/-/merge_requests/13
And some further fixed that are not part of PRs above.
https://invent.kde.org/system/kpmcore/-/commit/d2fb56bcd21f1acc881e70472cae31d3e1c8313b
https://invent.kde.org/system/partitionmanager/-/commit/4e5cbcdb653428ad21181c89862c9e946e8a5539
https://invent.kde.org/system/partitionmanager/-/commit/47e6d5f3d2c856bbc5bca04880cef3e29799eda9
https://invent.kde.org/system/partitionmanager/-/commit/519bea8fd5af9e5498d18dcfce63a94dcc41e65e
https://invent.kde.org/system/partitionmanager/-/commit/850ab0df40fdf043d78ee7100b8911c5d4d2a815
https://invent.kde.org/system/partitionmanager/-/commit/b9e5a055d41fb69d8665348a620869d111364c3d
https://invent.kde.org/system/partitionmanager/-/commit/c9751910e88f0d7978b1f7728a73d03b1516e196

-- 
You are receiving this mail because:
You are watching all bug changes.

[partitionmanager] [Bug 407192] Filesystems created by Partition manager are owned by root

2021-03-31 Thread PK
https://bugs.kde.org/show_bug.cgi?id=407192

--- Comment #30 from PK  ---
As I understand the fact that ext4 links owner-rights to all files stands in
the way of making a writabel-for-all usb-stick.
The methode of Ianp (comment 29) could very well be a way out. But I can
imagine that there are also users who are not member of de "admin" group.
Perhaps it would be smarter to choose a group all users are a member of. If
such a group exists.
That could be the way out, making the content of a medium be owned by a group
everybody is a member of...

-- 
You are receiving this mail because:
You are watching all bug changes.

[partitionmanager] [Bug 407192] Filesystems created by Partition manager are owned by root

2021-03-31 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=407192

--- Comment #29 from i...@gmx.net ---
I finally found a GUI way to change the permissions for non IT pros:

1. Start the program Krusader (if installed)
2. Go to Tools->"Start Root Mode Krusader"
3. Click the devices Icon to show the partition
4. Right Click it and choose Properties
5. Go to the tab Permissions
6. For Owner set your user and group "adm"
7. Set "Can view and modify content"
8. Tick "Apply to subfolders" then OK

A bit hidden and long winded. But better than nothing in an emergency.

-- 
You are receiving this mail because:
You are watching all bug changes.

[partitionmanager] [Bug 407192] Filesystems created by Partition manager are owned by root

2021-03-21 Thread Andrius Štikonas
https://bugs.kde.org/show_bug.cgi?id=407192

Andrius Štikonas  changed:

   What|Removed |Added

 CC||i...@gmx.net

--- Comment #28 from Andrius Štikonas  ---
*** Bug 434729 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are watching all bug changes.

[partitionmanager] [Bug 407192] Filesystems created by Partition manager are owned by root

2021-03-07 Thread Andrius Štikonas
https://bugs.kde.org/show_bug.cgi?id=407192

--- Comment #27 from Andrius Štikonas  ---
(In reply to Nate Graham from comment #26)
> (In reply to Andrius Štikonas from comment #24)
> > or possibly sudo chmod +w -R /partition/mount/point
> Could we have Partition Manager do this automatically if needed?

I think it should be possible. But We probably should try to determine if
device is removable first.

-- 
You are receiving this mail because:
You are watching all bug changes.

[partitionmanager] [Bug 407192] Filesystems created by Partition manager are owned by root

2021-03-07 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=407192

--- Comment #26 from Nate Graham  ---
(In reply to Andrius Štikonas from comment #24)
> or possibly sudo chmod +w -R /partition/mount/point
Could we have Partition Manager do this automatically if needed?

-- 
You are receiving this mail because:
You are watching all bug changes.

[partitionmanager] [Bug 407192] Filesystems created by Partition manager are owned by root

2021-03-07 Thread PK
https://bugs.kde.org/show_bug.cgi?id=407192

--- Comment #25 from PK  ---
Would chmod do the trick? I am by far no expert, but is chmod not made to set
the permissions of files and directories? 
Perhaps you need to change the permissions for the whole filesystem here. 
Fat32 works all the time just because there is no user-ownership of files.
Hence it makes no difference what user writes anything on what machine.

-- 
You are receiving this mail because:
You are watching all bug changes.

[partitionmanager] [Bug 407192] Filesystems created by Partition manager are owned by root

2021-03-07 Thread Andrius Štikonas
https://bugs.kde.org/show_bug.cgi?id=407192

--- Comment #24 from Andrius Štikonas  ---
(In reply to PK from comment #23)
> On my ubuntu based machine:
> - if it's a partition on your machine:
> first 
> sudo chgrp adm /media/user/NamePartition
> then
> sudo chmod g+w /media/user/NamePartition 

This looks like you are granting permissions to adm group only. This might work
for your use on your machine, but I think if you want it to work everywhere you
need
sudo chmod +w /partition/mount/point

or possibly sudo chmod +w -R /partition/mount/point

-- 
You are receiving this mail because:
You are watching all bug changes.

[partitionmanager] [Bug 407192] Filesystems created by Partition manager are owned by root

2021-03-07 Thread PK
https://bugs.kde.org/show_bug.cgi?id=407192

--- Comment #23 from PK  ---
On my ubuntu based machine:
- if it's a partition on your machine:
first 
sudo chgrp adm /media/user/NamePartition
then
sudo chmod g+w /media/user/NaamPartition 
and the reboot. The partition will be writable after this.
- the above mentioned only works on your own machine. So if it's a "mobile"
device (hdd,ssd of usb) the only way is to choose fat32 as filesystem or ntfs
if it must be bigger than 2 tb.

I have never found an other way to make it work "out the box" with ext4, f2fs,
btrfs etc. Gnome Disks can do it but I don't know how. At least in my own
experience with ext4 and usb medium.

-- 
You are receiving this mail because:
You are watching all bug changes.

[partitionmanager] [Bug 407192] Filesystems created by Partition manager are owned by root

2021-03-07 Thread Thibault Molleman
https://bugs.kde.org/show_bug.cgi?id=407192

Thibault Molleman  changed:

   What|Removed |Added

 CC||thibaultmolle...@gmail.com

--- Comment #22 from Thibault Molleman  ---
For people who come across this bug. What's the correct permission command they
should run to 'manually' set it correctly?

-- 
You are receiving this mail because:
You are watching all bug changes.

[partitionmanager] [Bug 407192] Filesystems created by Partition manager are owned by root

2021-02-16 Thread soredake
https://bugs.kde.org/show_bug.cgi?id=407192

soredake  changed:

   What|Removed |Added

 CC||ndrzj1...@relay.firefox.com

-- 
You are receiving this mail because:
You are watching all bug changes.

[partitionmanager] [Bug 407192] Filesystems created by Partition manager are owned by root

2021-02-04 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=407192

Nate Graham  changed:

   What|Removed |Added

 Ever confirmed|0   |1
   Priority|NOR |VHI
 Status|REPORTED|CONFIRMED

--- Comment #21 from Nate Graham  ---
This issue just annoyed my wife after she partitioned a new backup hard drive
she bought. The distro is KDE Neon User Edition. She commented that if I hadn't
been present, she would have thought the hard drive was broken and tried to
return it.

It would be great if we could find a solution to this issue, one way or
another. As-is, it makes partition operations require an esoteric manual step
afterwards that the average user may not be equipped to handle.

-- 
You are receiving this mail because:
You are watching all bug changes.

[partitionmanager] [Bug 407192] Filesystems created by Partition manager are owned by root

2020-12-08 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=407192

Nate Graham  changed:

   What|Removed |Added

 CC||leftcr...@tutanota.com

--- Comment #20 from Nate Graham  ---
*** Bug 430135 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are watching all bug changes.

[partitionmanager] [Bug 407192] Filesystems created by Partition manager are owned by root

2020-11-24 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=407192

Nate Graham  changed:

   What|Removed |Added

 CC||oguilhe...@protonmail.com

--- Comment #19 from Nate Graham  ---
*** Bug 423810 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are watching all bug changes.

[partitionmanager] [Bug 407192] Filesystems created by Partition manager are owned by root

2020-01-07 Thread Andrius Štikonas
https://bugs.kde.org/show_bug.cgi?id=407192

Andrius Štikonas  changed:

   What|Removed |Added

 CC||brucewwayne1...@gmail.com

--- Comment #18 from Andrius Štikonas  ---
*** Bug 415964 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are watching all bug changes.

[partitionmanager] [Bug 407192] Filesystems created by Partition manager are owned by root

2019-11-04 Thread PK
https://bugs.kde.org/show_bug.cgi?id=407192

--- Comment #17 from PK  ---
The summary of this bug reads: New partitions with these filesystems are owned
by root after creation and so cannot be written to without chown-ing first:
XFS, Btrfs, Ext4...
Yesterday I got Partition manager 4.0.0.2 on my Debian Testing box and did some
experimenting with it.
I noticed that indeed all is fine with fat32 and ntfs but also I noticed that
it still wasn't with the above mentioned filesystems.
Only I also formatted a usb-key to f2fs and that turned out to be root-owned
too!

-- 
You are receiving this mail because:
You are watching all bug changes.

[partitionmanager] [Bug 407192] Filesystems created by Partition manager are owned by root

2019-06-17 Thread PK
https://bugs.kde.org/show_bug.cgi?id=407192

--- Comment #16 from PK  ---
It would be great if you could choose if the partition would belong to root or
to you. Then you could have it exactly your way. 
Great!

-- 
You are receiving this mail because:
You are watching all bug changes.

[partitionmanager] [Bug 407192] Filesystems created by Partition manager are owned by root

2019-06-17 Thread Stefan Brüns
https://bugs.kde.org/show_bug.cgi?id=407192

--- Comment #15 from Stefan Brüns  ---
mkfs.ext4 has an extended option, "-E root_owner[=UID:GID]" to set the UID/GID.
Unfortunately, mkfs.btrfs has not.

The behavior should be selectable.

-- 
You are receiving this mail because:
You are watching all bug changes.

[partitionmanager] [Bug 407192] Filesystems created by Partition manager are owned by root

2019-06-17 Thread Patrick Silva
https://bugs.kde.org/show_bug.cgi?id=407192

Patrick Silva  changed:

   What|Removed |Added

 CC||bugsefor...@gmx.com

--- Comment #14 from Patrick Silva  ---
I have the same problem. Gparted and even mkfs.ext4 command also create an ext4
partition
owned by root. Gnome-disks is the only app that can create ext4 partition owned
by my user.

Operating System: Arch Linux 
KDE Plasma Version: 5.16.0
KDE Frameworks Version: 5.59.0
Qt Version: 5.12.3

-- 
You are receiving this mail because:
You are watching all bug changes.

[partitionmanager] [Bug 407192] Filesystems created by Partition manager are owned by root

2019-06-01 Thread Andrius Štikonas
https://bugs.kde.org/show_bug.cgi?id=407192

--- Comment #13 from Andrius Štikonas  ---
(In reply to PK from comment #12)
> This is not only the case when formatting usb media. Also when I create a
> partition on my harddrive/ssd to write (backup)data to using partition
> manager it will be read only. But when I use gnome disks it will be
> read/write, what is exactly what I want.

Yes, I agree that it makes much more sense for removable devices only.

-- 
You are receiving this mail because:
You are watching all bug changes.

[partitionmanager] [Bug 407192] Filesystems created by Partition manager are owned by root

2019-05-31 Thread PK
https://bugs.kde.org/show_bug.cgi?id=407192

--- Comment #12 from PK  ---
This is not only the case when formatting usb media. Also when I create a
partition on my harddrive/ssd to write (backup)data to using partition manager
it will be read only. But when I use gnome disks it will be read/write, what is
exactly what I want.

-- 
You are receiving this mail because:
You are watching all bug changes.

[partitionmanager] [Bug 407192] Filesystems created by Partition manager are owned by root

2019-05-30 Thread Andrius Štikonas
https://bugs.kde.org/show_bug.cgi?id=407192

--- Comment #11 from Andrius Štikonas  ---
(In reply to Stefan Brüns from comment #10)
> Permissions for filesystems supporting permission models are in general
> completely handled by the kernel, which uses the permissions of the
> filesystem.
> 
> There is no way of overriding the filesystem permissions, neither by mount
> options nor by any other means. If you want non-root access, you have to
> change the root directory of the filesystem.
> 
> The only outlier is ntfs-3g, which defaults to full access for everybody and
> optionally allows to use use e.g. the Posix permission model.

hmm, I wonder what gnome-disks does then. Maybe it runs chown user on newly
formatted USB stick. Although, I don't think it's always the right thing to do.

-- 
You are receiving this mail because:
You are watching all bug changes.

[partitionmanager] [Bug 407192] Filesystems created by Partition manager are owned by root

2019-05-30 Thread Stefan Brüns
https://bugs.kde.org/show_bug.cgi?id=407192

--- Comment #10 from Stefan Brüns  ---
Permissions for filesystems supporting permission models are in general
completely handled by the kernel, which uses the permissions of the filesystem.

There is no way of overriding the filesystem permissions, neither by mount
options nor by any other means. If you want non-root access, you have to change
the root directory of the filesystem.

The only outlier is ntfs-3g, which defaults to full access for everybody and
optionally allows to use use e.g. the Posix permission model.

-- 
You are receiving this mail because:
You are watching all bug changes.

[partitionmanager] [Bug 407192] Filesystems created by Partition manager are owned by root

2019-05-30 Thread Andrius Štikonas
https://bugs.kde.org/show_bug.cgi?id=407192

Andrius Štikonas  changed:

   What|Removed |Added

 CC||pieterkristen...@gmail.com

--- Comment #9 from Andrius Štikonas  ---
*** Bug 408105 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are watching all bug changes.

[partitionmanager] [Bug 407192] Filesystems created by Partition manager are owned by root

2019-05-17 Thread Andrius Štikonas
https://bugs.kde.org/show_bug.cgi?id=407192

Andrius Štikonas  changed:

   What|Removed |Added

 CC||nortex...@gmail.com

--- Comment #8 from Andrius Štikonas  ---
*** Bug 353651 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are watching all bug changes.

[partitionmanager] [Bug 407192] Filesystems created by Partition manager are owned by root

2019-05-12 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=407192

Nate Graham  changed:

   What|Removed |Added

 CC||stefan.bruens@rwth-aachen.d
   ||e

--- Comment #7 from Nate Graham  ---
CCing Stefan Brüns, the pseudo/de-facto maintainer these days. :)

-- 
You are receiving this mail because:
You are watching all bug changes.

[partitionmanager] [Bug 407192] Filesystems created by Partition manager are owned by root

2019-05-12 Thread Andrius Štikonas
https://bugs.kde.org/show_bug.cgi?id=407192

--- Comment #6 from Andrius Štikonas  ---
(In reply to Nate Graham from comment #5)
> So should we move this bug to frameworks-solid?

I don't know... But it would be good to know opinion of more people on who
should change permissions.

Maybe solid people would think that we shouldn't change permissions when we
mount external devices in solid.

Do you know who maintains Solid? Maybe we can add them to CC on this bug and
ask what they think?

-- 
You are receiving this mail because:
You are watching all bug changes.

[partitionmanager] [Bug 407192] Filesystems created by Partition manager are owned by root

2019-05-12 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=407192

--- Comment #5 from Nate Graham  ---
So should we move this bug to frameworks-solid?

-- 
You are receiving this mail because:
You are watching all bug changes.

[partitionmanager] [Bug 407192] Filesystems created by Partition manager are owned by root

2019-05-09 Thread Andrius Štikonas
https://bugs.kde.org/show_bug.cgi?id=407192

--- Comment #4 from Andrius Štikonas  ---
(In reply to Nate Graham from comment #2)
> This is probably a side effect of running the whole app as root. Now that
> partition manager uses polkit, hopefully that will fix or alleviate the
> issue. If not, it really should explicitly return ownership of the new
> partition to the user who has just made it.

By the way, GUI running as normal user wouldn't fix it. All operations are
still done with root privileges, e.g. sfdisk or mkfs.ext4 runs as root.

-- 
You are receiving this mail because:
You are watching all bug changes.

[partitionmanager] [Bug 407192] Filesystems created by Partition manager are owned by root

2019-05-09 Thread Andrius Štikonas
https://bugs.kde.org/show_bug.cgi?id=407192

--- Comment #3 from Andrius Štikonas  ---
(In reply to Nate Graham from comment #2)
> This is probably a side effect of running the whole app as root. Now that
> partition manager uses polkit, hopefully that will fix or alleviate the
> issue. If not, it really should explicitly return ownership of the new
> partition to the user who has just made it.

In principle I can run chown after creating the partition. But the question is
why is this partition manager's job.

Shouldn't it be the job of whatever mounts the new partition (Solid?).

Let's say user A has two computers, on one computer his UID is 1000, on
another, 1001.

If the user formats USB stick with Ext4 on the first computer, that user won't
have permissions on the other computer. Shouldn't this be done while mounting
from e.g. Dolphin/Plasma?

-- 
You are receiving this mail because:
You are watching all bug changes.

[partitionmanager] [Bug 407192] Filesystems created by Partition manager are owned by root

2019-05-09 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=407192

Nate Graham  changed:

   What|Removed |Added

 CC||n...@kde.org

--- Comment #2 from Nate Graham  ---
This is probably a side effect of running the whole app as root. Now that
partition manager uses polkit, hopefully that will fix or alleviate the issue.
If not, it really should explicitly return ownership of the new partition to
the user who has just made it.

-- 
You are receiving this mail because:
You are watching all bug changes.

[partitionmanager] [Bug 407192] Filesystems created by Partition manager are owned by root

2019-05-03 Thread Andrius Štikonas
https://bugs.kde.org/show_bug.cgi?id=407192

--- Comment #1 from Andrius Štikonas  ---
Hmm, I'm not sure if it's partition manager's responsibility to do that. It
might be whoever is mounting (Solid?).

I discussed it briefly with Fedora packager some time ago (after fedora bug was
open https://bugzilla.redhat.com/show_bug.cgi?id=1538641)
It was actually Fedora packager who thought that this is not partition
manager's responsibility.

Well, let's keep this bug open, to track this issue even though I was aware of
it.

-- 
You are receiving this mail because:
You are watching all bug changes.