In searching for a solution to a similar problem I ran across this
thread on searching egroups.  I found the solution on Dejanews.

My situation:
At boot, wanted to start a java app with no window manager and have it
respawn if dies.

kept getting the console ownership message with this inittab entry

        xu:4:once:/bin/su --login exhibitor -c /home/exhibitor/rundis
(quit the respawn deal pretty quick after encountering the problems)
I suspect it will work now.

rundis is the following script:

#!/bin/sh
export DISPLAY=:0
exec xinit &


/home/exhibitor/.xinitrc looks like this:

xpmroot /usr/X11R6/include/X11/pixmaps/my.banner.xpm
unclutter &
xset s off
nohup /java/runidisclass


/java/runidisclass is :

jre myclass > /dev/null



tried more things than I can remember, some pretty ugly

found this on deja

-----------------begin deja snip----------------------------------------
Edit the file /etc/pam.d/xserver and change the line:
  
 auth      required    /lib/security/pam_console.so
  
 to:
  
 auth      required    /lib/security/pam_permit.so
-----------------------end deja snip ------------------------

I got started on this track after several BSD users were getting the
same messages and fixed it by recompiling XFree86 without PAM

My /etc/pam.d/xserver file now looks like this :


#%PAM-1.0
auth       sufficient   /lib/security/pam_rootok.so
# commented out to allow non root access to the console without
# anyone logged in.  changed pam_console to pam_permit
#auth       required    /lib/security/pam_console.so
auth       required     /lib/security/pam_permit.so
account    required     /lib/security/pam_permit.so



BTW changing the user in the inittab entry to root worked before the
change

Several questions, begining with what is happening?  Why does this work?
there was a /var/lock/console/exhibitor file with the single character
"1" in it.  Not now.

How badly have I opened this machine up and if bad news how do I only
allow the user exhibitor to have access?

I'll try to wade through some of the PAM docs in the next few days but
any help would be appreciated.

For those of you having probs, I hope this helps.

Bret Hughes 
-----------begin copy from egroups  ---------------------------

Ok,

I can get rh6.1 to auto login to the console as <username> by adding the
following line to my inttab:


I tried to get it to startx by changing the command to:

x:3:respawn:/bin/su -- <username> -c startx

It quits respawning too fast and I get the error can't find startx

so I changed the command to:

x:3:respawn:/bin/su -- <username> -c /usr/X11R6/bin/startx

Now it can't find xauth etc.

Any one have any ideas what I am doing wrong??

TIA
Steve
begin:vcard 
n:Hughes;Bret 
tel;fax:918.587.0131
tel;work:918.587.0131
x-mozilla-html:FALSE
url:www.elevating.com
org:Elevating Communications Inc
adr:;;PO Box 1323;Tulsa;OK;74101-1323;USA
version:2.1
email;internet:[EMAIL PROTECTED]
title:Chief Solutionist/President
x-mozilla-cpt:;19888
fn:Bret  Hughes
end:vcard

Reply via email to