From: "Matthias@gmx.li" <matthias.meyer@gmx.li>
To: cygwin@cygwin.com
Subject: endless loop with junction points
Date: Fri, 05 Apr 2024 10:04:42 +0200 [thread overview]
Message-ID: <947bc8610a34164e8047dec9ba13cf21e24686c1.camel@gmx.li> (raw)
I try to save ACLs during a ssh session to my windows client with an ${priv_user} with following
access rights:
editrights -a SeAssignPrimaryTokenPrivilege -u ${priv_user}
editrights -a SeCreateTokenPrivilege -u ${priv_user}
editrights -a SeTcbPrivilege -u ${priv_user}
editrights -a SeDenyRemoteInteractiveLogonRight -u ${priv_user}
editrights -a SeServiceLogonRight -u ${priv_user}
In the ssh terminal I run:
icacls "C:\Users\*" /save C:\obsAttrib\ACLinfo /T /C /L /Q
Unfortunately it doesn't work because icacls follows junctions points in an endless loop. e.g.:
C:\Users\All Users\Application Data\Application Data\Application Data\Application
Data\Application Data\Application Data\Application Data\Application Data\Application
Data\Application Data\Application Data\Adobe\ARM\Reader_15.010.20060\meyer\ReaderDCManifest.msi:
The system cannot find the path specified
If I run the same command from an CMD Terminal (as administrator) it work. icacls don't follow the
junctions. icacls report "Access is denied" for all junction points.
In opposite - if I run ls -R "/cygdrive/C/Users/Application Data" it also don't follow the junction
point.
Any hint how to execute icacls?
Thanks in advance
Matthias
reply other threads:[~2024-04-05 8:04 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=947bc8610a34164e8047dec9ba13cf21e24686c1.camel@gmx.li \
--to=matthias.meyer@gmx.li \
--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).