I have installed Rocky 9.5 on a workstation which is an NFS client to a 9.3 nfs server. I did execute setsebool -P use_nfs_home_dirs 1.
The client runs IPA for user credentials.
When I try to log in as a user whose home directory is on the server, an error screen appears (after acceptance of the password), and you have to press return and log out. But using ssh into the client from another machine works fine, and I can modify files as the user.
I disabled IPA, and created a local entry in the passwd file, but to no avail.
So users with local home directories can log in on the console into Gnome, but not users with NFS home directories (unless you just use ssh from another machine).
Any ideas?
So when you ssh into the machine the home directories get mounted just fine?
To rule out selinux completely, set it to permissive mode setenforce 0 and try to log in. If it works, you need to examine selinux logs in /var/log/audit or with aureport -a. Don’t forget to set the enforcing mode back.
You can also login to the console and observe the logs as they are generated with journalctl -f and simulnatously try to login with your nfs user and see if there is anything interesting in the logs.
Yes, the nfs mount is fine, and using ssh for the nfs user is fine.
Turning off SELINUX did not help.
Looking at the journal helped solve the problem: as the users were logging in, in their .cshrc file, we had "source"d a GROMACS setup file, that was built using a non-standard gcc version, so the library path had this custom gcc’s paths added, which several GNOME programs found first, and crashed.