On Thu, 18 Aug 2005, Jerrad Pierce wrote: > It's rather frustrating that there is no chsh, or worse still that the > /etc/passwd shell is ignored and one has to resort to ugly hacks to get > a desire(d/able) shell on startup. I've seen mention of a chsh here, why > not include it? > > http://sourceware.org/ml/cygwin/2003-04/msg00532.html
This won't help until cygwin.bat uses some mechanism to coordinate with /etc/passwd. I recall proposing it before, but can't find the message in the list archives at the moment (if anyone has a pointer, please e-mail it to me). Basically, "login" does look in /etc/passwd for the shell, so I proposed a modification of login that logs in as the current user without the need to enter a password. That way, cygwin.bat can simply call "login --current" to start the user-preferred shell. Either that, or write a chsh that also changes /cygwin.bat (ugly). > Discovered for myself what's noted where as well > > http://sourceware.org/ml/cygwin/2005-07/msg00323.html > > the fact that bash is invoked directly. And switiching it to the > anaologous tcsh -l -i does not work, invalid option, so tcsh needs to be > told to source the rc files explicitly for some reason etc. Eh? From "tcsh --help": -l act as a login shell, must be the only option specified ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ "tcsh -l" works just fine. > why not have the shortcut link run login See above -- login, as implemented now, will require typing in a password. > or some such (like a terminal e.g; the old --not even listed in > obsolete--rxvt) to kick things off properly? How's this going to help? rxvt doesn't look in /etc/passwd -- it runs /bin/sh by default. > Of course that would require logging in, as well as the ability to > actually set passwords, etc. > > [EMAIL PROTECTED] /cygdrive/c]$ passwd > passwd: unknown user jpierce Your user is missing in /etc/passwd. Try "mkpasswd -u jpierce >> /etc/passwd". Once you have a correct user entry, "passwd" should work. Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ [EMAIL PROTECTED] ZZZzz /,`.-'`' -. ;-;;,_ [EMAIL PROTECTED] |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! If there's any real truth it's that the entire multidimensional infinity of the Universe is almost certainly being run by a bunch of maniacs. /DA -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/