Hello, I have a laptop and am currently using 2 hard drives (Solus on one and Salix the other). When I boot into Salix and try to open the Solus partition i get "Failed to mount Solus" Not authorized to perform operation. I've tried mounting through the terminal mount /dev/sda2 and get can't find sda2 in fstab. I've tried editing fstab the following way /dev/sda2 / ext4 defaults 0 2 & /dev/sda2 / ext4 defaults 0 2 without luck.
Is there a way to get the partition to automount other than editing fstab? I cannot find gnome-disk-utility. Would this work?
Salix 14.2 partition issue
Re: Salix 14.2 partition issue
copy paste this in a terminal
add your user to polkitd group
log out and log in again or reboot
open file manager and click on any partition to open it.
Edit: This has been reported to slackware team on April. I never got a responce.
It was also reported to salix main lists but we thought that slackware will solve it before slackware 14.2 will be released.
Code: Select all
sudo cat <<EOF >> "/etc/polkit-1/rules.d/49-nopasswd_global.rules"
/* Allow members of the wheel group to execute any actions
* without password authentication, similar to "sudo NOPASSWD:"
*/
polkit.addRule(function(action, subject) {
if (subject.isInGroup("wheel")) {
return polkit.Result.YES;
}
});
/* Allow members of the polkitd group to execute any actions
* without password authentication, similar to "sudo NOPASSWD:"
*/
polkit.addRule(function(action, subject) {
if (subject.isInGroup("polkitd")) {
return polkit.Result.YES;
}
});
EOF
log out and log in again or reboot
open file manager and click on any partition to open it.
Edit: This has been reported to slackware team on April. I never got a responce.
It was also reported to salix main lists but we thought that slackware will solve it before slackware 14.2 will be released.
Re: Salix 14.2 partition issue
Thank you!! Worked like a charm!
Re: Salix 14.2 partition issue
Does this have any security implications - that is, what does "any actions" mean? It sounds as though the user effectively has permanent superuser powers, not just mounting rights.
I had to create and edit the file manually - that is, the copy paste didn't work, though maybe if I'd used touch to do so first, it would have.
I had to create and edit the file manually - that is, the copy paste didn't work, though maybe if I'd used touch to do so first, it would have.
Re: Salix 14.2 partition issue
The first user created at installation time has full privileges by default. (superuser). To be able to mount partitions have to been added to polkitd group.
The second, third etc user which does not belong to wheel group has no superuser privileges. This user can be added only to polkitd group to just mount partitions.
I think
can be removed.
The second, third etc user which does not belong to wheel group has no superuser privileges. This user can be added only to polkitd group to just mount partitions.
I think
Code: Select all
/* Allow members of the wheel group to execute any actions
* without password authentication, similar to "sudo NOPASSWD:"
*/
polkit.addRule(function(action, subject) {
if (subject.isInGroup("wheel")) {
return polkit.Result.YES;
}
});
Re: Salix 14.2 partition issue
It seems fine in practice, anyway. That is, I still need to enter my password as expected!