Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!usc!julius.cs.uiuc.edu!ux1.cso.uiuc.edu!mp.cs.niu.edu!rickert From: rickert@mp.cs.niu.edu (Neil Rickert) Newsgroups: comp.unix.admin Subject: Re: Forcing actions at login Message-ID: <1991Jan23.191016.20988@mp.cs.niu.edu> Date: 23 Jan 91 19:10:16 GMT References: <1991Jan22.023543.934@melb.bull.oz.au> <1991Jan22.185016.15252@freedom.msfc.nasa.gov> <2679@wn1.sci.kun.nl> Organization: Northern Illinois University Lines: 36 In article <2679@wn1.sci.kun.nl> hansm@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. The real problem of giving everyone the home directory of /everyone is that standard methods of finding the real home directory will no longer work. For example files such as '.forward' which are examined when you are not logged in will be shared by all users. What you have to do is give everyone a different shell. That different shell changes the value of $HOME to the /everyone directory, cd's to that directory, redefines $SHELL to the real csh or sh, then exec's this shell. The shell then will execute the .login or whatever, reset the $HOME to its correct value, and you go on from there. Note that by changing the value of $SHELL, only your first interface (be it login, rsh etc) goes through this processing, but subsequently invoked shell use the user specified processing. You also have to carefully control what 'chsh' is allowed to change the shell to. Whether all this is really worth the trouble is quite questionable. -- =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*= Neil W. Rickert, Computer Science Northern Illinois Univ. DeKalb, IL 60115 +1-815-753-6940