Operating System - HP-UX
1828225 Members
2578 Online
109975 Solutions
New Discussion

Re: Problem with DT Login.

 
SOLVED
Go to solution
Mani Vannan
Advisor

Problem with DT Login.

Hi everyone,

I've got a problem with one of our Workstations running CDE on HP UX 11.11.

The Workstation, was out of use for more than a month and now only the root user is allowed DT Login & when normal users try for DT access, the screen simply hangs, and the login screen returns to the console after a while.

When I tried changing the UID of an user to "0", and then tried for DT access, it perfectly works fine. I've checked the disk space on the user's home directory, and it's just 60 % full.

Could anyone please guide me as to what could be the possible problem.

Thanks a million.
21 REPLIES 21
RAC_1
Honored Contributor

Re: Problem with DT Login.

What does syslog file say?? May be at DT, only root is allowed to login.
There is no substitute to HARDWORK
Sameer_Nirmal
Honored Contributor

Re: Problem with DT Login.

Hi Mani,

CDE usage is seems to be restricted only to "root" & uid 0.

Check /etc/dt/config/Xsession.d/*.nologin
& /etc/dt/config/Xstartup files for login restrictions.

Similarly check following logs files
/var/dt/Xerrors
$HOME/.dt/errorlog
$HOME/.dt/startlog

CDE Guide is at
http://docs.hp.com/en/B1171-90162/index.html
Robert-Jan Goossens_1
Honored Contributor

Re: Problem with DT Login.

Hi Mani,

Could you post the errors from the file $HOME/.dt/errorlog of one of these users ?

Regards,
Robert-Jan
Mani Vannan
Advisor

Re: Problem with DT Login.

Hi RAC,

These are the following lines I was able to look in the Sylog file, related to dt.

Mar 17 19:24:37 akinnaa0 inetd[864]: dtspc/tcp: Added service, server /usr/dt/bin/dtspcd

Mar 17 19:24:37 akinnaa0 inetd[864]: rpc.cmsd/udp: Added service, server /usr/dt/bin/rpc.cmsd

Mar 17 19:24:37 akinnaa0 inetd[864]: rpc.ttdbserver/tcp: Added service, server /usr/dt/bin/rpc.ttdbserver

Plus, I got a message like this:

Mar 17 19:27:15 akinnaa0 syslog: libtt[1733]: ttdt_Xt_input_handler(): tttk_mess
age_receive(): TT_ERR_NOMP^INo ttsession process is running, probably because tt
_open() has not been called yet. If this code is returned from tt_open() it mean
s ttsession could not be started, which generally means ToolTalk is not installe
d on this system.

Can you please help me to interpret something possibly wrong ?

Thanks.
Mani Vannan
Advisor

Re: Problem with DT Login.

Hi Robert,

These are the contents of the errorlog files from the .dt dir of an user home dir.


*** INFORMATION(0): dtwm: PID 2407: Fri Mar 17 19:58:33 2006
Workspace Manager: Menu specification UserMenu not found


*** [119]

*** STDERR(1): (/usr/dt/bin/dtexec) /etc/dt/scripts/cdeexit: PID 2582: Fri Mar 17 19:59:51 2006
rm: .trashinfo non-existent

*** [124]

*** STDERR(1): (/usr/dt/bin/dtexec) /etc/dt/scripts/cdeexit: PID 2582: Fri Mar 17 19:59:51 2006
rm: /home/mz35h6/.dt/Trash/* non-existent

*** [138

Please advise.

Thanks.
Mani Vannan
Advisor

Re: Problem with DT Login.

Hi Sameer,

I've checkout all the files you've mentioned and found the following in startlog in the users .dt dir, which reads:
--- Fri Mar 17 19:58:28 IST 2006
--- /usr/dt/bin/Xsession starting...
--- Xsession started by dtlogin
--- sourcing /home/mz35h6/.dtprofile...
--- sourcing /usr/dt/config/Xsession.d/0010.dtpaths...
--- sourcing /usr/dt/config/Xsession.d/0020.dtims...
--- sourcing /usr/dt/config/Xsession.d/0030.dttmpdir...
--- sourcing /etc/dt/config/Xsession.d/0040.xlock...
--- sourcing /usr/dt/config/Xsession.d/0040.xmbind...
--- sourcing /usr/dt/config/Xsession.d/0060.srcsysenv...
--- sourcing /etc/dt/config/Xsession.d/xsession.ugs...
--- starting /usr/dt/bin/dthello &
--- starting /usr/dt/bin/dtsearchpath -ksh
--- starting /usr/dt/bin/dtappgather &
--- execing /usr/dt/bin/dtsession using /home/mz35h6/.profile...
Not a terminal
stty: : Not a typewriter
stty: : Not a typewriter
[3g H H H H H H H H

Thanks,
Victor Fridyev
Honored Contributor

Re: Problem with DT Login.

Hi,

DT usually is very sensitive to errors in startup files.
Please try to rename temporarily the user's .profile and .kshrc files an try to log in.
Additionally you can remove .dt directory in the users home directory. In 90% of cases this helps.

HTH
Entities are not to be multiplied beyond necessity - RTFM
Robert-Jan Goossens_1
Honored Contributor

Re: Problem with DT Login.

Hi Mani,

Chech the permissions of the /etc/hosts file

-r--r--r-- 1 bin bin 616 Jul 1 16:03 /etc/hosts

# nslookup hostname
# nslookup ip_of_hostname

the output of both commands should be the same.

Regards,
Robert-Jan
Senthil Kumar .A_1
Honored Contributor

Re: Problem with DT Login.

Hi,

First check what robert has suggested. Apart from that you need to perform a small test following reasons.

"dtwm: PID 2407: Fri Mar 17 19:58:33 2006
Workspace Manager: Menu specification UserMenu not found
"

The above error points something is missing. Assuming that there are some config files missing for already existing normal user, we might have to confirm for new users.

create a test user and test his DT.that is...

useradd -m test
passwd test

By this I'm just eliminating a possibilty of config file missing/corruption issue. By creating new user, a .dt dir will be created under his home dir, with the available config templates which is in /usr and /etc dir. If the DT works for this new user, then we might have to think of a workaround of purging the DT's of existing normal users and fixing it with right ones.

regards,
Senthil Kumar .A
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Alex Glennie
Honored Contributor

Re: Problem with DT Login.

If only root can login also check permissions and ownernship of /tmp.

consider running dr_dt and examining the output, and perhaps comments on what levels of CDE customisation on a per user basis and in terms of in-house cleanup routines might be of use here.
Mani Vannan
Advisor

Re: Problem with DT Login.

Hi all,

Per Robert's Suggestion, I've checked out the file permissions, and is set to 0444. Further, the nslookup command displays the same output for both the ip and the hostname.

Senthil,

I tried creating a new user (test) and tried DT access thro' the new Id, but it didn't work. Also, even after all the Processes of the user (test) had been killed, the user is still listed in w -s. There are no processes of the user test displayed when ps -ef | grep is issued, but I'm unable to even start a remote Xsession.

Can you please help me trouble shoot this ?

Thanks.
Robert-Jan Goossens_1
Honored Contributor

Re: Problem with DT Login.

Mani,

try to run the script dr_dt

# /usr/contrib/bin/X11/dr_dt

post the Error messages.

Best regards,
Robert-Jan
Mani Vannan
Advisor

Re: Problem with DT Login.

Hi Robert,

I ran the dr_dt found under /usr/contrib/bin/X11 and found a few discrpancies and corrected them, but still I recieve the following error & I'm attaching the error screenshot herewith.

The dr_dt output had 0 errors and 11 warnings, & i've corrected all of them.

Please help me to fix this,

Thanks a lot.
Robert-Jan Goossens_1
Honored Contributor

Re: Problem with DT Login.

Mani,

Are your users sharing one homedirectory ? What kind of shell are they using ?

Robert-Jan
Mani Vannan
Advisor

Re: Problem with DT Login.

Hi Robert,

All the users, share a common home directory, except the root and the startup shell would be /usr/bin/sh.

(the lv containing the /home dir is just 60% full). I even tried creating a new user with a different home dir and that too fails.

Would be glad to provide any further info which you want.

Thank you very much.
Robert-Jan Goossens_1
Honored Contributor

Re: Problem with DT Login.

Hi,

I don't think sharing one homedirectory is supported for CDE. Try to create a user with a different local homedirectory, and try try to start CDE again.

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=85458

Regards,
Robert-Jan
Robert-Jan Goossens_1
Honored Contributor
Solution

Re: Problem with DT Login.

Take a look at this doc.

Title: How to allow multiple users to use the same homedir with CDE 2.*
Document ID: KBRC00005693

Europe
http://www5.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000080093121

US
http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000080093121
Mani Vannan
Advisor

Re: Problem with DT Login.

Hi Robert,

Than you for the info !

I tried creating a new user, with a different home directory, and now the CDE login works, but takes yeons to log in. Plus I got this error,
_____________________________________________

...Warning: Missing charsets in
String to FontSet conversion
Warning: Cannot convert string "-dt-interface system-medium-r-normal-s*-*-*-*-*-
*-*-*-*" to type FontSet
Warning: Missing charsets in String to FontSet conversion
Warning: Cannot convert string "-dt-interface user-medium-r-normal-s*-*-*-*-*-*-
*-*-*" to type FontSet
_____________________________________________

But still, the root login works perfectly fine. Can you please advise me on this.

Thank you very much.
Robert-Jan Goossens_1
Honored Contributor

Re: Problem with DT Login.

Mani Vannan
Advisor

Re: Problem with DT Login.

Hi Robert,

The CDE ran very slow, and I had to log a call with HP to solve this. The solution provided by HP worked out, but really out of scope for guessing.

They asked me to remove /etc/resolv.conf and asked me to rename /etc/nsswitch.files to /etc/nsswitch.conf and remove the older nsswitch.conf.

It worked really fine, and then I came to know that our DNS server was not reachable throu' resolv.conf and nsswitch.conf had to be changed.

Everything works fine now. Anyway, Thank you very much for your support.

Also thank everyone for great support.

Bye.
Mani Vannan
Advisor

Re: Problem with DT Login.

Hi all,

Thank you very much for ur support. I never thought that the problem could be with the name service switch. Just understand that, without an indepth understanding of unix internals, it's really hard to trouble shoot.

Once again, thanks a lot for support.