public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Brian Inglis <Brian.Inglis@Shaw.ca>
To: cygwin@cygwin.com
Subject: Re: Cygwin starts take long since march. Three minutes to prompt.
Date: Mon, 3 Apr 2023 09:48:03 -0600	[thread overview]
Message-ID: <b6c0b4e6-17be-2759-83bc-89aac4f4fcab@Shaw.ca> (raw)
In-Reply-To: <b16b0605-8a17-b4a7-fab4-9f79b7015729@bfs.de>

On 2023-04-03 08:59, Thomas Schweikle via Cygwin wrote:
> Am Mo., 03.Apr..2023 um 16:47:42 schrieb Eliot Moss:
>> On 4/3/2023 10:38 AM, Thomas Schweikle via Cygwin wrote:
>>> Cygwin shell takes about three minutes until the prompt is shown. Any idea 
>>> how to find out the cause?

>> I think the most common thing in the past had to do with
>> probing remote mounts.  You could try pruning paths and
>> see what happens, or adjusting mount parameters.

> Mounts are:
> $ cat /proc/mounts
> C:/cygwin/bin /usr/bin ntfs binary,auto 1 1
> C:/cygwin/lib /usr/lib ntfs binary,auto 1 1
> C:/cygwin / ntfs binary,auto 1 1
> C: /cygdrive/c ntfs binary,posix=0,user,noumount,auto 1 1
> G: /cygdrive/g netapp binary,posix=0,user,noumount,auto 1 1
> L: /cygdrive/l netapp binary,posix=0,user,noumount,auto 1 1
> M: /cygdrive/m netapp binary,posix=0,user,noumount,auto 1 1
> O: /cygdrive/o netapp binary,posix=0,user,noumount,auto 1 1
> P: /cygdrive/p netapp binary,posix=0,user,noumount,auto 1 1
> T: /cygdrive/t netapp binary,posix=0,user,noumount,auto 1 1
> V: /cygdrive/v netapp binary,posix=0,user,noumount,auto 1 1
> W: /cygdrive/w netapp binary,posix=0,user,noumount,auto 1 1
> X: /cygdrive/x netapp binary,posix=0,user,noumount,auto 1 1
> Y: /cygdrive/y netapp binary,posix=0,user,noumount,auto 1 1
> Z: /cygdrive/z netapp binary,posix=0,user,noumount,auto 1 1

> I've read somewhere noacl should be given for these mounts. Could not find it, 
> even with a fresh installed cygwin on a fresh windows.

> Trying to reset acls to defaults for "C:\cygwin" gives lots of "access denied" 
> errors, even if running as "Administrator" from an elevated shell. Tried both 
> "cmd.exe" and "powershell.exe". Both did not allow to change acls.

> Seems as if "C:\cygwin" has lost ownership an some acls. Any idea to get them 
> back in place for the whole tree?

Should not need anything special:

$ ls -dl / && getfacl / && icacls `cygpath -m /`	# sanitized:
drwxr-xr-x 1 $USER None 0 Mar 16 18:57 /

# file: /
# owner: $USER
# group: None
user::rwx
group::r-x
other::r-x
default:user::rwx
default:group::r-x
default:other::r-x

C:/.../cygwin64 $HOSTNAME/$USER:(F)
                 $HOSTNAME/None:(RX)
                 Everyone:(RX)
                 CREATOR OWNER:(OI)(CI)(IO)(F)
                 CREATOR GROUP:(OI)(CI)(IO)(RX)
                 Everyone:(OI)(CI)(IO)(RX)

Successfully processed 1 files; Failed processing 0 files

Those kinds of delays are often AD lookup for domain users and groups:
see /etc/nsswitch.conf for settings, and consider running cygserver at system or 
Cygwin startup to preload and cache the info.

-- 
Take care. Thanks, Brian Inglis              Calgary, Alberta, Canada

La perfection est atteinte                   Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter  not when there is no more to add
mais lorsqu'il n'y a plus rien à retirer     but when there is no more to cut
                                 -- Antoine de Saint-Exupéry

  reply	other threads:[~2023-04-03 15:48 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-03 14:38 Thomas Schweikle
2023-04-03 14:47 ` Eliot Moss
2023-04-03 14:59   ` Thomas Schweikle
2023-04-03 15:48     ` Brian Inglis [this message]
2023-04-03 16:10       ` Thomas Schweikle
2023-04-03 18:34         ` Brian Inglis

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=b6c0b4e6-17be-2759-83bc-89aac4f4fcab@Shaw.ca \
    --to=brian.inglis@shaw.ca \
    --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).