I setup a new NIS domain between 2 servers (NIS master - mst; NIS client - clint). The NIS domain account can ssh login to the client - clint. But it could not login to clint through GUI desktop. Even it could not login through XRDP. When doing so, it just showed a black screen and no further response.
Using clint local account, I could login to clint through both GUI desktop and XRDP. Also, I checked the NIS domain by “yptest” and “ypwhich -x” and both showed normal. I don’t know what I have missed. Could you please give some advice to me? Thanks!
The fact you get a black screen probably means the login has worked - otherwise you would get an authentication error and be returned to the login screen ?
Are there any other differences between the local account and the NIS accounts - e.g. where are the home directories for the local/NIS accounts ?
Yes, at the same time, I setup a NFS service with the same NIS master server - mst. And I export home folders to the clint as the home folders (by mount point) of the NIS accounts; while I moved the original home folder of the local account to another location (/local_home/xxx) and changed the path of the home folder stated in the passwd file with this new location.
The NIS user can login the clint through remote desktop only when I set all 3 following things (actually create another local account in clint):
Copy the content of the NIS user home folder from /home to /local_home/
Add the NIS user info. in the /etc/passwd file in clint.
Create the NIS user info. in the /etc/shadow in clint.
If only do the first 2 things, the NIS user still didn’t work to use the remote desktop in clint. I guessed there is some problem for using NIS password and shadow in GUI, but the content inside the home folder is fine for the remote desktop. So, what should it be related to?
What happens if you only do the first item in your list (Copy the content of the NIS user home folder from /home to /local_home/) ? - you will have to make sure NIS user picks up their home directory from /local_home/
I export the following 3 folders to 2 ranges of IPs.
For setting the user quota, I created a separate partition for the home folders. And I mounted it to a folder created (/CADHOME-HOME_DIR) in the fstab file as follows: