Hi I goto yast control >user and group management>Add set name and password and check box “use Encrypted home Directory” and set 800MB for size home and Peres Ok.now for me created new user with encrypted home. but when login with new user home encrypted after enter password not login and freez screen. why? I don’t use lvm.
Here’s something to try:
After rebooting, use CTRL-ALT-F1 to get a virtual console session.
Login as root.
Use the command
# modprobe loop
logout.
Use CTRL-ALT-F7 to get back to the graphic login screen.
Does login work now?
(If that helps, then things can be setup so that these extra steps are not needed).
I do that your command but not login
i try login with virtual console session
show this
error
journalctl -b
kernel: [drm] UVD initialized successfully.
Jan 21 21:31:29 linux-Tak kernel: [drm] ib test on ring 0 succeeded in 0 usecs
Jan 21 21:31:29 linux-Tak kernel: [drm] ib test on ring 1 succeeded in 0 usecs
Jan 21 21:31:29 linux-Tak kernel: [drm] ib test on ring 2 succeeded in 0 usecs
Jan 21 21:31:29 linux-Tak kernel: [drm] ib test on ring 3 succeeded in 0 usecs
Jan 21 21:31:29 linux-Tak kernel: [drm] ib test on ring 4 succeeded in 0 usecs
Jan 21 21:31:29 linux-Tak kernel: [drm] ib test on ring 5 succeeded
Jan 21 21:31:39 linux-Tak login[992]: pam_unix(login:session): session closed for user root
Jan 21 21:31:39 linux-Tak systemd[1430]: pam_unix(systemd-user:session): session closed for user root
Jan 21 21:31:52 linux-Tak login[1585]: pam_unix(login:session): session opened for user test100 by LOGIN(uid=0)
Jan 21 21:31:52 linux-Tak systemd[1587]: pam_unix(systemd-user:session): session opened for user test100 by (uid=0)
Jan 21 21:31:53 linux-Tak login[1585]: **(mount.c:68): Messages from underlying mount program:**
Jan 21 21:31:53 linux-Tak login[1585]: **(mount.c:72): /usr/sbin/mount.crypt: dmcrypt cipher ignored for LUKS volumes**
Jan 21 21:31:53 linux-Tak kernel: device-mapper: uevent: version 1.0.3
Jan 21 21:31:53 linux-Tak kernel: device-mapper: ioctl: 4.31.0-ioctl (2015-3-12) initialised: dm-devel@redhat.com
Jan 21 21:31:55 linux-Tak kernel: EXT4-fs (dm-0): mounting ext3 file system using the ext4 subsystem
Jan 21 21:31:55 linux-Tak kernel: EXT4-fs (dm-0): mounted filesystem with ordered data mode. Opts: (null)
Jan 21 21:31:55 linux-Tak login[1585]: LOGIN ON tty1 BY test100
Jan 21 21:32:13 linux-Tak login[1585]: pam_unix(login:session): session closed for user test100
Jan 21 21:32:13 linux-Tak systemd[1589]: pam_unix(systemd-user:session): session closed for user test100
Jan 21 21:32:22 linux-Tak login[1705]: pam_unix(login:session): session opened for user root by LOGIN(uid=0)
Jan 21 21:32:22 linux-Tak systemd[1711]: pam_unix(systemd-user:session): session opened for user root by (uid=0)
Jan 21 21:32:22 linux-Tak login[1705]: **ROOT LOGIN ON tty1**
Jan 21 21:32:56 linux-Tak login[1705]: pam_unix(login:session): session closed for user root
Jan 21 21:32:56 linux-Tak systemd[1713]: pam_unix(systemd-user:session): session closed for user root
Jan 21 21:32:59 linux-Tak kernel: [drm] probing gen 2 caps for device 8086:c01 = 261ad03/e
Jan 21 21:32:59 linux-Tak kernel: [drm] PCIE gen 3 link speeds already enabled
Jan 21 21:32:59 linux-Tak kernel: [drm] PCIE GART of 1024M enabled (table at 0x0000000000277000).
Jan 21 21:32:59 linux-Tak kernel: radeon 0000:01:00.0: WB enabled
If you are unable to login as root at the command line, then you might have a graphics driver problem.
I don’t have radeon experience that could help. I’ll have to hope that someone else picks this up.
I can login as root and normal user at the command line but can’t login with another created user encrypted home
Did you try my suggestion – namely, login as root at the command line, and then try
modprobe loop
Does that fix login for a user with encrypted home directory (at least until the next boot)?
I have two users in the opensuse–1 main user and normal --2 encrypted home user --i created second user with yast control (first my post)I can’t login with second user because . checked encrypted home directory and set size 800Mb
yes after login root as command and input modprobe loop then logout and try login user encrypted but not login
I guess you should file a bug report.
I don’t have much personal experience with this. I use encrypted partitions, but not the specific encrypted home directory. I recall other reports of people have problems with the “loop” module not being loaded.
I have same issue i had to solve it adding loop.conf in /etc/modules-load.d with loop in it, and editing sddm & sddm-autologin in /etc/pam.d replacing with
auth optional pam_mount.so
auth requisite pam_nologin.so
auth include common-auth
account include common-account
password include common-password
session required pam_loginuid.so
session include common-session
session optional pam_mail.so standard
session optional pam_cryptpass.so
session optional pam_mount.so
on it, i hope to be helpful, thanks
It works with the addition of these settings. Thanks Jesulinico.
Now the “sddm” does not freeze the screen when trying to log in with a user with the encrypted Home user - directory (folder).
I do not use the autologin. So it was only necessary to change the " /etc/pam.d/sddm " file.
Opensuse Leap 42.1 - KDE Plasma 5 - new user Home encrypted directory (folder) by YAST.
/etc/modules-load.d/loop.conf
loop
/etc/pam.d/sddm
#%PAM-1.0
auth include common-auth
account include common-account
password include common-password
session required pam_loginuid.so
session include common-session
#New encrypted home user directory
auth optional pam_mount.so
auth requisite pam_nologin.so
session optional pam_mail.so standard
session optional pam_cryptpass.so
session optional pam_mount.so