1833131 Members
3466 Online
110051 Solutions
New Discussion

Re: login

 
SOLVED
Go to solution
jim bidebo
Regular Advisor

login

Having some problems with one of our 10.20 workstations... running NIS.

have checked so it loads the /etc/profile but after that it hangs...
what hapens after loading of the /etc/profile ?
18 REPLIES 18
jim bidebo
Regular Advisor

Re: login

can add that the same problem ocur while running su - to a user... and not with "su user"...
Animesh Chakraborty
Honored Contributor

Re: login

Hi,
See the passwd file for shell.It should look like this.
ac:*:3010:3000:Animesh,,,:/home/ac:/usr/bin/ksh
Another guess, Do you have diskquota enabled ?

Best of luck
Animesh


Did you take a backup?
Santosh Nair_1
Honored Contributor

Re: login

Jim,

I've seen this sort of problem when ksh is trying to write the user's HISTFILE to their home directory which is NFS mounted. Try modifying the HISTFILE environment variable in /etc/profile so that it points to some local filesystem, e.g. in /etc/profile add:

export HISTFILE=/tmp/.sh_history.$LOGNAME.$$

Hope this helps.

-Santosh
Life is what's happening while you're busy making other plans
jim bidebo
Regular Advisor

Re: login

it worked when i redirected the histfile...
wounder why? since it worked just the other day...

and csh works fine...
jim bidebo
Regular Advisor

Re: login

hmm.. it worked only with telnet... not with dtlogin =(

so the problem is still there...
Robin Wakefield
Honored Contributor

Re: login

Hi Jim,

Immediately after running /etc/profile, it runs $HOME/.profile. I'd put comments in your .profile, and see where it's hanging.

Rgds, Robin
jim bidebo
Regular Advisor

Re: login

can add that dtlogin works... but when your inside its imposible to get a prompt in the dtterm windows... (unless you run csh)
jim bidebo
Regular Advisor

Re: login

ive got an empty .profile, so the problem isnt there...
Alex Glennie
Honored Contributor

Re: login

try editing /etc/rc.config.d/nfsconf and add LOCKD_OPTIONS="-p 4045"

reboot or restart rpc.lockd ..... result ?
jim bidebo
Regular Advisor

Re: login

no result by changing /etc/rc.config.d/nfsconfig and restarting rpc.lockd
Alex Glennie
Honored Contributor

Re: login

Well we've tried most of the obvious stuff ..... I would suggest disabling NIS to see if a local passwd file works better / & hence see i fthis is NIS related.

What O/S is your NIS master ?

Also things to look into .... are hpterm or xterm failing too .... I suspect they are.

ensure you have the latest CDE and NIS patches installed.

I've also seen cases where this disappears as mysteriously as it appeared - no explanation found so loathe as I am to say it have you tried a reboot ?

Good luck !
jim bidebo
Regular Advisor

Re: login

NIS/NFS server running hp-ux 10.20

have tried both hpterm and xterm.. no result.

the problem occured after i upgraded the mashine with another 256MB ram, and i changed /etc/rc.config.d/LANG so it used sv_SE.iso88591 instead of C..
ive changed back to default now, whitout any result.
jim bidebo
Regular Advisor

Re: login

but since it works when running telnet or su -... (when running su -, and export DISPLAY it also works with dtterm, xterm and hpterm)
just have to make it possible to redirect .sh.history when running dtlogin aswell.. how?
Robin Wakefield
Honored Contributor

Re: login

Hi Jim,

You need to edit $HOME/.dtprofile

Rgds, Robin.
Alex Glennie
Honored Contributor

Re: login

Jim, if you don't mind trying a few more things out ....

from cmd line ( not CDE) vi $HOME/.Xdefaults : add :

dtterm*loginShell:True

wq!

login to CDE ....... open a dtterm .....result ?
jim bidebo
Regular Advisor

Re: login

.Xdefaults did help...
is there a way to apply this change system wide? (like /etc/profile)

i do guess that this doesnt solve the problem but walks around it?
Alex Glennie
Honored Contributor

Re: login

Phew ! ;)

system wide =>add loginShell resource here =>
/etc/dt/app-defaults/C/Dtterm
Alex Glennie
Honored Contributor
Solution

Re: login

ps may need to copy file/dir from /usr/dt path or similar method =>

edit /usr/dt/config/C/sys.resources both methods should work.