Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!usc!sdd.hp.com!spool2.mu.edu!uunet!mcsun!hp4nl!sci.kun.nl!cs.kun.nl!hansm From: hansm@cs.kun.nl (Hans Mulder) Newsgroups: comp.unix.admin Subject: Re: Forcing actions at login Message-ID: <2679@wn1.sci.kun.nl> Date: 23 Jan 91 15:23:10 GMT References: <6153@ecs.soton.ac.uk> <446@minya.UUCP> <1991Jan10.191546.268@am.sublink.org> <449@minya.UUCP> <1991Jan16.000012.26467@lokkur.dexter.mi.us> <1991Jan22.023543.934@melb.bull.oz.au> <1991Jan22.185016.15252@freedom.msfc.nasa.gov> Sender: root@sci.kun.nl Organization: University of Nijmegen, The Netherlands Lines: 29 In article <1991Jan22.185016.15252@freedom.msfc.nasa.gov> cornutt@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@cs.kun.nl