This is the mail archive of the
mailing list for the Cygwin project.
Re: login: no shell: /bin/bash: Permission denied
Corinna Vinschen wrote:
> 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: ");
> So, if it couldn't execute the shell, it emits the above error
> 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.
You imply that somebody has the ability to change user context! If so
then who is that somebody (USER)?
It's my understanding that the only thing(s) that use login are things
Frustrated by the lack of su(1M)!
Oh, BTW, here's a potential security problem:
$ rsh hosta id
uid=1370(adefaria) gid=513(Domain Users) groups=0(Everyone),512(Domain
$ rsh hosta -l otheruser id
uid=1269(otheruser) gid=513(Domain Users) groups=0(Everyone),513(Domain
How did I rsh as another user and not be prompted for a password?
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html