Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Wed, 6 Mar 2002 10:14:33 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: login: no shell: /bin/bash: Permission denied Message-ID: <20020306101433.P13590@cygbert.vinschen.de> Mail-Followup-To: cygwin AT cygwin DOT com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.22.1i 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 AT appel:~$ ssh fred AT abbicci > Last login: Tue Mar 5 21:57:38 2002 from appel.flower > Fanfare!!! > You are successfully logged in to this server!!! > fred AT 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 AT ABBICCI ~$ ls -l /bin/bash.exe > -rwxr-xr-x 1 Administ Geen 478720 Feb 19 19:14 /bin/bash.exe > fred AT ABBICCI ~$ who > root tty2 Mar 5 23:21 > fred AT ABBICCI ~$ echo $USER > fred > fred AT ABBICCI ~$ echo $LOGNAME > fred > fred AT 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:cygwin AT cygwin DOT com 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/