This is the mail archive of the cygwin@cygwin.com 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]

Re: login: no shell: /bin/bash: Permission denied


Corinna Vinschen <cygwin@cygwin.com> writes:

>> ?  But it worked anyway, so it seems.  This is on a fresh, curr cygwin
>> install.
>
> No, it didn't work.
>
> 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.

Ok, thanks, you're right:

    fred@ABBICCI ~$ login root
    Password:
    Last login: Tue Mar  5 23:27:42 on tty2
    Fanfare!!!
    You are successfully logged in to this server!!!
    login: no shell: /bin/bash: Permission denied
    fred@ABBICCI ~$ id
    uid=1009(fred) gid=513(Geen)
    groups=0(Iedereen),513(Geen),545(Gebruikers)

>  That's normal.

Hmm, so much for google.  You adviced to use login before,

  http://www.cygwin.com/ml/cygwin/2001-03/msg00337.html

have things changed since then?

> See /usr/doc/Cygwin/login.README.

  Under NT/2K/XP, login(1) is _not_ supposed to work on the command line
  to change user context!  Though you're able to tweak user permissions
  to get login(1) working that way, that's NOT officially supported.
  
Ok, so how *do* you change user context?

Greetings,
Jan.

-- 
Jan Nieuwenhuizen <janneke@gnu.org> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien       | http://www.lilypond.org


--
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/


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