Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!sdd.hp.com!wuarchive!uwm.edu!bionet!agate!usenet.ins.cwru.edu!gatech!psuvax1!psuvm!barilvm!bimacs!yedidya From: yedidya@bimacs.BITNET (Yedidya Israel) Newsgroups: comp.unix.admin Subject: Re: Forcing actions at login Message-ID: <2876@bimacs.BITNET> Date: 17 Feb 91 06:07:34 GMT References: <6153@ecs.soton.ac.uk> <446@minya.UUCP> <1991Jan10.191546.268@am.sublink.org> <449@minya.UUCP> <1991Jan16.000012.26467@l Reply-To: yedidya@bimacs.UUCP (Yedidya Israel) Organization: Bar-Ilan University, Israel. Lines: 30 In article <1991Jan22.185016.15252@freedom.msfc.nasa.gov> cornutt@freedom.msfc.nasa.gov (David Cornutt) writes: >Heres an off-the-top-of-my-head suggestion; I havent 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. Then, have the .login, >as the last thing that it does, source a script which looks up >the users *real* home directory in a list somewhere, cds to it and >sets the HOME variable to it, and then sources the users .login >and .cshrc (if you want). This way, the users can still have their >personalized logins if you want to let them do that, and you dont >have to cut off their write access to their own home directories. > >Possible problems with this approach: [three of them deleted] Add this one 4) "cd ~someone" will change directory to /usr/everyone (or what else you call it). -- | Israel Yedidya, Math & CS Department, Bar-Ilan U, Ramat-Gan, ISRAEL. | +----------------------------------------------------------------------+ | Internet: yedidya@bimacs.biu.ac.il Bitnet: yedidya@bimacs | | Uucp: ...!uunet!mcvax!humus!bimacs!yedidya | \----------------------------------------------------------------------/ \--- If someone proves there is no God, I'll stop being religious ---/ --------------------------------------------------------------------