| From | Sent On | Attachments |
|---|---|---|
| Darren Wiebe | May 11, 1999 9:50 am | |
| G. Adam Stanislav | May 11, 1999 1:24 pm | |
| unkn...@riverstyx.net | May 11, 1999 1:51 pm | |
| Dan Langille | May 11, 1999 2:01 pm | |
| unkn...@riverstyx.net | May 11, 1999 3:03 pm | |
| G. Adam Stanislav | May 11, 1999 3:46 pm | |
| Eric Hodel | May 11, 1999 7:13 pm | |
| Rick Hamell | May 11, 1999 7:17 pm | |
| unkn...@riverstyx.net | May 12, 1999 8:23 pm | |
| unkn...@riverstyx.net | May 12, 1999 8:29 pm | |
| Sue Blake | May 12, 1999 8:42 pm | |
| unkn...@riverstyx.net | May 12, 1999 9:21 pm | |
| G. Adam Stanislav | May 13, 1999 8:11 am | |
| unkn...@riverstyx.net | May 13, 1999 11:49 am | |
| K. Marsh | May 13, 1999 12:06 pm | |
| unkn...@riverstyx.net | May 13, 1999 1:27 pm | |
| The Classiest Man Alive | May 13, 1999 2:00 pm | |
| Sue Blake | May 13, 1999 2:43 pm | |
| unkn...@riverstyx.net | May 13, 1999 3:32 pm | |
| G. Adam Stanislav | May 13, 1999 4:45 pm | |
| rick hamell | May 13, 1999 7:19 pm | |
| Eric Hodel | May 13, 1999 8:02 pm | |
| Alex Kapranoff | May 14, 1999 12:34 am | |
| G. Adam Stanislav | May 14, 1999 6:41 am | |
| G. Adam Stanislav | May 14, 1999 4:46 pm | |
| Sue Blake | May 14, 1999 5:30 pm | |
| Alex Kapranoff | May 15, 1999 1:21 am | |
| G. Adam Stanislav | May 15, 1999 9:04 am | |
| G. Adam Stanislav | May 15, 1999 9:09 am | |
| Tim Vanderhoek | May 15, 1999 2:18 pm | |
| Alex Kapranoff | May 16, 1999 12:42 am | |
| G. Adam Stanislav | May 16, 1999 7:20 am | |
| Adam Szilveszter | May 16, 1999 7:50 am | |
| G. Adam Stanislav | May 16, 1999 11:45 am | |
| Adam Szilveszter | May 16, 1999 1:00 pm | |
| G. Adam Stanislav | May 16, 1999 3:03 pm | |
| Adam Szilveszter | May 16, 1999 11:19 pm | |
| Takeshi Otsuki | May 16, 1999 11:19 pm | |
| Jukka Simila | May 17, 1999 1:25 am | |
| Jukka Simila | May 17, 1999 9:28 am | |
| Adam Szilveszter | May 17, 1999 9:56 am | |
| unkn...@riverstyx.net | May 17, 1999 1:07 pm | |
| David Wolfskill | May 17, 1999 3:35 pm | |
| G. Adam Stanislav | May 17, 1999 3:43 pm | |
| Bill Swingle | May 17, 1999 4:35 pm | |
| unkn...@riverstyx.net | May 17, 1999 4:39 pm | |
| Sue Blake | May 17, 1999 4:40 pm | |
| unkn...@riverstyx.net | May 17, 1999 4:46 pm | |
| Crist J. Clark | May 17, 1999 6:52 pm | |
| Laurence Berland | May 17, 1999 7:42 pm | |
| Alex Kapranoff | May 17, 1999 9:15 pm |
| Subject: | Re: Newbie tip | |
|---|---|---|
| From: | David Wolfskill (dh...@whistle.com) | |
| Date: | May 17, 1999 3:35:23 pm | |
| List: | org.freebsd.freebsd-newbies | |
Date: Sun, 16 May 1999 22:01:21 +0200 (CEST)
From: Adam Szilveszter <szi...@petra.hos.u-szeged.hu>
Caution: As many have said here already, don't change the root shell to anything other from sh or csh because that's a really bad idea.
Why is it a bad idea?
In addition to other concerns, if one is using a network of machines under "sufficiently loose control", it may well happen that one's favorite shell isn't installed on at least one such machine.
Further, unless the login shell is listed in /etc/shells, that will cause problems if you want to change your password or use FTP. (Actually, in our environment, the former concern is an issue for the NIS server(s), rather than the individual machines being used... which I found a little surprising. I noticed it when one of my colleagues, who uses bash, tried to change his password. And another colleague had trouble using "sudo" while using bash as his shell; that cleared up after he explicitly invoked "sh", then invoked "sudo".)
One of the tricks I have taken to using to circumvent much of this is to use /bin/csh as my "login shell"... but in ~/.cshrc, I cobbled up some code that "execs" tcsh if it can be found (and if it's not already running -- that part gets a little tricky).
That way, I can use FTP, change my password, and login to various machines without being worried that my login shell won't be found, while still taking advantage of tcsh when it's available.
The logic in question looks like:
# Try to short-circuit some gunk. Only exec tcsh if interactive; bail if # doing a "which".
if ( $?prompt != 0 ) then if { test -z "$prompt" } exit if ( ! $?HOSTTYPE ) then set tcsh = `which tcsh` if ( $?tcsh && "${tcsh}" != "$SHELL" && { test -x ${tcsh} } ) then setenv SHELL "$tcsh" exec $tcsh endif endif endif
Note: please do *not* just blindly use the above. I went ahead and posted it in case someone might find it worth tearing apart and understanding... and maybe improving.
Cheers, david
-- David Wolfskill UNIX System Administrator dh...@whistle.com voice: (650) 577-7158 pager: (650) 371-4621
To Unsubscribe: send mail to majo...@FreeBSD.org with "unsubscribe freebsd-newbies" in the body of the message





