Newsgroups: comp.unix.admin
Path: utzoo!utgpu!news-server.csri.toronto.edu!torsqnt!lethe!druid!darcy
From: darcy@druid.uucp (D'Arcy J.M. Cain)
Subject: Switching users from csh to sh
Message-ID: <1991May18.120324.3973@druid.uucp>
Organization: D'Arcy Cain Consulting, West Hill, Ontario
References: <bshaw.673889495@hcmv2> <1746@targon.UUCP> <FPB.91May17074443@ittc.ittc.wec.com>
Date: Sat, 18 May 91 12:03:24 GMT

In article <FPB.91May17074443@ittc.ittc.wec.com> Frank P. Bresz writes:
[Message from "something like motd question" thread deleted]

>	I am considering switching the bulk of the population from sh to
>csh just so I can more easily customize (via /etc/profile) the way I want
   [ NOTE: later post clarifies he meant csh -> sh ]
>user accounts to behave.  With over 400 users what are the chances that I
>can put something into /etc/profile to correctly switch them to
>.cshrc/.login after giving them information perhaps setting ENV variables
>or whatever.  I know I can exec csh but I can't be certain what the right
>thing to do is.  Any help appreciated.
Sounds like you are telling your users which shell they have to use.  Why
not let them have whatever shell they want and have the following line in
both /etc/profile and /etc/cshrc:
    /bin/sh startup.stuff

where startup.stuff is common login functions (motd, news, set terminal etc)
and leaves you with one place to make mods that apply to everyone.

-- 
D'Arcy J.M. Cain (darcy@druid)     |
D'Arcy Cain Consulting             |   There's no government
Toronto, Ontario, Canada           |   like no government!
+1 416 424 2871                    |
