FreeBSD installed Mate desktop, using Slim as the login window, found that only Root can login normally, while other users appeared “failed to execute login command”.
solution:
copy ~/.xinitrc to /home/username/.
username is the name of the logged in user.
attached: my. Xinitrc content:
root@cheviko:/home/cheviko # vi ~/.xinitrc
#exec ck-launch-session dbus-launch mate-session
exec scim -d &
exec mate-session