Question about uid check in csh's source command
Roy Smith
roy at phri.UUCP
Tue Dec 31 06:40:20 AEST 1985
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 <allegra!phri!roy>
System Administrator, Public Health Research Institute
455 First Avenue, New York, NY 10016
More information about the Comp.unix.wizards
mailing list