Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site phri.UUCP Path: utzoo!watmath!clyde!cbosgd!ihnp4!pesnta!phri!roy From: roy@phri.UUCP (Roy Smith) Newsgroups: net.unix-wizards Subject: Question about uid check in csh's source command Message-ID: <2098@phri.UUCP> Date: Mon, 30-Dec-85 15:40:20 EST Article-I.D.: phri.2098 Posted: Mon Dec 30 15:40:20 1985 Date-Received: Tue, 31-Dec-85 06:23:09 EST Distribution: net Organization: Public Health Research Inst. (NY, NY) Lines: 18 I am trying to figure out a way to make csh read a system-wide .login file before reading $HOME/.login. Looking at the source for csh (/usr/src/bin/csh/sh.c) it seems all you have to do is just add one line to the startup code. Where it says: if (loginsh) { srccat(value("home"), "/.login"); } I guess I should just be able to add another call to srccat to read in /usr/lib/csh.login or something like that. Reading a bit further into the code you find out that srccat won't source a file unless it has the same uid or gid as you do. This I don't understand; why should it care? -- Roy Smith System Administrator, Public Health Research Institute 455 First Avenue, New York, NY 10016