Solved XDM rejects my login. >->

masayoshi only has .xinitrc.
user2 does not both .xsession and .xinitrc.
Without XDM setting, we can see windowmanager.
If I use XDM setting, I mean,after edditing /etc/ttys, XDM reject us.
Why?


masayoshi@virtualbox:~ % ls -al

Code:
total 86
drwxr-xr-x  10 masayoshi  masayoshi    28 Mar 26 16:51 .
drwxr-xr-x   6 root       wheel         6 Mar 26 12:58 ..
-rw-------   1 masayoshi  masayoshi     0 Mar 25 07:38 .ICEauthority
-rw-------   1 masayoshi  masayoshi     0 Mar 26 16:51 .Xauthority
drwxr-xr-x   7 masayoshi  masayoshi     7 Mar 25 05:40 .cache
drwxr-xr-x   8 masayoshi  masayoshi     9 Mar 25 07:38 .config
-rw-r--r--   1 masayoshi  masayoshi  1080 Mar 25 05:31 .cshrc
drwx------   3 masayoshi  masayoshi     3 Mar 25 05:34 .dbus
drwxr-xr-x   5 masayoshi  masayoshi    14 Mar 26 16:49 .fluxbox
drwx------   2 masayoshi  masayoshi     2 Mar 25 05:34 .gvfs
-rw-------   1 masayoshi  masayoshi  7429 Mar 26 16:50 .history
drwxr-xr-x   3 masayoshi  masayoshi     3 Mar 25 05:34 .local
-rw-r--r--   1 masayoshi  masayoshi   254 Mar 25 05:31 .login
-rw-r--r--   1 masayoshi  masayoshi   163 Mar 25 05:31 .login_conf
-rw-------   1 masayoshi  masayoshi   379 Mar 25 05:31 .mail_aliases
-rw-r--r--   1 masayoshi  masayoshi   336 Mar 25 05:31 .mailrc
drwx------   4 masayoshi  masayoshi     4 Mar 25 05:38 .mozilla
-rw-r--r--   1 masayoshi  masayoshi   802 Mar 25 05:31 .profile
-rw-------   1 masayoshi  masayoshi   281 Mar 25 05:31 .rhosts
-rw-------   1 masayoshi  masayoshi  1024 Mar 26 16:49 .rnd
-rw-r--r--   1 masayoshi  masayoshi   978 Mar 25 05:31 .shrc
-rw-r-----   1 masayoshi  masayoshi     6 Mar 25 07:40 .vboxclient-clipboard.pid
-rw-r-----   1 masayoshi  masayoshi     6 Mar 25 07:40 .vboxclient-draganddrop.pid
-rw-r-----   1 masayoshi  masayoshi     6 Mar 25 07:40 .vboxclient-hostversion.pid
-rw-r-----   1 masayoshi  masayoshi     6 Mar 25 07:40 .vboxclient-seamless.pid
-r--------   1 masayoshi  masayoshi    36 Mar 26 16:45 .xinitrc
-rw-------   1 masayoshi  masayoshi    36 Mar 26 16:51 .xsession-errors
drwxr-xr-x   2 masayoshi  masayoshi     2 Mar 25 05:34 Desktop


masayoshi@virtualbox:~ % cat .xinitrc


Code:
#!/bin/sh
exec startfluxbox
exec $1


masayoshi@virtualbox:~ % ls -al /home/user2/


Code:
total 51
drwxr-xr-x  3 user2  user2    14 Mar 26 16:51 .
drwxr-xr-x  6 root   wheel     6 Mar 26 12:58 ..
-rw-------  1 user2  user2     0 Mar 26 16:51 .Xauthority
drwxr-xr-x  3 user2  user2     3 Mar 26 16:50 .cache
-rw-r--r--  1 user2  user2  1055 Mar 26 12:58 .cshrc
-rw-r--r--  1 user2  user2   254 Mar 26 12:58 .login
-rw-r--r--  1 user2  user2   163 Mar 26 12:58 .login_conf
-rw-------  1 user2  user2   379 Mar 26 12:58 .mail_aliases
-rw-r--r--  1 user2  user2   336 Mar 26 12:58 .mailrc
-rw-r--r--  1 user2  user2   802 Mar 26 12:58 .profile
-rw-------  1 user2  user2   281 Mar 26 12:58 .rhosts
-rw-------  1 user2  user2  1024 Mar 26 16:50 .rnd
-rw-r--r--  1 user2  user2   978 Mar 26 12:58 .shrc
-rw-------  1 user2  user2    36 Mar 26 16:51 .xsession-errors
 
Thank you.
XDM accepts me.


masayoshi@virtualbox:~ % less /home/masayoshi/.xsession-errors


Code:
exec: /usr/local/bin/xsm: not found


masayoshi@virtualbox:~ % sudo pkg install xsm


Code:
Updating FreeBSD repository catalogue...
FreeBSD repository is up-to-date.
All repositories are up-to-date.
The following 1 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
   xsm: 1.0.3

Number of packages to be installed: 1

36 KiB to be downloaded.

Proceed with this action? [y/N]: y
Fetching xsm-1.0.3.txz: 100%   36 KiB  36.9kB/s    00:01   
Checking integrity... done (0 conflicting)
[1/1] Installing xsm-1.0.3...
[1/1] Extracting xsm-1.0.3: 100%
 
But I am using xsm now. My .xinitrc is ignored.
As I am very tired to solve this problem.
I modyfied /usr/local/lib/X11/xdm/Xsession.
Code:
#       exec /usr/local/bin/xsm
        exec /usr/local/bin/fluxbox
"/usr/local/lib/X11/xdm/Xsession" 43 lines, 898 characters

Then, I can see fluxbox.

When I read Handbook ,I though that it was very easy to use XDM. >->
 
While you can modify /usr/local/lib/X11/xdm/Xsession, it's better not to, because it has scripts that let you use .xsession, read .xsession-error, and have other important tasks.
 
Back
Top