James Deathe

Results 21 comments of James Deathe

Work-around could be to install locally from a source image: ``` $ docker run --rm --detach --name scmi-src jdeathe/centos-ssh:2.5.1 sleep infinity $ sudo docker cp scmi-src:/etc/systemd/system /etc/systemd/ $ sudo docker...

@Pavo-IM This is expected; the value used for SSH_USER didn’t validate. Try without an uppercase character. Ref: https://github.com/jdeathe/centos-ssh/blob/378c503b1b240609e8a9d012e3ec74f5f5998e40/src/usr/sbin/sshd-bootstrap#L744

@Pavo-IM This validation was based on the following standards based validation routine: Ref: https://github.com/shadow-maint/shadow/blob/4.6/man/useradd.8.xml#L639-L661 However, looking into the source of the shadow rpm for CentOS 7 the user name validation...

7.8.2003 has been released https://hub.docker.com/layers/centos/library/centos/centos7.8.2003/images/sha256-50b9a3bc27378889210f88d6d0695938e45a912aa99b3fdacfb9a0fef511f15a?context=explore

https://github.com/jdeathe/centos-ssh/blob/2.6.1/src/usr/sbin/sshd-bootstrap#L1238-L1246 `mkdir` will return an error if the `.ssh` directory exists. Could switch to `install` here instead: ``` install \ --owner="${ssh_user}" \ --group="${ssh_user}" \ --mode=700 \ -d "${ssh_user_home}"/.ssh install \...

@daniel-es6 Thanks for your interest in the project and for reporting this issue. The current release (2.6.1) is not able to support mapping a user's home directory that already contains...

Steps to replicate on OSX: ``` install -d -o "$(id -u)" -g "$(id -g)" -m 755 "/tmp/${USER}" install -d -o "$(id -u)" -g "$(id -g)" -m 700 "/tmp/${USER}/.ssh" cd "/tmp/${USER}"...

Proof-of-concept work-around on OSX: ``` install -d -o "$(id -u)" -g "$(id -g)" -m 755 "/tmp/${USER}" install -d -o "$(id -u)" -g "$(id -g)" -m 700 "/tmp/${USER}/.ssh" cd "/tmp/${USER}" tee...

@daniel-es6 Instructions on how to patch until 2.7.0 is released ☝️

@daniel-es6 There was a missing `\n` in my patch example. I've updated [the example](https://github.com/jdeathe/centos-ssh/issues/906#issuecomment-803601290) now.