🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc.rt
Article #1844

Re: Sytstem wide .login on RT running AIX 2.2.1

#1844
From: 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
Technical Details
Message-ID: <7855@portia.Stanford.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!purdue!decwrl!shelby!portia!forel!karish
References: <13530@s.ms.uky.edu> <1194@awdprime.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!purdue!decwrl!shelby!portia!forel!karish
From: karish@forel.stanford.edu (Chuck Karish)
Newsgroups: comp.sys.ibm.pc.rt
Subject: Re: Sytstem wide .login on RT running AIX 2.2.1
Summary: csh doesn't support it explicitly
Keywords: use /etc/environment for variables
Message-ID: <7855@portia.Stanford.EDU>
Date: 22 Dec 89 01:24:18 GMT
References: <13530@s.ms.uky.edu> <1194@awdprime.UUCP>
Sender: USENET News System <news@Portia.stanford.edu>
Reply-To: karish@forel.stanford.edu (Chuck Karish)
Organization: Mindcraft, Inc.
Lines: 35