Can not login to CDE -- only Fail Safe Session permitted


 
Thread Tools Search this Thread
Operating Systems HP-UX Can not login to CDE -- only Fail Safe Session permitted
# 8  
Old 04-07-2009
Its not picking up your host name properly:
start by looking at your /etc/hosts file:
be sure you have:
Code:
10.X.X.Y       my_host  #  your host name
127.0.0.1       localhost       loopback

Go into single user and set host and network with set_parms,
Then, edit /etc/nsswitch.conf:
and correct like:
Code:
passwd:       files
group:        files
hosts:        files [NOTFOUND=continue] dns

Then check in /etc/rc.config.d/netconf thefirst uncommented lines are:

Code:
HOSTNAME="your_hostname"
OPERATING_SYSTEM=HP-UX
LOOPBACK_ADDRESS=127.0.0.1

This file contains also your lan interface config, so you can also give a check...

Last edited by vbe; 04-07-2009 at 06:26 AM.. Reason: added code tags
# 9  
Old 04-07-2009
After, there is /var/dt/Xerrors file you could look at
And also run the script dr_dt in /usr/contrib/bin/X11 to see what it has to say about your configuration...
# 10  
Old 04-08-2009
Hi,
Thanks for the assistance with my issue. You were correct is saying that there was a problem with my host name, and it preventing me from logging into the system. I followed along with what you had suggested. I found out that the problem with the host name may have been due to the fact that it is not registered with my Internet Service Provider (ISP).

Basically what I want to use this machine for is an Internet client/ scripting/learning tool. I have a copy of Internet Explorer 5.0 for UNIX that I plan on installing on this system. Because of this I had plugged the HP-UX machine into the Internet thinking that I could configure DNS properly. My mistake....

I have a router from my ISP then I have a broadband router behind that so that I have a private network, which my HP-UX machine resides in.

Following is what I have done to the system to get it to the point that I can login again:

1. Login to fail safe session
2. Went into SAM
3. Went into Networking and Communications
4. Went into DNS (BIND)
5. Went into resolver
6. Deleted DNS Name Server for my ISP ( my host name was not registered with the ISP )

I am now able to login normally into CDE and ping my localhost, hostname, and default gateway, but of course cannot resolve names on the Internet.

.....

I now need to add a couple of DNS entries for my ISP so that my HP-UX box can resolve names and I am not sure how to do that. Can you provide any suggestions? I have tried a number of things including going back into DNS and adding entries. After I click apply I can ping unix.com and other Internet sites just fine until the next login. I then have to use a failsafe session and delete the DNS entries I just added, otherwise I cannot login again without the original issue arising.

Respectfully,

Dirk
# 11  
Old 04-27-2009
Sorry for the delay (vacation, then catching up work again...).

The best bet is your case would be to use a PC with a Knoppix Live CD (or DVD...) on the same net as your HP box, let it sort out your network stuff and configure itself, test how it accesses internet and if all works, then look how it was done: copy the information found in nsswitch.conf resolv.conf into your HP box and test...
There is no reason if a liveCD can solve your issue that you cannot do the same...
# 12  
Old 04-28-2009
Hello,

I resolved this issue a few days ago before I read your post. Your correct the machine was not picking up the host name properly. My memory is not so good and I am just a hobbiest again this is HP UX 10.2 for those reading along.

To the best of my memory what I did to resolve this was to login using fail safe mode, go into SAM then went into DNS (BIND) and added a couple of DNS entries used by my ISP. I also had to add an internal domain name. I just made something up for that.

If I am not mistaken in the portion of SAM that makes adding DNS entries possible I right clicked. Upon doing so a menu appeared that I had not seen before. This menu allowed me to configure when the host file was to be used. The way it was configured DNS was set to be used first and then if DNS failed the machine was set to do nothing. I checked a check box which told it to use the host file after DNS failed and it resolved the issue I had.

My host file has my host name, local host, and default gateway only.

Sorry I am such a novice.

I am now able to surf the Internet using IE5 on this vintage machine (Visualize C240) Of course most sites require a newer browser with java support, I did download java for IE5 for Unix it is a depot file? Have not got around to installing it yet.

Anyway I can login and logout just fine now, no core file is produced and I don't have to login using fail safe mode any longer.


Dirk
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Login Access fail

Hi, I need some help regarding login issue. I have to use 8 server. The username is same at all. But when i was trying to access for particular 4 server. I got access denied error. Please help .... Note: If i change my password by using root user. then I can able to enter into the same server.... (6 Replies)
Discussion started by: Mani_apr08
6 Replies

2. Red Hat

webmin login fail

Hi all, I got error, when i logged with webmin. please show me the way how can i login with webmin (4 Replies)
Discussion started by: mastansaheb
4 Replies

3. HP-UX

Fail safe during login.....

hi, i want to ask about why after im log in from CDE, it appears a pop up stated that i must go to Failsafe Session from the login screen's option menu and log in..... can anyone help??:) (2 Replies)
Discussion started by: ameer88
2 Replies

4. HP-UX

Start SAM in TUI from CDE session

how can i start sam in TUI mode from a CDE session. i'm using hp-ux 11iv3 i tried to start SAM from a terminal from CDE session but each time i try to start it System Managment Homepage starts , so i telneted to server from a pc to start sam in TUI mode is there any other way to set my SAM to... (2 Replies)
Discussion started by: h@foorsa.biz
2 Replies

5. Shell Programming and Scripting

Determining if session is a login session

Besides 'who am i' and 'tty' what commands could be used to determine if a session is interactive as compared to a web process or cron process. Any command should work with the common unix variants. (3 Replies)
Discussion started by: jgt
3 Replies

6. UNIX for Advanced & Expert Users

Xserver connect and run CDE session from Windows PC

Hope someone can help. I have 5 Unix Tru64 ver 4.0/5.1B, boxes and I'm trying to connect and run CDE session from my PC. I have tried using Reflections, and Xming with no luck. Can someone tell me what exactly needs to be running on the Tru64 boxes in order for this to work. Along with what or how... (4 Replies)
Discussion started by: Troberts50
4 Replies

7. Solaris

Not able to login through JDS but able to login through CDE

Dear All I am in a strange situation where I have install the Solaris 10 5/08 OS on Netra 1280 server. When I connect it through my laptop so that I can take the GUI from xmanager. When I try to login as root or any other users also through Java Destop Environment which accepted it after few... (3 Replies)
Discussion started by: girish.batra
3 Replies

8. Solaris

I am not able to login in gnome session and java session in Sun solaris 9& 10

I am not able to login in gnome session and java session in Sun solaris 9& 10 respectively through xmanager as a nis user, I am able to login in common desktop , but gnome session its not allowing , when I have given login credentials, its coming back to login screen, what shoul I do to allow nis... (0 Replies)
Discussion started by: durgaprasadr13
0 Replies

9. Solaris

How do I establish a remote CDE or JDS session on Solaris 10?

As stated above in the title "How do I establish a remote CDE or JDS session on Solaris 10?" What I would like to do is be able to login to and use the machine remotely using either the CDE or JDS, preferably with out having to use a VNC, and be able to use the pretty GUI, instead of exclusively... (11 Replies)
Discussion started by: ultra0384
11 Replies

10. AIX

No Keyboard in CDE session

Hi, AIX 5.3 , no Graphical adapter no Keyboard..... I set up CDE to start without graphical boot, dtlogin process is running, when start a xserver from Cygwin to access this box. I can't login, because I have no Keyboard. The Mouse works fine, but when I try to type in the username or... (1 Reply)
Discussion started by: hookerxy
1 Replies
Login or Register to Ask a Question