Solved

Login .profile

Posted on 2001-06-06
5
293 Views
Last Modified: 2013-12-27
Hi- simple question I think - I have set up the .profile for the root user. This gets picked up when I telnet to the box, but not when I login on the console.

Consequently I have to telnet localhost, when logged in on the console and I start a terminal. (Or / /.profile).

Why?
0
Comment
Question by:jonke
5 Comments
 
LVL 5

Accepted Solution

by:
Nisus091197 earned 50 total points
ID: 6159973
Are you using CDE?

If so you need to set a parameter to source the .profile

Have a look at the dtprofile in /.dt.  The variable is called something like 'SOURCEDTPROFILE'.

Regards, Nisus
http://www.omnimodo.com

0
 
LVL 1

Expert Comment

by:mshivdas
ID: 6162024
When you telnet to the box, are you logging in as root?  Or are you logging in as a user and su'ing to root?
0
 
LVL 2

Expert Comment

by:festive
ID: 6162839
.profile only gets executed when you run the "login" program - if using XWindows etc then you have have to edit .dtlogin (among other files), for this functionality.
0
 
LVL 2

Author Comment

by:jonke
ID: 6176408
Cheers Nisus,this was enough to get me to the answer - the file was /.dtprofile, and the param was DTSOURCEPROFILE
0
 
LVL 2

Author Comment

by:jonke
ID: 6176409
Cheers Nisus,this was enough to get me to the answer - the file was /.dtprofile, and the param was DTSOURCEPROFILE
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now