delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/03/06/04:18:43

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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 <cygwin AT cygwin DOT com>
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: <m3eliylhc2 DOT fsf AT appel DOT lilypond DOT org>
Mime-Version: 1.0
In-Reply-To: <m3eliylhc2.fsf@appel.lilypond.org>
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/

- Raw text -


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