Subject: Re: xdm lock up
To: Fujie Zhang <fzhang@nmsu.edu>
From: Dan McMahill <mcmahill@mtl.mit.edu>
List: netbsd-help
Date: 03/30/1998 13:17:15
In message <351FD943.35831AC5@nmsu.edu>, Fujie Zhang writes:
>i tried to start an X window login console. i made changes in
>/etc/rc.local file. but forget to edit the /etc/gttys file. when i tried
>to login again, i got a login window. but after i gave the login(root,
>the only account i have) and passwd, the login disappeared for a while
>and came back again. i now can't even login the system.
this should have worked if X is all ok.  You may try creating a non
root account for your self (you really should) and make sure you 
have a
.xsession file
with execute permissions that has something likeL:

xterm &
xterm &
twm

in it.  you also need a .xserverrc which looks something like
#/bin/sh
X

I think this is it.  oh, make sure /usr/X11R6/bin is in your path.
its probably not by default in the root path.  

> i tried to login
>as single user. i did log in. but i can modify any of the file. it said
>"read only file". i could not change file ownership either. chmod did
>not work. su command was not available.
>i'm in big trouble. help pls. appreciated.

When you boot single user, the file system in mounted read only by
default.

mount -a

will cause the filesystems listed in /etc/fstab to be mounted
and you should be able to write to your files.



Dan