🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.ibm.pc.rt
4 messages
4 total messages Started by Paul Linton Wed, 20 Dec 1989 21:20
Sytstem wide .login on RT running AIX 2.2.1
#1841
Author: Paul Linton
Date: Wed, 20 Dec 1989 21:20
13 lines
878 bytes
Hello,

   Every account on the RT here runs /bin/csh by default.  My problem
is that they do not execute /etc/profile upon login.  I could not find
anything in the manuals relating to a system wide .login (such as
/etc/login), has anyone figured this out?

Paul Linton
-- 
Paul Linton      UKCC Consultant.                University of Kentucky.
...!ukma!pjl                Lexington, Kentucky. 
pjl@ms.uky.edu, pjl@ukma.bitnet  or (different machine) plinton@ukcc
Different all twisty a of in maze are you, passages little.
Re: Sytstem wide .login on RT running AIX 2.2.1
#1842
Author: Ronald S. Woan
Date: Thu, 21 Dec 1989 15:18
27 lines
2197 bytes
In article <13530@s.ms.uky.edu>, pjl@ms.uky.edu (Paul Linton) writes:
>    Every account on the RT here runs /bin/csh by default.  My problem
> is that they do not execute /etc/profile upon login.  I could not find
> anything in the manuals relating to a system wide .login (such as
> /etc/login), has anyone figured this out?

It is strange that /etc/profile doesn't execute upon login; I'll have
to give it a try this weekend. Anyways, try the /etc/environment file
which is what I use to set global environment variables (I use ksh
though). The "Managing the AIX Operating System Manual" states:

        Before any user logs in to the system, the init process (the
main process starting the system) reads the file /etc/environment. The
init process passes variable assignments made in the /etc/environment
to each process it creates (its child processes). These variables
automatically become part of the list of exported shell variables.

The manual doesn't mention that /etc/profile is not executed when csh
is the default shell though...

                                                Ron

+-----All Views Expressed Are My Own And Are Not Necessarily Shared By------+
+------------------------------My Employer----------------------------------+
+ Ronald S. Woan  (IBM VNET)WOAN AT AUSTIN, (AUSTIN)ron@woan.austin.ibm.com +
+ outside of IBM       @cs.utexas.edu:ibmchs!auschs!woan.austin.ibm.com!ron +
+ last resort                                        woan@peyote.cactus.org +
Re: System wide .login on RT running AIX 2.2.1
#1843
Author: Ronald S. Woan
Date: Thu, 21 Dec 1989 21:25
23 lines
1930 bytes
Some people seem to have misinterpreted my reply. I did not intend to
say that /bin/csh should execute /etc/profile or ~/.profile. Boy do
people think that I am that stupid, coming from Berkeley and using
/bin/csh most of my natural life. The only real question was whether in
the init process those files were executed (which they are not) as the
/etc/environment is used to provide global environment setting by default.

The correct solution to the jolly dilemma is for the system
administrator to setup default ~/.cshrc and ~/.login files when the
account is initially setup, like the ~/.profile which is setup by
default in the out of the box AIX2.2.1. Since /bin/csh doesn't come
with the base AIX system, I guess they didn't feel it necessary to
document it in the system management manual nor create ~/.cshrc and
~/.login files automatically. /bin/ksh (for those of you who have it)
does execute /etc/profile and ~/.profile when logged in though.

					Ron

+-----All Views Expressed Are My Own And Are Not Necessarily Shared By------+
+------------------------------My Employer----------------------------------+
+ Ronald S. Woan  (IBM VNET)WOAN AT AUSTIN, (AUSTIN)ron@woan.austin.ibm.com +
+ outside of IBM       @cs.utexas.edu:ibmchs!auschs!woan.austin.ibm.com!ron +
+ last resort                                        woan@peyote.cactus.org +
Re: Sytstem wide .login on RT running AIX 2.2.1
#1844
Author: Chuck Karish
Date: Fri, 22 Dec 1989 01:24
35 lines
2174 bytes
In article <1194@awdprime.UUCP>
@cs.utexas.edu:ibmchs!auschs!woan.austin.ibm.com!ron wrote:
>In article <13530@s.ms.uky.edu>, pjl@ms.uky.edu (Paul Linton) writes:
>>    Every account on the RT here runs /bin/csh by default.  My problem
>> is that they do not execute /etc/profile upon login.

>[T]ry the /etc/environment file
>which is what I use to set global environment variables (I use ksh
>though). The "Managing the AIX Operating System Manual" states:
>
>        Before any user logs in to the system, the init process (the
>main process starting the system) reads the file /etc/environment. The
>init process passes variable assignments made in the /etc/environment
>to each process it creates (its child processes). These variables
>automatically become part of the list of exported shell variables.
>
>The manual doesn't mention that /etc/profile is not executed when csh
>is the default shell though...

The /etc/profile file is used by the Bourne shell and the Korn
shell, and is mentioned in their manual entries.  It is not used
by the C shell, and so is not mentioned in the csh manual entry.

/etc/environment does set up environment variables for use by
whatever shell is forked.  If you want to execute commands by
default, put them into a file called `/etc/login.dflt' or some such
and put the line

source /etc/login.dflt

at the beginning of each user's .login file.  Remember that .cshrc is
interpreted before .login.

	Chuck Karish		karish@mindcraft.com
	(415) 323-9000		karish@forel.stanford.edu
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads