public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: ssh logon failure
Date: Tue, 12 Nov 2013 00:54:00 -0000	[thread overview]
Message-ID: <52817C34.2080501@cygwin.com> (raw)
In-Reply-To: <1384215795240-104252.post@n5.nabble.com>

On 11/11/2013 7:23 PM, greenspan wrote:
> Furthermore, I've just discovered that I _can_ log in as the cyg_server user!

This is not recommended for normal use.

>From there, if i attempt to su to myself (user greendg1), I see this:
>
> ---
> $ su - greendg1
> su: warning: cannot change directory to //APLFS01/GREENDG1$: Not a directory
> mkdir: cannot create directory `//APLFS01': Read-only file system
> //APLFS01/GREENDG1$ could not be created.
> Setting HOME to /tmp.
> ---
>
> This utterly confuses me; I know what APLFS01 is, but not why it's part of
> this horrible mix... I'm guessing that I have an environment variable
> problem, and that depending upon how I log in and when, the environment is
> improperly set, which is causing bash to fail, which is why I get the
> "operation not permitted" error.  But this is all conjecture.
>
> What variable contains the value that bash uses (or ssh or su pass to bash)?

'ssh' gets its home directory from '/etc/passwd'.  For 'cyg_server' this
would be '/var/empty' and the shell would be '/bin/false' (now it's probably
obvious why 'cyg_server' is not meant to be used as a login account).

If you've set HOME in your Windows environment, 'su' may be picking up
on that.  But I think you're heading off into the weeds with this line
of investigation...


-- 
Larry

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

  reply	other threads:[~2013-11-12  0:54 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-06  7:04 marco atzeri
2012-06-06  8:37 ` Corinna Vinschen
2012-06-11 19:52   ` marco atzeri
2012-06-21  8:08   ` marco atzeri
2012-06-21  9:11     ` Corinna Vinschen
2012-08-13  6:03       ` thebardingreen
2012-08-14 14:15         ` marco atzeri
2012-06-07  8:55 ` DakMark
2012-06-07 10:02   ` marco atzeri
2013-08-07 17:15     ` Yuki Ishibashi
2013-08-07 17:34       ` Larry Hall (Cygwin)
2013-10-25  2:04         ` Dan Greenspan
2013-10-25  2:30           ` Larry Hall (Cygwin)
2013-11-11 23:48             ` greenspan
2013-11-12 14:32               ` George Demmy
2013-11-12  0:23             ` greenspan
2013-11-12  0:54               ` Larry Hall (Cygwin) [this message]
2013-11-13  4:16                 ` greenspan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=52817C34.2080501@cygwin.com \
    --to=reply-to-list-only-lh@cygwin.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).