Forcing actions at login
Yedidya Israel
yedidya at bimacs.BITNET
Sun Feb 17 17:07:34 AEST 1991
In article <1991Jan22.185016.15252 at freedom.msfc.nasa.gov> cornutt at 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 at bimacs.biu.ac.il Bitnet: yedidya at bimacs |
| Uucp: ...!uunet!mcvax!humus!bimacs!yedidya |
\----------------------------------------------------------------------/
\--- If someone proves there is no God, I'll stop being religious ---/
--------------------------------------------------------------------
More information about the Comp.unix.admin
mailing list