Forcing actions at login

Hans Mulder hansm at cs.kun.nl
Thu Jan 24 02:23:10 AEST 1991


In article <1991Jan22.185016.15252 at freedom.msfc.nasa.gov> cornutt at freedom.msfc.nasa.gov (David Cornutt) writes:
>Here's an off-the-top-of-my-head suggestion; I haven't actually
>tried this.  Create a directory (call it /usr/everyone) which is
>designated as the home directory in the passwd entries.  Make it
>owned by root (or other privileged uid) and writable to no one
>except the owner.  Put a .login and a .cshrc in there containing
>the things that you want everyone to have.  [ etc. ]

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.

I'll admit that the version of Csh that comes with SunOS 4.1.1
gets this wrong.


I guess the straightforward method of including

      # Do not remove these lines, unless you know what you are doing
      source /etc/login

in everybody's .login file (or something similar in .profile) works best.
Any tactic to force unwilling users is likely to break things.


Have a nice day,

Hans Mulder	hansm at cs.kun.nl



More information about the Comp.unix.admin mailing list