delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:subject:to:references:from:message-id:date | |
:mime-version:in-reply-to:content-type | |
:content-transfer-encoding; q=dns; s=default; b=sRvVE6y7XvAjjD6m | |
Utp5Z8DMGpugW1RrnYfdZ+vifpgkrgFbkZBqFdactt7F5mP4W4KEVFzlMDBrVUp7 | |
ubSkwaWRnUvbOs1tKhEkWtXvU9CQJaqK+yJVoF+LeA5pK6he6PmjURR9LhcWuCi0 | |
MbpIQdL2IV/DWl68HL2ywXzo1QE= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:subject:to:references:from:message-id:date | |
:mime-version:in-reply-to:content-type | |
:content-transfer-encoding; s=default; bh=mQC2vWARB+/SLYAPgiMgp+ | |
8rrpU=; b=ZiVwxnoxN0wU2RD2EYaWuhjRrifxOIoLhjV+GWihr7orYVBIVD6TGP | |
DR1q+GLHQX4FsJh0KU9qUg1BpEYTSZogp5IYAVfCvIBFllWmShzTTvmZjK+q4uxi | |
qqfD8b3Y7d7mWfjIMDOlXuqbkVSYDaY+X4JkZRsOJiEQ+YZWt7k4w= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Authentication-Results: | sourceware.org; auth=none |
X-Virus-Found: | No |
X-Spam-SWARE-Status: | No, score=-6.8 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy=controller, organization |
X-HELO: | homiemail-a56.g.dreamhost.com |
Subject: | Re: Accessing SMB share as wrong user? |
To: | cygwin AT cygwin DOT com |
References: | <7f4eb950-de06-2981-c9b4-fd345c11ffb3 AT dd-b DOT net> <705418614 DOT 20170529225346 AT yandex DOT ru> |
From: | David Dyer-Bennet <dd-b AT dd-b DOT net> |
Message-ID: | <36eba274-fa2c-2587-0d61-0ef98a8df860@dd-b.net> |
Date: | Mon, 29 May 2017 15:22:46 -0500 |
User-Agent: | Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 |
MIME-Version: | 1.0 |
In-Reply-To: | <705418614.20170529225346@yandex.ru> |
X-IsSubscribed: | yes |
On 5/29/2017 14:53, Andrey Repin wrote: > Greetings, David Dyer-Bennet! > >> All my files are on drive P: in Windows, which is an SMB share >> equivalent to \\fsfs\ddb\Documents. Everything works fine in windows >> apps, and I see what I expect in Explorer, including when I go down to >> security properties and look in detail. > >> However, Cygwin has trouble with this lately (I can't trace exactly when >> it started happening; not weeks, maybe a year, but I've been running >> essentially this way since 2006 and most of the time things were fine). > >> Cygwin appears to be accessing the share as some kind of unknown user, >> rather than as the proper user configured in Windows for that share >> (which is FSFS\ddb). > >> In Cygwin "id" shows >> $ id >> uid=197608(David Dyer-Bennet) gid=197121(None) >> groups=197121(None), > >> 114(Local account and member of Administrators group), >> 544(Administrators), > > You're running Cygwin with elevated privileges. I guess so; I had one window each way, doesn't make a difference which window I was in for this so it's not part of the problem or solution. >> 545(Users),4(INTERACTIVE),66049(CONSOLE >> LOGON),11(Authenticated Users),15(This Organization),113(Local >> account),66048(LOCAL),262154(NTLM Authentication),405504(High Mandatory >> Level) > >> but if I create a file it gets created owned by "Unknown+User": >> $ touch foobar > >> David Dyer-Bennet AT DDB4 /cygdrive/p >> $ ls -l foobar >> ----r--r-- 1 Unknown+User Unix_Group+1001 0 May 28 17:27 foobar > >> David Dyer-Bennet AT DDB4 /cygdrive/p >> $ getfacl foobar >> # file: foobar >> # owner: Unknown+User >> # group: Unix_Group+1001 > > Your share is located on Samba server. > >> user::--- >> group::r-- >> other:r-- Specifically, FreeNAS. (No domain controller, though.) >> And then of course I can't access it: >> $ echo things >> foobar >> -bash: foobar: Permission denied > > See Cygwin manual about setting up your network identity. > Read around nsswitch.conf and implications of its different settings. Thanks, I'll follow that up. >> I haven't that I've noticed done anything to change what user I run as; >> $USER is "David Dyer-Bennet" (the Windows username I'm in under), and >> /etc/passwd has default output from mkpasswd, > > Ditch /etc/passwd unless you absolutely require it. Huh; thought it was needed. I don't think I'm *using* it in any way. Is it important to delete the actual file? >> including the user "David >> Dyer-Bennet" with the UID 197608 (same is ID shows at the command line). > >> At least I can count on people here not answering "just ditch >> Cygwin"...right? > > And please leave ramblings outside the list. This was absolutely uncalled for. Um...a little pleasant remark about this being the home turf of Cygwin is out of place? If so, sorry! -- David Dyer-Bennet <dd-b AT dd-b DOT net> http://dd-b.net/ -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |