You are not logged in.

#1 2022-04-01 06:45:41

860lacov
Member
Registered: 2020-05-02
Posts: 497

[SOLVED] Arch on a removable medium network & double password problem

1. When I try to connect to Wi-Fi with nmtui I have a popup information that I don't have access to network configuration
(my user is in wheel group)
I can connect with escalated privileges, but on my regular setup there is no need for such a thing, and I don't know why.

2. Also, I can't shut down the system without escalated privileges (I'm not in front of my system. I'll post error message later)

3. During login, I have to use password for encrypted partition two times. I read something about that some time ago but I don't remember the details.


I did an installation on Transcend JetFlash 920

I decided to go with Bios/UEFI install.

Current setup is:
partiton1 - 1M bios
partition2 - 300M EFI
partition3 - >250GB /

I wanted to try btrfs in this configuration with encryption. Wiki says that there is no full support for encrypted boot and luks2, so I decided to go with luks1
subvolumes are
@ for /
@home for /home
@cache for /var/cache

in fstab I have for partition 3

rw,noatime,compress=zstd:3,space_cache=v2,subvol=@

My grub config is:

... cryptdevice=UUID=...:cryptroot root=/dev/mapper/crtptroot rootflags=subvol=@

I'll try to post more details later but maybe you could find something weird in described configuration.

Last edited by 860lacov (2022-04-02 16:28:59)

Offline

#2 2022-04-01 07:13:50

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,696

Re: [SOLVED] Arch on a removable medium network & double password problem

Sounds like you don't end up w/ an active session (session management broken in general)

loginctl session-status

Offline

#3 2022-04-01 09:12:58

860lacov
Member
Registered: 2020-05-02
Posts: 497

Re: [SOLVED] Arch on a removable medium network & double password problem

seth wrote:

Sounds like you don't end up w/ an active session (session management broken in general)

loginctl session-status
loginctl session-status
1 - jm (1000)
	   Since: Fri 2022-04-01 13:11:59 CEST; 2min 16s ago
	  Leader: 353 (login)
	    Seat: seat0; vc1
	     TTY: tty1
	 Service: login; type tty; class user
	   State: active
	    Unit: session-1.scope
		  ├─353 "login -- jm"
		  ├─377 -bash
		  ├─410 loginctl session-status
		  └─411 -bash

kwi 01 13:11:59 transcend login[353]: LOGIN ON tty1 BY jm
kwi 01 13:11:59 transcend systemd[1]: Started Session 1 of User jm.
kwi 01 13:13:42 transcend sudo[400]: pam_systemd_home(sudo:auth): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
kwi 01 13:13:44 transcend sudo[400]:       jm : TTY=tty1 ; PWD=/home/jm ; USER=root ; COMMAND=/usr/bin/mount /dev/sda3 /mnt
kwi 01 13:13:44 transcend sudo[400]: pam_unix(sudo:session): session opened for user root(uid=0) by jm(uid=1000)
kwi 01 13:13:44 transcend sudo[400]: pam_unix(sudo:session): session closed for user root
kwi 01 13:13:51 transcend sudo[403]: pam_systemd_home(sudo:account): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
kwi 01 13:13:51 transcend sudo[403]:       jm : TTY=tty1 ; PWD=/home/jm ; USER=root ; COMMAND=/usr/bin/mount /dev/sda3 /mnt -t ntfs3
kwi 01 13:13:51 transcend sudo[403]: pam_unix(sudo:session): session opened for user root(uid=0) by jm(uid=1000)
kwi 01 13:13:52 transcend sudo[403]: pam_unix(sudo:session): session closed for user root

And when I try to do shutdown now I get:

Failed to set wall message, ignoring: Access denied
Failed to power off system via logind: Access denied
Failed to talk to init daemon.

Offline

#4 2022-04-01 11:36:29

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [SOLVED] Arch on a removable medium network & double password problem

For 1 and 2, see the optional deps of networkmanager and systemd, respectively.

Offline

#5 2022-04-01 12:07:58

860lacov
Member
Registered: 2020-05-02
Posts: 497

Re: [SOLVED] Arch on a removable medium network & double password problem

Scimmia wrote:

For 1 and 2, see the optional deps of networkmanager and systemd, respectively.

Could you please tell me which depes?

I've checked dependencies for NetworkManager and systemd.

With the names, I'm not able to tell which package I need.

I use Arch on 2 laptops and one PC, and it always worked.

Wiki says:

All users in the network group will be able to add and remove networks without a password (which means you do not have to run a Polkit authentication agent, so this option will also work in SSH sessions).

But I didn't add my user to network group on any laptop or pc I use to this group and there.

Last edited by 860lacov (2022-04-01 12:14:00)

Offline

#6 2022-04-01 12:10:04

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,696

Re: [SOLVED] Arch on a removable medium network & double password problem

https://archlinux.org/packages/core/x86_64/systemd/ wrote:

polkit (optional) - allow administration as unprivileged user

type pkexec

Offline

#7 2022-04-02 16:26:51

860lacov
Member
Registered: 2020-05-02
Posts: 497

Re: [SOLVED] Arch on a removable medium network & double password problem

Ok, thank you.
For the Wi-Fi and shutdown problem, polkit package installation helped.

And for the double password typing I found:
Encrypting_an_entire_system#Avoiding_having_to_enter_the_passphrase_twice

Offline

Board footer

Powered by FluxBB