Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Login .profile

Posted on 2001-06-06
5
Medium Priority
?
304 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 150 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…
Suggested Courses
Course of the Month10 days, 16 hours left to enroll

885 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