public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* More about permissions
@ 2015-03-31  4:11 Eliot Moss
  2015-03-31 10:18 ` Corinna Vinschen
  0 siblings, 1 reply; 13+ messages in thread
From: Eliot Moss @ 2015-03-31  4:11 UTC (permalink / raw)
  To: cygwin

Dear Cygwin community --

Along with some others, I've been struggling a little to accommodate
the changes to permissions handling that came lately.  I think I about
have it figured out to work mostly Unix-like within my cygwin tree,
but have one remaining thing I am wondering about, even though I have
been through the ntsec document more than once.  (I think everyone
will admit that this is complicated :-) ...)

- I have created a new group, that I call Cygwin, to be the typical
   group of cygwin-related files, so that I can control group permissions
   appropriately. I am a member of that group.

- I have found that if a directory is chmod to 2755 (2000 == set gid)
   and the directory's group is Cygwin, then cygwin-created files in
   the directory get group Cygwin.  (This was not necessarily happening
   before.)  To get this to happen, I had to list the sid of the Cygwin
   group as my group in my line of the /etc/passwd file.  Otherwise the
   group would be me, which does not seem to allow the same differentiation
   of user versus group permissions.

- I could not find an explanation of the 'mask' list by getfacl.  Near
   as I can tell it is not really settable, although setfacl does not
   complain, and it is the OR of the permissions of the various groups.

Now, to what I would like to do.  Ideally I want SYSTEM to have rwx
access to everything.  Seems a generally good idea on Windows, and at
least r permission on files and rx on directories is needed for my
backup program to access things.

But if I get group:SYSTEM:rwx and default:group:SYSTEM:rwx, then ls
always lists rwx for the group part of any such file, and chmod, if
applied, affects SYSTEM's access bits.  What I'd like is for SYSTEM's
role here to be hidden.  If there are any files where I want to restrict
SYSTEM, I can use Windows tools or setfacl to manipulate them.

Is this simply not possible with the new scheme?

Regards -- Eliot Moss

--
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

^ permalink raw reply	[flat|nested] 13+ messages in thread
* OpenSSH 6.8p1-1 and keychain: can't determine fingerprint
@ 2015-03-27  5:04 White, W John (GE Transportation)
  0 siblings, 0 replies; 13+ messages in thread
From: White, W John (GE Transportation) @ 2015-03-27  5:04 UTC (permalink / raw)
  To: cygwin

After updating to OpenSSH 6.8p1-1, I experienced an issue where, at
every login, keychain (in my .bash_profile) wrote a warning:

My .bash_profile lines:
# Start keychain, passing as args all private keys to be cached
keychain ${HOME}/.ssh/id_dsa #, other_key1, other_key2, ...
# That creates a file which must be sourced to set env vars
source ${HOME}/.keychain/${HOSTNAME}-sh

The warning:
Can't determine fingerprint from the following line, falling back to filename

A post
( http://newscentral.exsees.com/item/d00c4734c9eed7abe32de6a741f5a3fe-8dd4abc7f69143e4ea63672f83a77a14 )
to an Arch Linux forum expressed a similar report, along with a solution,
adding a case for SHA256 or MD5:
https://github.com/funtoo/keychain/blob/master/keychain.sh#L692 .

For clarity, that's:
*\ SHA256:[0-9a-zA-Z\+\/=]*|*\ MD5:[0-9a-zA-Z\+\/=]*)
    # The new OpenSSH 6.8+ format,
    #   1024 SHA256:mVPwvezndPv/ARoIadVY98vAC0g+P/5633yTC4d/wXE /home/barney/.ssh/id_dsa (DSA)
    echo "$ef_line" | cut -f2 -d' '
    ;;

I applied the changes to my /usr/bin/keychain, and the errors stopped.

I think this change belongs in Cygwin, too, since OpenSSH 6.8p1-1 .

--
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

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2015-04-01 17:45 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-31  4:11 More about permissions Eliot Moss
2015-03-31 10:18 ` Corinna Vinschen
2015-03-31 12:22   ` Eliot Moss
2015-03-31 15:14     ` Corinna Vinschen
     [not found]     ` <1837571490.20150331235503@yandex.ru>
2015-04-01  0:41       ` Eliot Moss
2015-04-01  1:05         ` Andrey Repin
2015-04-01  7:38           ` Corinna Vinschen
2015-04-01 12:50             ` Andrey Repin
2015-04-01 13:27               ` OpenSSH 6.8p1-1 and keychain: can't determine fingerprint wilson
2015-04-01 13:33                 ` Kal Sze
2015-04-01 17:45             ` More about permissions Eliot Moss
2015-04-01  7:35         ` Corinna Vinschen
  -- strict thread matches above, loose matches on Subject: below --
2015-03-27  5:04 OpenSSH 6.8p1-1 and keychain: can't determine fingerprint White, W John (GE Transportation)

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).