public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: L A Walsh <cygwin@tlinx.org>
To: "David Balažic" <xerces9@gmail.com>
Cc: cygwin@cygwin.com
Subject: Re: Conflict if same username local and in domain
Date: Thu, 29 Oct 2020 13:42:07 -0700	[thread overview]
Message-ID: <5F9B291F.7060806@tlinx.org> (raw)
In-Reply-To: <CAPJ9Yc8QBJT9yAbE6QB1TZGTWtOd8mHkgZ5534ZnnOKs0jh4bg@mail.gmail.com>

On 2020/10/29 05:39, David Balažic via Cygwin wrote:
> Hi!
>
> I started Cygwin Terminal to find out, I landed in the other users
> home folder and have no write access.
>   
----
    I have the same username, but not the same "home" directory.
The user that signs in 1st gets the short name, the 2nd login gets
the domain or system name appended like
/users/linda/local-account
/users/linda.domain/domain account.

    Both of the user names have uniq windows UUID's and I have both in my
/etc/passwd.

    The two directories SHARE many of the same files -- so both my logins
are in a common 'local' group (like 'lindaGroup'), and since the machine
is in the domain, I can create a 'domain\lindagroup' and on my local
machine, both logins are in that group -- for that matter, the domain group
is also in the local group -- so theoretically I could just put both logins
in the domain group.

Anwyay, it DOES work -- it just has to be configured right.

So you say you got /home/joe for both -- but don't they have a /user 
directory
that is different for each?

just point your /home/=>/User, or if you really want them separate, then
have /home/joe point to /Users/joe/home, and the domain should get
joe.dom so /home/joe.dom => /Users/joe.dom/home.

I started with my /home dir pointed at my the same dir as my /users dir, so
by default, windows separated them.

Both my userid and username are different -- have 2 entries in /etc/passwd:

Bliss\linda:*:5013:201:L A 
Walsh,U-Bliss\linda,S-1-5-21-33333-77777-33333-5013:/Users/linda.Bliss:/bin/bash
linda:*:1000:1015:U-Athenae\linda,S-1-5-21-188-75-11-1000:/Users/linda:/bin/bash




  reply	other threads:[~2020-10-29 20:42 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-29 12:39 David Balažic
2020-10-29 20:42 ` L A Walsh [this message]
2020-10-31 10:56   ` David Balažic
2020-11-02  3:45     ` L A Walsh
2020-11-02  6:33     ` Andrey Repin
2020-10-30  7:29 ` Andrey Repin

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=5F9B291F.7060806@tlinx.org \
    --to=cygwin@tlinx.org \
    --cc=cygwin@cygwin.com \
    --cc=xerces9@gmail.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).