X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=4.2 required=5.0 tests=AWL,BAYES_50 X-Spam-Check-By: sourceware.org From: "Flink, Timothy" To: "cygwin AT cygwin DOT com" Date: Wed, 16 Sep 2009 21:46:29 +0000 Subject: configuring shell for users Message-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com I am trying to modify the login shell in /etc/passwd to be a shell script i= nstead of a binary file so I can modify the commands sent non-interactively. However, when I do so, I get the following error when logging in via ssh or= "su - username": - /bin/newcmd.sh: Bad file descriptor Where /bin/newcmd.sh is the script that I am trying to run. The script itself runs OK when executed from a cygwin bash prompt and I'm n= ot sure what I'm doing wrong. Does anyone know how I can use a script as a login shell? Can anyone point me to some documentation on how the login process works fo= r Cygwin? I'm having trouble understanding exactly how things are supposed = to work and what parts of the login process I could modify. Thanks, Tim I installed cygwin 1.7 beta yesterday (9/15/09) on a Windows Server 2008 R2= Evaluation copy (6.1.7100). Package information from cygcheck is: Cygwin Package Information Package Version _update-info-dir 00829-1 alternatives 1.3.30c-10 base-cygwin 2.0-1 base-files 3.8-4 base-passwd 3.1-1 bash 3.2.49-23 bzip2 1.0.5-10 coreutils 7.0-2 crypt 1.1-1 csih 0.9.1-1 cygrunsrv 1.34-1 cygutils 1.4.0-1 cygwin 1.7.0-61 cygwin-doc 1.5-1 dash 0.5.5.1-2 diffutils 2.8.7-1 editrights 1.01-2 eventlog 0.2.9-1 findutils 4.5.4-1 gamin 0.1.10-10 gawk 3.1.7-1 gettext 0.17-11 grep 2.5.3-1 groff 1.19.2-2 gzip 1.3.12-2 ipc-utils 1.0-1 less 429-1 libbz2_1 1.0.5-10 libfam0 0.1.10-10 libgcc1 4.3.2-2 libglib2.0_0 2.20.4-1 libgmp3 4.3.1-3 libiconv2 1.13-10 libintl2 0.12.1-3 libintl3 0.14.5-1 libintl8 0.17-11 libncurses8 5.5-10 libncurses9 5.7-14 libpcre0 7.9-1 libpopt0 1.6.4-4 libreadline7 6.0.3-2 libwrap0 7.6-20 login 1.10-10 man 1.6e-1 openssh 5.2p1-4 openssl 0.9.8k-2 rebase 3.0.1-1 run 1.1.12-10 screen 4.0.3-1 sed 4.1.5-2 syslog-ng 3.0.1-1 tar 1.22-1 termcap 20050421-1 terminfo 5.7_20090228-10 terminfo0 5.5_20061104-10 texinfo 4.13-3 tzcode 2008h-1 vim 7.2.148-1 which 2.20-2 zlib 1.2.3-10 zlib-devel 1.2.3-10 zlib0 1.2.3-10 -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple