Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic: [EN] Kwallet How do I get it working??  (Read 2848 times)

LRC1962

  • Guest
[EN] Kwallet How do I get it working??
« on: 2017/04/16, 09:09:15 »
I understand what Kwallet is meant to do.In my fantasy world I would login and behind the sences it would go to work and get everything running. In my world at loging it wants a password. Any password I have used in  setting up a wallet does not work, so what password is it looking for? then when I give up and cancel. I need to put in password for the wifi which because of the original wallet problems does not take. To get wifi working I then need to delete all wallets and then I can get wifi back working.
Googling has not been a lot of help because most help is for KDE4 and I am working with KDE5.
Is there anyway I can get Kwallet to either not do anything, or do it automatically so I do not have to continally fight this password problem.
Also is there a way to get wifi working without kde needing to do the work. It would be helpful for when I do DU.

Online ayla

  • User
  • Posts: 1.744
Re: Kwallet How do I get it working??
« Reply #1 on: 2017/04/16, 09:27:42 »
Hi,

for the kwallet problem:

After some problems getting kwallet to work I use an empty passwort (hitting enter two times when kwallet asks for its initial password and accept the warning after). I do not recomment this, for security reason. But nobody else has acces to my computers and I never ever store passwords for higher security uses (banking e.g.) so for me thats secure enough and my passwords are given with no questions from kwallet.

for the network starting without kde:

There is a thread for networking with systemd/networkd somewhere, but may be it's in german only.

greets ayla

maybe this thread can help: https://forum.siduction.org/index.php?topic=5567.msg45469#msg45469
« Last Edit: 2017/04/16, 09:31:42 by ayla »

Offline Bequimão

  • User
  • Posts: 121
Re: Kwallet How do I get it working??
« Reply #2 on: 2017/04/16, 21:05:28 »
Hi,

Your wallet must be named kdewallet, encryption blowfish and the password the same as the login password of your user. Then the wallet would be opened by pam-kwallet automatically at login just like gnome-keyring.

It is working here in Debian testing, not sid.

Code: [Select]
root@beq-stretch-kde:~# apt search pam-kwallet
Sorting... Done
Full Text Search... Done
libpam-kwallet-common/testing,now 5.8.4-1 all [installed,automatic]
  KWallet integration with PAM (common files)

libpam-kwallet4/testing 5.8.4-1 amd64
  KWallet (KDE 4) integration with PAM

libpam-kwallet5/testing,now 5.8.4-1 amd64 [installed,automatic]
  KWallet (Kf5) integration with PAM

root@beq-stretch-kde:~#

I don't recall if I modified /etc/pam.d/sddm

Code: [Select]
root@beq-stretch-kde:~# cat /etc/pam.d/sddm
#%PAM-1.0

# Block login if they are globally disabled
auth    requisite       pam_nologin.so
auth    required        pam_succeed_if.so user != root quiet_success

# auth    sufficient      pam_succeed_if.so user ingroup nopasswdlogin
@include common-auth
# gnome_keyring breaks QProcess
-auth   optional        pam_gnome_keyring.so
-auth   optional        pam_kwallet5.so

@include common-account

# SELinux needs to be the first session rule.  This ensures that any
# lingering context has been cleared.  Without this it is possible that a
# module could execute code in the wrong domain.
session [success=ok ignore=ignore module_unknown=ignore default=bad] pam_selinux.so close
# Create a new session keyring.
session optional        pam_keyinit.so force revoke
session required        pam_limits.so
session required        pam_loginuid.so
@include common-session
# SELinux needs to intervene at login time to ensure that the process starts
# in the proper default security context.  Only sessions which are intended
# to run in the user's context should be run after this.
session [success=ok ignore=ignore module_unknown=ignore default=bad] pam_selinux.so open
-session optional       pam_gnome_keyring.so auto_start
-session optional       pam_kwallet5.so auto_start

@include common-password

# From the pam_env man page
# Since setting of PAM environment variables can have side effects to other modules, this module should be the last one on the stack.

# Load environment from /etc/environment
session required        pam_env.so

# Load environment from /etc/default/locale
session required        pam_env.so envfile=/etc/default/locale
root@beq-stretch-kde:~#

Best wishes,
Bequimão

Edit:
please read further https://www.dennogumi.org/2014/04/unlocking-kwallet-with-pam/
« Last Edit: 2017/04/16, 21:27:26 by Bequimão »
Bequimão (gesprochen: Be-ki-mãu) ist Manuel Beckmann,
brasilianischer Revolutionär in Maranhão (1630 - 1685).

LRC1962

  • Guest
[Solved]Re: Kwallet How do I get it working??
« Reply #3 on: 2017/05/01, 01:43:54 »
Sorry for the very late solved response.
Took me a while to get Kawallet manager to disable itself. As far as how I use my computer it is not worth the trouble. Also in disabling it, wifi now works fine when out of desktop enviroment, which means that I can now run DU via wifi. ;D

Offline horo

  • User
  • Posts: 199
Re: Kwallet How do I get it working??
« Reply #4 on: 2017/05/01, 14:00:36 »
Hi,
another useful setting in network-manager editor in kde is to allow access for all users (located on leftmost tab), then the password is kept in /etc/NetworkManager/system-connections/* and wlan works also without kde/lxqt/... running.

Ciao, Martin
omnia vincit pecunia :(