Problems logging in a user when mounting a new /home/user directory at boot time

I am using opensuse 16.0 which has changed considerably from 15.6

I have an entry in /etc/fstab to mount a new user home directory, over my old one from another drive.
#UUID=db911443-92fe-46e0-97c9-347bdc06e576 /home/user ext4 defaults 0 2

If I have this line enabled, the system boots, I can login as root and verify partitions are mounted correctly.
But if I login as user no error is given, but I am returned to the login gui screen.

I have looked at dmesg and logs but cannot find any errors.

If I comment out mounting the /home/user from the /etc/fstab as shown above , then I can login.
After that I can remove the commenting out, and type “sudo mount -a”
I can then verify the /home/user has been mounted correctly

Can anybody suggest a method to investigate this problem, so that I can see an error message in a log?

Is this system using selinux or apparmor?

Thanks.
No apparmour and yes selinux is enabled
It was installed as default, without any config changes.

user@suse>sudo sestatus
[sudo] password for user:
SELinux status: enabled
SELinuxfs mount: /sys/fs/selinux
SELinux root directory: /etc/selinux
Loaded policy name: targeted
Current mode: enforcing
Mode from config file: enforcing
Policy MLS status: enabled
Policy deny_unknown status: allowed
Memory protection checking: actual (secure)
Max kernel policy version: 33

Is directory “/home/user” actually owned by “user” and has the relevant permissions when the partition is mounted?

yes user owns /home/user and permissions are correct.

I have also moved all /home/user/.xxx directories to verify that was not a problem
And tried using an empty /home/user directory.

This mount was used with previous opensuse versions, and causes no problems with opensuse 16.0 except this one irritation .

I was hoping to move to a more technical approach and get an error message in a log.

if you have
#UUID=db911443-92fe-46e0-97c9-347bdc06e576 /home/user ext4 defaults 0 2
enabled in /etc/fstab does
ausearch -m avc,user_avc,selinux_err,user_selinux_err -ts boot
show any selinux-related problems?

Im not knowledgable on selinux , here is the response

user@suse>sudo ausearch -m avc,user_avc,selinux_err,user_selinux_err -ts boot
[sudo] password for user: 
----
time->Tue Feb  3 15:38:46 2026
type=USER_AVC msg=audit(1770133126.295:188): pid=1036 uid=496 auid=4294967295 ses=4294967295 subj=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 msg='avc:  denied  { send_msg } for  scontext=system_u:system_r:systemd_logind_t:s0 tcontext=system_u:system_r:powerprofiles_t:s0 tclass=dbus permissive=0 exe="/usr/bin/dbus-broker" sauid=496 hostname=? addr=? terminal=?'
----
time->Tue Feb  3 15:39:30 2026
type=USER_AVC msg=audit(1770133170.687:195): pid=1036 uid=496 auid=4294967295 ses=4294967295 subj=system_u:system_r:system_dbusd_t:s0-s0:c0.c1023 msg='avc:  denied  { send_msg } for  scontext=system_u:system_r:systemd_logind_t:s0 tcontext=system_u:system_r:powerprofiles_t:s0 tclass=dbus permissive=0 exe="/usr/bin/dbus-broker" sauid=496 hostname=? addr=? terminal=?'

@strangerover2002
Please, to make the pieces of computer code in your posts better consumable by technical oriented people:

And post as complete as possible. That is starting with the line with the prompt and the command, then all output, and ending with the new prompt line.
When you really feel you need to change anything in such a copy, then explain that in a comment, else we take all characters literally.

Any errors if you log in as “user” from a text shell, e.g. after Ctrl+Alt+F3 when at the GUI login?

I hope the edit is more acceptable

1 Like

I’m no expert either. However you could try

touch /.autorelabel

directly followed by a re-boot.

1 Like

cbravo: Yes text shell login fails the same

Thanks susejunky, that solved my problem.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.