Solved

Login .profile

Posted on 2001-06-06
5
292 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

746 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

13 Experts available now in Live!

Get 1:1 Help Now