delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2022/01/11/03:56:17

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 35D813894C0C
Authentication-Results: sourceware.org;
dmarc=pass (p=none dis=none) header.from=yahoo.co.jp
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=yahoo.co.jp
X-YMail-OSG: gk.gCjAVM1nPn3P3MsVg8PLNKG8oC5W.rq8fWqSsvY3gRY_RnKxYW_Pz7ZzVwRd
_4W3j6n50rzN6LFfoR0ZEsdeiFlO_sHRhCz4dLlO.fjiTOLeyHfaDBFZ9qldD2YF8atsUF21V_8Z
rnsQZpuWpgXxAECO_8sbLSCqHZalvRGwnPBOx00kbi31NX.w3iWyoBzg1EnyB3hjL6CPEu5kfxXM
KO7l9yPgNsqUzDkvppg777l587S9HFN_f.vqp.tTI8GcY610NSbXVKK38r2wWwQtwl6FL5yNlMEG
InF6sLEjRsUQ8PB3oX32z5foUUr8QvCe9OkZszQbKasJz9PepsjUxOkdMAO5yB7BodaMWWJ.vEuc
OIMBh6A1gWMvVLCPB7cSVL6H7dgDSsrOOKejIOZBYhdQxzjzgsDeA7q772vrR2Oa5qH9vMI0yTMg
lFALA6xXtAKYkEkDnrS367vWansqjd9vJqsjSwmLKem4MtllF8zJBzmDuyjHWWhUSeViUQ46Ij0U
94cGwLUToYv56vt7iwF14lZbYFvnnrRAGR5iBIchwB3vDGeVT9PBZhTePrqEU9ShmHqfCfyum6QN
Odi6VvTzgPHLrfcPwQLfDVocTFL7d.IAoulyBJJg3dmeEBocU1_n.f6K_wNkWz9SN6lvdnrHdWNc
_G8nYlWl.__RCErnYUytGG64Cj8ShpJZeLH5VHs07DN2E7dWSrf3DC0pFV5_sZxpeMkYvvZ8WRx0
9kfoSd3eR6hONHjYbpeBzL3H1fedbXQKJie.o9jMGI67g4b_oJBB5vIqa.HWhVwE5GptqqJdF4Nh
xc0dXiEcOFlyFMoV5175DcGn.geBhJm9ju.vtgBjiHRYYgMzBJBsuu7w8LLn7M5.U
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1641891340;
s=yj20110701; d=yahoo.co.jp;
h=Date:From:Reply-To:To:Message-ID:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding:References;
bh=AHWRaXvSQyQPdvtPU+zmGygQeFAOAayturBPV8XStOg=;
b=iJNZUlbDymleBOxNY8+QTaBz6d1FT1dgCpmOzyXmxp1Vo1Y5Ao2uQf2Bpn19sFSK
OI9A7Ja6+mfs4DCqODHHxn9y5UcfT+5t+/EuOXhi/7JKvBvV1iVIX4qTkM5k4qY2/yb
5g/oy9h/WwurhqNTALJMlONWUIqnqg1QfeSaVbek=
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=yj20110701; d=yahoo.co.jp;
h=Date:From:Reply-To:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:References;
b=lpeVx0fqtY+Z78ci8FEvAqcF3vDJlM4QZ2PzNxDvw2W6D06M+t1OCSsNszHsfVG9
Yq5qCu+3GWtlWDcDwlWanG6DCt8bUMpWj9UIeIqZIorLX08Muk3welX8bcqLVZ7l99g
9FMANgYYPcK45HUwq2OQY1hM9NJL6ycviEgMJE5w=;
Date: Tue, 11 Jan 2022 17:55:39 +0900 (JST)
From: Tatsuro MATSUOKA <tmacchant2 AT yahoo DOT co DOT jp>
To: Thomas Wolff <towo AT towo DOT net>, "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Message-ID: <1678276178.1336676.1641891339407.JavaMail.yahoo@mail.yahoo.co.jp>
Subject: Re: permission 600
MIME-Version: 1.0
References: <1678276178 DOT 1336676 DOT 1641891339407 DOT JavaMail DOT yahoo DOT ref AT mail DOT yahoo DOT co DOT jp>
X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_ENVFROM_END_DIGIT,
FREEMAIL_FROM, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,
SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.4
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Reply-To: Tatsuro MATSUOKA <matsuoka AT nuce DOT nagoya-u DOT ac DOT jp>
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 20B8uFRq018869

> ----- Original Message ----- 
> From: "Tatsuro MATSUOKA" 
> To: "Thomas Wolff" ; "cygwin
> Date: 2022/01/10 月 20:10
> Subject: Re: permission 600
> 
> 
> > ----- Original Message -----
> > From: "Thomas Wolff" 
> > To: "cygwin@
> > Date: 2022/01/10 月 08:28
> > Subject: Re: permission 600
> > 
> > 
> > 
> > Am 10.01.2022 um 00:13 schrieb Tatsuro MATSUOKA:
> > >> ----- Original Message -----
> > >>
> > >> From: "Eliot Moss"
> > >> To: "cygwin
> > >> Date: 2022/01/09 æ—¥ 20:26
> > >> Subject: Re: permission 600
> > >>
> > >>
> > >> On 1/9/2022 6:11 AM, Tatsuro MATSUOKA wrote:
> > >>>> ----- Original Message -----
> > >>>>
> > >>>> From: "Thomas Wolff"
> > >>>> Date: 2022/01/09 æ—¥ 17:51
> > >>>> Subject: Re: permission 600
> > >>>> Am 09.01.2022 um 07:10 schrieb Tatsuro MATSUOKA:
> > >>>>>> ----- Original Message -----
> > >>>>>>
> > >>>>>> From: "Marco Atzeri"
> > >>>>>> To: "cygwin> Date: 2022/01/09 æ—¥ 14:39
> > >>>>>> Subject: Re: permission 600
> > >>>>>>
> > >>>>>>
> > >>>>>> On 09.01.2022 06:28, Tatsuro MATSUOKA wrote:
> > >>>>>>> $ echo aaa > test.txt
> > >>>>>>> $ ls -l  test.txt
> > >>>>>>> -rw-r--r-- 1 user user 4 Jan  9 14:07 test.txt
> > >>>>>>> $ chmod 600 test.txt
> > >>>>>>> $ ls -l test.txt
> > >>>>>>> -rw-r--r-- 1 user user 4 Jan  9 14:07 test.txt
> > >>>>>> it works for me
> > >>>>>>
> > >>>>>> $ ls -l test.txt
> > >>>>>> -rw-r--r-- 1 Marco Kein 4 Jan  9 06:35 test.txt
> > >>>>>>
> > >>>>>> $ chmod 600 test.txt
> > >>>>>>
> > >>>>>> $ ls -l test.txt
> > >>>>>> -rw------- 1 Marco Kein 4 Jan  9 06:35 test.txt
> > >>>>>>
> > >>>>>> I suspect that having user and group called same
> > >>>>>> is the clue
> > >>>>>>
> > >>>>> Ah! Thanks!
> > >>>>>
> > >>>>> Tatsuro
> > >>>> Did you verify it by using different names?
> > >>>> It can hardly be an explanation by POSIX means. If so, it must be some
> > >>>> weird consequence of Windows-specific stuff. Maybe a workaround could be
> > >>>> found for cygwin?
> > >>> I made another windows account and sign in PC with different user name.
> > >>> But result for chmod 600 gave the same results.
> > >>> I found the workaround for jupyter by readind the code of "paths.py" in jupyter.
> > >> You can find the underlying Window permissions using icacls.  Cygwin
> > >> has to set up some funky work-arounds to model some of the POSIX
> > >> permissions - the two models are substantially different.  Sometimes
> > >> clearing back to some nominal Windows permissions and applying
> > >> chmod again helps.  "setfacl -b" can help clear out permissions,
> > >> etc.  Don't forget that permissions can be inherited from the
> > >> containing directory as well.
> > >>
> > >> Other people may be able to offer more specific guidance, especially
> > >> if you post the output of icacls.
> > >>
> > >> Best - Eliot Moss
> > >>
> > > Because my C drive is not enough, I installed cygwin into USB drive and make home directory on it.
> > > chmod issue are story files on the usb drive.
> > > On files on C drive, chmod 600 works as expected.
> > >
> > > My workround for jupyter changed :
> > > export JUPYTER_ALLOW_INSECURE_WRITES=true
> > > =>
> > > export JUPYTER_RUNTIME_DIR=/cygdrive/c/Users/user/AppData/Local/Temp
> > > (/cygdrive/c/Users/user/AppData/Local/Temp "tmp" environmental variable value in my current environment.)
> > >
> > > For another usb drive, chmod works as expected.
> > > chmod does not work  => FAT32
> > > chmod works => NTFS
> > I was about to ask...
> > > I back up all files to the external HDD and  format FAT32 drive to NTFS drive and back them.
> > You can actually convert a USB drive to NTFS without copying files and 
> > reformatting,
> > using $SYSTEMROOT/System32/convert
> > 
> I will try after backup. 
> Thanks!
> 
> Tatsuro

I would like to clean up USB drive so that I format the drive and come back necesary file images were back.
So I did not use convert.
But thanks for your kindness.
After formatting USB drive in NTFS format, chmod 600 works as expected.
and 
$ python3.8 -m jupyter lab
now works without any patch work.

Thanks!

Tatsuro


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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019