delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/01/16/21:29:59

X-Spam-Check-By: sourceware.org
Date: Wed, 17 Jan 2007 13:29:31 +1100 (EST)
From: Luke Kendall <luke DOT kendall AT cisra DOT canon DOT com DOT au>
Subject: Login shell?
To: cygwin <cygwin AT cygwin DOT com>
MIME-Version: 1.0
Message-Id: <20070117022932.4A899842EF@pessard.research.canon.com.au>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

A long time ago, we had the weird problem that Cygwin users who used zsh
as their main shell, would find that the .zprofile (or whatever it's
called) would not be run at login - but only if their home directory had
been created by Cygwin's mkdir!  (It *would* run if their $HOME
directory had been created by Windows explorer!)

Despite examining closely with Windows GUI tools and getfacl/setfacl,
we couldn't resolve the problem.  But Michael Wardle, a subscriber
on this list, kindly provided shell.c (on Mar 24 2005, I think), which
opened /etc/passwd, found the user's preferred shell, and started that
(falling back to /bin/bash by default in case of problems).

So I changed our Cygwin startup .bat file to run shell.exe instead of
the hard-coded "bash --login -i", and all was well.

I just want to confirm, that the traditional Cygwin way of achieving
this same result is still to modify cygwin.bat on a PC-by-PC basis
(assuming one user per PC), rather than to take the traditional Unix
way and change the shell field in /etc/passwd?

Or has some other system been instituted?  Sorry, I'm a bit out of
touch.

luke



--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019