This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

configuring shell for users

I am trying to modify the login shell in /etc/passwd to be a shell script instead 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/ Bad file descriptor

Where /bin/ is the script that I am trying to run.

The script itself runs OK when executed from a cygwin bash prompt and I'm not 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 for Cygwin? I'm having trouble understanding exactly how things are supposed to work and what parts of the login process I could modify.



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
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:
Unsubscribe info:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]