Operating System - HP-UX
1851062 Members
2991 Online
104056 Solutions
New Discussion

Re: Profile scripts not being executed at login

 
Nic_4
New Member

Profile scripts not being executed at login

Hi, I'm having a real strange problem on an 11i machine.
I uncommented the last line in the .dtprofile but my .profile and /etc/profile scripts are not being run at login.
When I do a "su - root" they do get executed.
Any ideas?
Thanks
Nic
4 REPLIES 4
V. Nyga
Honored Contributor

Re: Profile scripts not being executed at login

Hi Nic,

what does /.dt/startlog says?

Volkmar
*** Say 'Thanks' with Kudos ***
RolandH
Honored Contributor

Re: Profile scripts not being executed at login

Hi Nic,

you have set
#DTSOURCEPROFILE=true
to
DTSOURCEPROFILE=true

in $HOME/.dtprofile

Had the user log-in and log-out from CDE?
Is the .profile readable?

Roland

Sometimes you lose and sometimes the others win
RolandH
Honored Contributor

Re: Profile scripts not being executed at login

What I forget to mention.

You say you had made an su - root and it worked. So root has the permission to read /etc/profile and .profile without read permission. So my files look like this.

-r--r--r-- 1 root sys 5229 Apr 1 08:00 /etc/profile

and my personel .profile looks like this

-rw-r--r-- 1 rolandH admin 1569 Apr 1 08:00 .profile

So important is - both files are readable for the world.
Sometimes you lose and sometimes the others win
William Wong_2
Trusted Contributor

Re: Profile scripts not being executed at login

As noted are they logging in natively from CDE? If they are logging in from a terminal emulator such as Exceed or Reflection then you will you need to set *loginShell:true in the file /usr/dt/app-defaults/C/Dtterm. That will change it on a systemwide basis for dtterms. If you just want it for an indivdual user then you can do the following:

print "*loginShell: true" > $HOME/.Xdefaults