From: Andrey Repin <anrdaemon@yandex.ru>
To: L A Walsh <cygwin@tlinx.org>, cygwin@cygwin.com
Subject: Re: rename a user using setfacl -- possible? how?
Date: Sat, 06 Jul 2019 09:20:00 -0000 [thread overview]
Message-ID: <113642000.20190706120641@yandex.ru> (raw)
In-Reply-To: <5D1FA19D.2020707@tlinx.org>
Greetings, L A Walsh!
> Have an acl on a file 'testfile' that appears to include a userid
> with a GUID corresponding to some older value for the local system.
> I'm gave the old guid a name in /etc/group different from its name,
> say calling it 'oldname' (where current name, is say, 'curname').
> I guess I don't know how to modify an entry to either 1-rename it, or
> 2 add the new entry.
You don't.
If you want to change name for display purposes, look into nsswitch.conf and
associated documentation.
Cygwin do not invent its own users/groups/ids/guids. It maps Windows
permissions to some POSIX equivalent, but internally it still using native
permissions.
> I tried setfacl -x group:oldname:rwx -m group:curname:rwx but got:
> setfacl: illegal acl entries
Seems like it did not recognize the group name. At least that's how it react
here.
> will setfacl not work for this task?
It should, but I strongly suggest to avoid using it outside Cygwin directory
tree to maintain maximum interoperability with Windows programs.
> How do you add a new user to the access list -- obviously -x removes
> a user, but not sure if 'add' is covered by -m or whether or not you 'add'
> by specifying the new entry.
I just found out that if you configure cygdrive with noacl, getfacl tell
you to find better ways to express yourself. And setfacl will silently fail
(which is questionable behavior, TBH).
> BTW -- is there an easy way to see the numeric values it is using
> for a given name?
> Like:
> group:Local account and member of Administrators group:rwx
getent passwd
getent group
> I remember seeing that, but it isn't in my /etc/group file.
It should not.
> Tried getfacl with -n but that doesn't seem to be an option
> to display a numeric GUID.
--
With best regards,
Andrey Repin
Saturday, July 6, 2019 11:09:23
Sorry for my terrible english...
--
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
next prev parent reply other threads:[~2019-07-06 9:20 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-05 19:14 L A Walsh
2019-07-06 4:45 ` Brian Inglis
2019-07-06 9:20 ` Andrey Repin [this message]
2019-07-06 9:39 ` L A Walsh
2019-07-06 10:41 ` Sam Edge
2019-07-06 16:05 ` Andrey Repin
2019-07-06 17:01 ` Brian Inglis
2019-07-17 1:52 ` L A Walsh
2019-07-17 9:05 ` Andrey Repin
2019-07-06 19:41 ` Achim Gratz
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=113642000.20190706120641@yandex.ru \
--to=anrdaemon@yandex.ru \
--cc=cygwin@cygwin.com \
--cc=cygwin@tlinx.org \
/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).