Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Newbie question: can't get .profile to run

Status
Not open for further replies.

ladato

Programmer
Jun 5, 2002
48
I'm not an AIX admin, nor do I play one on TV. I've set up a user using smit, using values from another user as my guide.

When I log in as the new user, I cannot get the commands in .profile to run. I have tried chmod-ing it to 777. ownership is user/staff which is the same group that everyone else's .profile is set to.

The commands in the .profile are pretty simple. Set the path, run a shell script, set an alias (dir="ls-Fal").

If I run the .profile interactively (after login), the commands are set fine. If I put the commands in another shell script, they also run fine. It's just the .profile that seems to be a problem.

Am I missing something rediculously obvious?

Thanks in advance!
Leon
adatole@yahoo.com

Leon Adato (adatole@yahoo.com)
Measure what is measurable,
And make measurable what is not so.
- Galileo
 
Thanks for the fast reply!

The user is set to ksh (/bin/ksh) which I verified was there, and that the $SHELL variable is set to /bin/ksh also.

Leon

Leon Adato (adatole@yahoo.com)
Measure what is measurable,
And make measurable what is not so.
- Galileo
 
OK, this is getting stupider than I thought.

When I use a regular telnet (WindowsNT command), the .profile runs.

When I use an Exceed session (Telnet using REXEC) then it doesn't. That means something is wrong with the Exceed session, so I'll troubleshoot it from that direction.

Sorry to have bothered everyone.
Leon

Leon Adato (adatole@yahoo.com)
Measure what is measurable,
And make measurable what is not so.
- Galileo
 

Leon,
it's because only login shells run .profile.

I don't know what you mean by Telnet running Rexec, but if you login with Exceed, open your .dtprofile and uncomment the last line saying something about sourcing profile. That will do it.

Cheers

Henrik Morsing
Certified AIX 4.3 Systems Administration
& p690 Technical Support
 
I'm having the same problem. It's the way exceed logs you in. I haven't found a way to fix that in 6 years. I don't use a .dtprofile so I can't fix it tha way. Any more ideas??
 
lblauen, I've never seen Exceed work without a .dtprofile. Are you sure you aren't using one?
 
I used Exceed for 3.5 years and never used a .dtprofile. Only had my .profile which was read upon login.

I am not sure of the settings with REXEC but I don't think that is what I was using. Also make sure your setting is for AIX.

Sorry, but I was downsized and no longer can look to see what my Exceed setting were. [thumbsdown]
 
Just to chime in here, I'm using Exceed version 8 on AIX 4.3.3. There is one (count them, ONE) item on Yahoo/Google from Feb 2002 that says this is a known issue at IBM, but no update after that.

I'm trying to set up an REXEC session to spawn an X-Window.

No matter what I do, including the .dtprofile uncomment, the session will not start.

If I start using Telnet to spawn an X-Window, it runs but no .profile/.dtprofile executes.

If I start using REXEC (or Telnet) to spawn a terminal emulation window, .profile runs but I can't launch other X-Windows apps.

Hopefully this is still making sense.
Leon

Leon Adato (adatole@yahoo.com)
Measure what is measurable,
And make measurable what is not so.
- Galileo
 
Are you using aixterm in your exceed command line when you setup your client connection?
 
I wasn't, I was using Xterm. However, AIXTerm isn't making any difference.

The full command string is:
@(AIXTerm, method-stdappdb) -display @d&@;

The error is:
rexecd: 0826-604 The login is not correct

Leon

Leon Adato (adatole@yahoo.com)
Measure what is measurable,
And make measurable what is not so.
- Galileo
 
I used telnet (not rexec, I believe) and the command string was something like:

/usr/lib/X11/bin/aixterm -font rom11 -ls -T hostname -display @d:

Something like that. As I said, I no longer have access to exceed to check the command string, but using that I was able to run X apps from my workstation using a telnet connection to the server.
 
try an alt to Exceed:
I use most of the defaults, including "telnet". PuTTY also does SSH if you use that. No GUI though, so no X Windows.

I am able to get colors through ViM (syntax highlighting) using aixterm through PuTTY, however it does not work on AIX 5.1.0-03 for some reason.

Not sure if that is your issue but you could at least see if you have the same trouble with a different X client (PuTTY).

IBM Certified -- AIX 4.3 Obfuscation
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top