On Wed, Mar 06, 2002 at 12:34:21AM +0100, Jan Nieuwenhuizen wrote: > Hi, > > Just encountered this strange error message from login: > > 00:17:39 fred@appel:~$ ssh fred@abbicci > Last login: Tue Mar 5 21:57:38 2002 from appel.flower > Fanfare!!! > You are successfully logged in to this server!!! > fred@ABBICCI ~$ login root > Password: > Last login: Tue Mar 5 23:21:09 on tty2 > Fanfare!!! > You are successfully logged in to this server!!! > login: no shell: /bin/bash: Permission denied > fred@ABBICCI ~$ ls -l /bin/bash.exe > -rwxr-xr-x 1 Administ Geen 478720 Feb 19 19:14 /bin/bash.exe > fred@ABBICCI ~$ who > root tty2 Mar 5 23:21 > fred@ABBICCI ~$ echo $USER > fred > fred@ABBICCI ~$ echo $LOGNAME > fred > fred@ABBICCI ~$ uname -a > CYGWIN_NT-5.1 ABBICCI 1.3.10(0.51/3/2) 2002-02-25 11:14 i686 unknown > > ? But it worked anyway, so it seems. This is on a fresh, curr cygwin > install.
No, it didn't work. `who' isn't the right way to get your current user name, try `id'. Basically, login is doing the following: execlp(pwd->pw_shell, tbuf, 0); fprintf(stderr, "login: no shell: "); perror(pwd->pw_shell); exit(0); So, if it couldn't execute the shell, it emits the above error message. The problem you're seeing results from your inability to change the user context. You can't do it, your account doesn't have the permission. That's normal. See /usr/doc/Cygwin/login.README. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developer mailto:[EMAIL PROTECTED] Red Hat, Inc. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/