permission 600

Marco Atzeri marco.atzeri@gmail.com
Sun Jan 9 05:38:53 GMT 2022


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

> 
> I noticed this phenomena in launching the  jupyter lab.
> 
>    File "/usr/lib/python3.8/site-packages/jupyter_core/paths.py", line 909, in secure_write
>      raise RuntimeError("Permissions assignment failed for secure file: '{file}'."
> RuntimeError: Permissions assignment failed for secure file: '/home/user/.local/share/jupyter/runtime/jpserver-27580.json'. Got '0o644' instead of '0o0600'.
> 
> Workaround for the jupter lab error is
> export JUPYTER_ALLOW_INSECURE_WRITES=true
> 
> Tatsuro
> 

Regards
Marco



More information about the Cygwin mailing list