Bug 2678 - PubKey Authentication fails when more than one user/group ACL is set on any Path component to authorized_keys
Summary: PubKey Authentication fails when more than one user/group ACL is set on any P...
Status: NEW
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: sshd (show other bugs)
Version: 5.3p1
Hardware: amd64 Linux
: P5 minor
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-17 02:32 AEDT by Dario Vieli
Modified: 2019-07-19 15:30 AEST (History)
1 user (show)

See Also:


Attachments
ssh client debug session - failure to login via pubKeyAuth (5.80 KB, application/octet-stream)
2017-02-17 02:32 AEDT, Dario Vieli
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dario Vieli 2017-02-17 02:32:35 AEDT
Created attachment 2944 [details]
ssh client debug session - failure to login via pubKeyAuth

Overview:
PubKey Authentication fails when more than one user/group Filesystem ACL is set on any Path component to authorized_keys. Default ACLs are working fine.
This even applies, if the additional user/group ACL is the same as the current owner.
As soon as the additional user/group ACLs are removed, PubKey Auth works again.

Steps to reproduce:
$ setfacl -m 'user:alutools:rwx' /gmnt/var/alutoolbox

$ getfacl /gmnt/var/alutoolbox
getfacl: Removing leading '/' from absolute path names
# file: gmnt/var/alutoolbox
# owner: alutools
# group: alutools
user::rwx
user:alutools:rwx
group::r-x
mask::r-x
other::r-x
default:user::rwx
default:user:extfran4:rwx
default:group::r-x
default:mask::rwx
default:other::r-x

$ ls -la /gmnt/var/alutoolbox
total 23
drwxrwxr-x+  5 alutools alutools 4096 Feb 16 15:32 .
drwxr-xr-x  12 root     root     4096 Feb  2 16:16 ..
..
drwx------+  2 alutools alutools 4096 Feb 16 14:20 .ssh

$ ls -la /gmnt/var/alutoolbox/.ssh/authorized_keys
-rw-------+ 1 alutools alutools 794 Feb 16 14:29 /gmnt/var/alutoolbox/.ssh/authorized_keys


$ ssh -i path/to/key alutoolbox@localhost

Actual Results:
ssh fallback to password prompt after failed PubKey try (see debug.log attachment)

Expected Results:
ssh login with provided PubKey

Build Date & Hardware:
Thu 12 May 2016 06:52:35 AM CEST @ CentOS 6.8
Comment 1 Damien Miller 2019-07-19 15:30:29 AEST
Please record a debug trace from the server for a failed connection and attach it here. The client logs are not going to be of much use I'm afraid.