Page 1 of 1

[SOLVED] Howto change permissions acessing partitions

PostPosted: Jul 8th, '13, 10:38
by Erik
On my harddisk I have several partitions that I want to be able to access without being asked for the root password. I have been looking everywhere (I believe), and have even changed permissions in org.freedesktop.udisks.policy in order to achieve it. It irritates me that polkit bosses over me and tells me what I can customize and what not. In older versions of policykit there was a GUI to enable me to customize the permissions. This GUI has disappeared. I cannot uninstall polkit with install and remove software.

How can I become boss again in my own computer?

Greetings,

Erik.

Re: Howto change permissions acessing partitions

PostPosted: Jul 8th, '13, 15:45
by djennings
what file system do the partitions have?
Are they removable?
Are they listed in /etc/fstab ?

Re: Howto change permissions acessing partitions

PostPosted: Jul 8th, '13, 16:06
by Erik
All partitions are ext4.

One of them has PCLinuxOS. There I can open the other partitions without a root password.

Thanks

Erik

Re: Howto change permissions acessing partitions

PostPosted: Jul 8th, '13, 16:15
by djennings
Erik wrote:All partitions are ext4.

One of them has PCLinuxOS. There I can open the other partitions without a root password.

Thanks

Erik

If you have entries in /etc/fstab for them then they will mount at boot.
Any files on them which are owned by your PCLinuxOS user will only be readable to your users if you either have the same UID/GID numbers in Mageia and PCLinuxOS, or else you make your Mageia user a menber of the same group as the PCLinuxOS users. You can do that using userdrake in Mageia Control Centre.

Re: Howto change permissions acessing partitions

PostPosted: Jul 8th, '13, 20:06
by doktor5000
Check viewtopic.php?f=41&t=5148 for what you want - no fstab entries needed.
But that doesn't solve the problem of unix permissions, as djennigs mentioned.

Re: Howto change permissions acessing partitions

PostPosted: Jul 8th, '13, 21:32
by Erik
Dear DJennings and Doktor5000,

I tried the fstab solution and the script solution. Both work. In PCLinuxOS fstab does not contain all partitions. So the permissions problem must be somewhere in the polkit files. I adopted the solution with the polkit user.d files. It seems to me that KDE ought to make a program with a GUI in which teh user can customize the permissions himself. After all what is the logic of having a desktop environment with so many customizing options in its system settings programs, but without a program that sets system-wide settings.

I am grateful to you both and will file both your solutions under the head of "tweaks".

Thank you very much.

Erik