Forcing actions at login
terryl at sail.LABS.TEK.COM
terryl at sail.LABS.TEK.COM
Thu Jan 24 09:29:12 AEST 1991
In article <1991Jan23.191016.20988 at mp.cs.niu.edu> rickert at mp.cs.niu.edu (Neil Rickert) writes:
>In article <2679 at wn1.sci.kun.nl> hansm at cs.kun.nl (Hans Mulder) writes:
>>
>>You really should try these things before posting them.
>>
>>It won't work on most systems, as the C shell ignores .cshrc and
>>.login files not owned by the effective uid, for security reasons.
>>
>
>You really should try these things before posting them.
>
> Many versions of C shell will execute a .login file owned by root, even if
>root is not the effective ID.
You both should look at the code before posting guesses as to what REALLY
is happening. As a matter of fact, you both can be right (but not at the same
time); the source is set up so a compile time option decides whether or not
a user's .cshrc (and .login) is source'd automagically upon shell invocation,
if that .cshrc (and .login) is owned by another user (or group; i.e. if the
groupership is the same, but ownership isn't, the file will be source'd regard-
less of the compile time option).
__________________________________________________________
Terry Laskodi "There's a permanent crease
of in your right and wrong."
Tektronix Sly and the Family Stone, "Stand!"
__________________________________________________________
More information about the Comp.unix.admin
mailing list