Operating System - HP-UX
1833834 Members
2426 Online
110063 Solutions
New Discussion

Can't lock authorization file

 
SOLVED
Go to solution
Michael_318
Occasional Advisor

Can't lock authorization file

I recently installed Enware/Netstation v9.11 and followed the instructions on this page http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&admit=-682735245+1057776637270+28353475&docId=200000064900479 to configure it for autologin. The problem that I am having is every time that I attempt to log in using an XTerminal, the XTerm mouse cursor freezes and eventually goes back to the server select screen. The following xdm error is generated every time along with it: can't lock authorization file /home/operator/.Xauthority or backup /usr/lib/X11/xdm/.Xathora07917
9 REPLIES 9
Alex Glennie
Honored Contributor
Solution

Re: Can't lock authorization file

OK Disable autologin, log into CDE via the xterminal. Then try disabling "Client authorize" on the Xterminal. To do this
Hold down [F12] --> Select "Xserver"
and disable "Client authorize" button (and even "Access control"). While you're there I'd also cp /usr/dt/config/Xconfig -> /etc/dt/config/Xconfig and uncomment the line

Dtlogin*authorise: False, reenable autologon and bounce dtlogins process eg /sbin/init 2 or a /sbin/init.d/dtlogin.rc stop/start

if the above fails remsh xterminalname get config and log details would be handy.
Michael_318
Occasional Advisor

Re: Can't lock authorization file

I'm still getting this error, but now I renamed .Xauthority just to check if it was bad and it doesn't even attempt to recreate it. One thing did change now, the XTerminal no longer freezes before returning to the server select screen, it just goes.
Alex Glennie
Honored Contributor

Re: Can't lock authorization file

log and config details ?

is the user operator logged on elsewhere and/or shares their $HOME ?

ll .Xauthority ?

ps -ef ?? grep X
Michael_318
Occasional Advisor

Re: Can't lock authorization file

I attached a picture of a telnet session with the ps -ef | grep X results. Its not possible to remsh onto the Xterminal because it does not have any hard disk drives, it is an NCD NC900 model. Right now Access Control is off but I couldn't find a Client Authorize button and the F12 method did not work. I had to get to the config through Shift+Break. The $HOME directory is shared and the local machine and the XTerminal would use it as their home. ".Xauthority" does not exit and is not generated by an attempted login. BTW, a previous unresolved error on my system was:

/bin/sh[15]: xauth: not found

That might be a part of it too, but xauth is on the computer.
Alex Glennie
Honored Contributor

Re: Can't lock authorization file

Why did you install netstation v9.11 or make reference to it .... NCD900's use NCDware ?

If this were an hp xterminal you would be able to remsh onto it and I do beleive this is also possible via ncdware too, it's not necesary to have a hard drive it stores the info in the eeprom etc

eg remsh hpwina24 get config
#
# Remote Config File for terminal hpwina24
# Dumped on Thu Jul 10 10:11:46 2003
R3 Compatible = false
# Loopback (1) DHCP Client Identifier =
Font Caching = true


As to the F12 method only works on hpux entria and Envizex's.

As to what to try next,I would advise you only attempt this test with a single user logged in.

Also I saw your post yesterday and I'm not convinced this is possible with ncd boxes or rather I would suspect an eqiguivalent file to enwares /opt/hpxt/enware/newconfig/xdm-conf needs to be created and editted accordingly. I searched under /usr/tekxp etc and did not find anything that looked relevant .... I maybe wrong and this is a Xauthortiy issue only still ?

Michael_318
Occasional Advisor

Re: Can't lock authorization file

Sorry, I am Unix stupid, I only started it last month. I heard the people around me only calling the NCD boxes XTerms and never the HP system. I'll do all the operations onto the HP computer and let you know of the results, but how do I get to the Client Authorize and Access Control buttons on the HP system without the F12 option?
Michael_318
Occasional Advisor

Re: Can't lock authorization file

I guess I also explained the problem wrong. The HP system has no trouble what-so-ever getting into the graphical environment, but the NCD Terminal would normally have a list of XDMCP servers in which my HP system is displayed. Normally you click the system you want to log into and the CDE login comes up asking for user name then password and I wanted to bypass this. So I tried solution 1 on http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&admit=-682735245+1057848353830+28353475&docId=200000064900479 and that gives any user the GID of root, which is very undesiable. So I tried solution 2 on that page and since then I can no longer reach anything beyond the login screen.
Alex Glennie
Honored Contributor

Re: Can't lock authorization file

I wouldn't say that , I was merely trying to establish what h/w is involved here and also give an explanation to my answers/opinions.

Strictly speaking the NCD900's are xterminals an xterm in my book is a
terminal emulator for the X Window System.



how do I get to the Client Authorize and Access Control buttons on the HP system without the F12 option ..... you won't be able to ... this mechanism is only available on HP xterminals.

Looking at the doc you quoted Solution 2 makes use of a file installed as part of HP's xterminal s/w for use with HP Xterminals only, as per my previous post I could not find a similar file which is part of the NCDWare s/w installed in /usr/tekxp and thus I'm not sure this can be done wrt NCD Xterminal .... you may get some clues via the tech pages at http://www.ncd.com ?
Michael_318
Occasional Advisor

Re: Can't lock authorization file

Well, I've been trying numerous different methods to try and get this to work via my boss' instructions. I'm a summer intern so I came here and bam! They sat me down in front of Unix and I had to pick it up as I went along. My boss is still convinced that this is a fairly easy thing to do, but from my understanding now it's anything but that. Thank you for my help, and if I ever figure this out I'll be sure to post it all over the net so no one else to go thru this hassle.