1825922 Members
2957 Online
109689 Solutions
New Discussion

Login Profiles

 
SOLVED
Go to solution
TMcB
Super Advisor

Login Profiles

I am trying to replicate one system onto a new one, and it has been going surprisingly well - I've managed to cpy over all the users, group, printers, home directories and so on.

There is only one thing I cant get the same.
On the original server, regardless of which user I log in as (even as root) as small scipt is run which sets a few custom variables and echos this back. I cannot find reference to this anywhere.

Eg, for root - the two .profiles are exactly the same (the original HP .profiles).
Is there some other path as well as this that the system runs when a user logs in.

Any help is very greatly appreciated.
5 REPLIES 5
Rainer von Bongartz
Honored Contributor
Solution

Re: Login Profiles

what about the system wide /etc/profile ?????
This gets executed for every user
He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
Alex Glennie
Honored Contributor

Re: Login Profiles

also how are they logging in .... CDE or from the command line ?

CDE could be using the .dtprofile ?

What shell are you using ? do the users have a .cshrc, .kshrc file lurking in their $HOME dirs ?
Herve BRANGIER
Respected Contributor

Re: Login Profiles

Hi,

If you use CDE to login you need to uncomment
a line in .dtprofile to read .profile at login:

DTSOURCEPROFILE=true

Regards,

Herve

Victor_5
Trusted Contributor

Re: Login Profiles

Typically, three scripts execute during the login process to initialize the environment. First is a system wide script, then is a local login script, and the last one is additional local login script. The names vary from shell to shell. See the list:

-----------------------------------------------
csh POSIX
system login /etc/csh.login /etc/profile
script

local login $HOME/.login $HOME/.profile
Script

additional $HOME/.cshrc $HOME/.kshrc
----------------------------------------------


TMcB
Super Advisor

Re: Login Profiles

Thanks everyone for the help.
It was the /etc/profile file that needed copied over.

Much appreciated