What is the diff between polkit and pam?

|
DocFaizaL 2022-08-16 20:55:37
Haven’t imagined that it will run like bare metal
DocFaizaL 2022-08-16 21:15:17
Artix-s6-Lxde boots in 3 sec in VM
Solrac00 2022-08-16 21:17:15
Guys is it normal that even with a polkit authenticator I can’t run poweroff without having su privileges?
grakata_clem 2022-08-16 21:20:05
Solrac00 2022-08-16 21:17:15
Guys is it normal that even with a polkit authenticator I can’t run poweroff without having su privileges?

Set suid

capezotte 2022-08-16 21:30:44
Solrac00 2022-08-16 21:17:15
Guys is it normal that even with a polkit authenticator I can’t run poweroff without having su privileges?

yes, you’re looking for loginctl poweroff

ItsZariep 2022-08-16 21:48:45
Solrac00 2022-08-16 21:17:15
Guys is it normal that even with a polkit authenticator I can’t run poweroff without having su privileges?

loginctl

AndrewBenn 2022-08-16 21:53:10
Cubik65536 2022-08-16 20:46:13
Upgrading the package doesn’t help, is there any good ways to figure out what caused the freeze?

You might post on the web forum – more users may chime in to help than here.

Solrac00 2022-08-16 21:58:04
ItsZariep 2022-08-16 21:48:45
loginctl

Oh ok, I thought it was included with elogind

Cubik65536 2022-08-16 22:14:07
AndrewBenn 2022-08-16 21:53:10
You might post on the web forum – more users may chime in to help than here.

Okay, thanks

Marc 2022-08-16 22:36:13
which of these should be explicitly enabled: dbus, udev, elogind, poilkitd ?
ChrisCromer 2022-08-16 22:41:34
All
Marc 2022-08-16 23:33:23
i dont think so
ChrisCromer 2022-08-16 23:51:16
Dbus is used by everything, udev for hardware, elogind handles sessions, and polkit handles elevating privileges…. So yes, you need all of them working and running…
Senderman 2022-08-16 23:54:25
what is the diff between polkit and pam? I tried to google it, but there’s no understandable answer..
ChrisCromer 2022-08-16 23:59:02
For exmaple polkit is what allows me to mount a pen drive or another partition on my hard drive without needing to type my password.
ChrisCromer 2022-08-17 00:00:15
Because normally mount can only be done by root or someone with the disk group.
ChrisCromer 2022-08-17 00:01:46
But polkit allows actions to be performed by non root users. Obviously in controlled fashion. It doesn’t give them full root access, just access to mount.
ChrisCromer 2022-08-17 00:03:14
pam is for authentication and sessions, polkit is for privilege escalation, they are not related
Senderman 2022-08-17 00:04:03
thanks, I think now I understand it
DocFaizaL 2022-08-17 00:05:19
just want to ask one question,can i stop libvirtd,virtlockd,and virtlogd after exiting VM
Senderman 2022-08-17 00:05:47
yes
ChrisCromer 2022-08-17 00:05:55
DocFaizaL 2022-08-17 00:05:19
just want to ask one question,can i stop libvirtd,virtlockd,and virtlogd after exiting VM

If you have no VMs running… Obviously. πŸ€¦πŸ»β€β™‚

DocFaizaL 2022-08-17 00:06:28
ChrisCromer 2022-08-17 00:05:55
If you have no VMs running… Obviously. πŸ€¦πŸ»β€β™‚

ok

Rougreh 2022-08-17 04:49:36
ItsZariep 2022-08-16 19:42:25
see, im runing a vm with virt-manager

slackware?

Senderman 2022-08-17 05:51:21
DocFaizaL 2022-08-16 19:34:47
ohh so kvm+qemu can’t run on runit

use ftp or ssh to share files

Senderman 2022-08-17 05:51:59
since I run windows VMs I just run vsftpd server on host
ItsZariep 2022-08-17 06:20:05
Rougreh 2022-08-17 04:49:36
slackware?

slackware

Alex 2022-08-17 07:38:14
Hotel? Trivago
ItsZariep 2022-08-17 07:40:17
Alex 2022-08-17 07:38:14
Hotel? Trivago

wat

ItsZariep 2022-08-17 07:40:20
very old meme
qontinuum 2022-08-17 07:41:31
Senderman 2022-08-17 05:51:21
use ftp or ssh to share files

Or 9p or that other shared filesystem that eats my server RAM

ItsZariep 2022-08-17 07:42:29
Senderman 2022-08-17 05:51:21
use ftp or ssh to share files

virt-manager has a built-in shared folders

qontinuum 2022-08-17 07:43:47
qontinuum 2022-08-17 07:41:31
Or 9p or that other shared filesystem that eats my server RAM

Ah virtiofs

qontinuum 2022-08-17 07:44:49
ItsZariep 2022-08-17 07:42:29
virt-manager has a built-in shared folders

It is libvirt that does it using virtiofs or 9p
https://libvirt.org/kbase/virtiofs.html

libvirt: Sharing files with Virtiofslibvirt.org
libvirt, virtualization, virtualization API
ItsZariep 2022-08-17 07:45:25
qontinuum 2022-08-17 07:44:49
It is libvirt that does it using virtiofs or 9p
https://libvirt.org/kbase/virtiofs.html

iirc, virt-manager is configured for 9p

|