Dear Maintainer,
I confirm this behaviour on Debian Jessie with following packages....
root@choobaka:~# uname -a
Linux choobaka 3.16-2-amd64 #1 SMP Debian 3.16.3-2 (2014-09-20) x86_64
GNU/Linux
root@choobaka:~# cat /etc/debian_version
jessie/sid
root@choobaka:~# dpkg -l |grep openssh
ii openssh-client 1:6.7p1-2 amd64 secure shell
(SSH) client, for secure access to remote machines
ii openssh-server 1:6.7p1-2 amd64 secure shell
(SSH) server, for secure access from remote machines
ii openssh-sftp-server 1:6.7p1-2 amd64 secure shell
(SSH) sftp server module, for SFTP access from remote machines
root@choobaka:~#
root@choobaka:~# dpkg -l |grep systemd
ii libpam-systemd:amd64 215-5+b1 amd64 system and
service manager - PAM module
ii libsystemd0:amd64 215-5+b1 amd64 systemd utility
library
ii systemd 215-5+b1 amd64 system and
service manager
ii systemd-sysv 215-5+b1 amd64 system and
service manager - SysV links
My filesystem seems correctly mounted as follow....
root@choobaka:~# df
Sys. de fichiers blocs de 1K Utilis�
Disponible Uti% Mont� sur
/dev/md0 944108 634716
260600 71% /
udev 10240 0
10240 0% /dev
tmpfs 1225648 9600
1216048 1% /run
tmpfs 3064120 0
3064120 0% /dev/shm
tmpfs 5120 4
5116 1% /run/lock
tmpfs 3064120 0
3064120 0% /sys/fs/cgroup
/dev/mapper/vg_data-lv_data 140862336 2947376
130752900 3% /data
/dev/mapper/vg_raid-lv_photos 20511356 45124
19417656 1% /exports/data/lv_photos
/dev/mapper/vg_raid-lv_mail 1998672 3140
1890676 1% /exports/data/lv_mail
/dev/mapper/vg_raid-lv_private 1998672 785236
1108580 42% /exports/data/lv_private
/dev/mapper/vg_raid-lv_home 41153856
38105548 951156 98% /home
/dev/mapper/vg_system-lv_tmp 1998672 3184
1890632 1% /tmp
/dev/mapper/vg_system-lv_var 3776568 432352
3149044 13% /var
/dev/mapper/vg_openldap-lv_rootfs 194241 39178
144823 22% /var/lib/lxc/vm-openldap/rootfs
/dev/mapper/vg_lenny_x86_amd64_3-lv_rootfs 289293 22522
251411 9% /var/lib/lxc/vm-lenny-x86-amd64-3/rootfs
/dev/mapper/vg_system-lv_usr 7557288 1010624
6156112 15% /usr
/dev/mapper/vg_owncloud-lv_rootfs 289293 47850
226083 18% /var/lib/lxc/vm-owncloud/rootfs
/dev/mapper/vg_wheezy_x86_amd64_3-lv_rootfs 194241 40705
143296 23% /var/lib/lxc/vm-wheezy-x86-amd64-3/rootfs
/dev/mapper/vg_squeeze_x86_ia32_3-lv_rootfs 194241 19349
164652 11% /var/lib/lxc/vm-squeeze-x86-ia32-3/rootfs
/dev/mapper/vg_wheezy_x86_ia32_3-lv_rootfs 388480 272588
95412 75% /var/lib/lxc/vm-wheezy-x86-ia32-3/rootfs
/dev/mapper/vg_squeeze_x86_amd64_3-lv_rootfs 194241 50987
133014 28% /var/lib/lxc/vm-squeeze-x86-amd64-3/rootfs
/dev/mapper/vg_jessie_x86_amd64_3-lv_rootfs 194241 47360
136641 26% /var/lib/lxc/vm-jessie-x86-amd64-3/rootfs
/dev/mapper/vg_raid_0-lv_tmp_lenny_x86_amd64_3 5029504 10360
4757000 1% /var/lib/lxc/vm-lenny-x86-amd64-3/rootfs/tmp
/dev/mapper/vg_owncloud-lv_var 1580520 206592
1292008 14% /var/lib/lxc/vm-owncloud/rootfs/var
/dev/mapper/vg_owncloud-lv_tmp 289293 2085
271848 1% /var/lib/lxc/vm-owncloud/rootfs/tmp
/dev/mapper/vg_openldap-lv_tmp 289293 2097
271836 1% /var/lib/lxc/vm-openldap/rootfs/tmp
/dev/mapper/vg_openldap-lv_usr 3811016 1401104
2212908 39% /var/lib/lxc/vm-openldap/rootfs/usr
/dev/mapper/vg_openldap-lv_var 388480 180466
187534 50% /var/lib/lxc/vm-openldap/rootfs/var
/dev/mapper/vg_owncloud-lv_usr 6061632 2774064
2972996 49% /var/lib/lxc/vm-owncloud/rootfs/usr
/dev/mapper/vg_lenny_x86_amd64_3-lv_var 487652 107609
354443 24% /var/lib/lxc/vm-lenny-x86-amd64-3/rootfs/var
/dev/mapper/vg_lenny_x86_amd64_3-lv_usr 4202976 1219488
2763328 31% /var/lib/lxc/vm-lenny-x86-amd64-3/rootfs/usr
/dev/mapper/vg_raid_0-lv_tmp_jessie_x86_amd64_3 5029504 10356
4757004 1% /var/lib/lxc/vm-jessie-x86-amd64-3/rootfs/tmp
/dev/mapper/vg_jessie_x86_amd64_3-lv_var 487652 197043
265009 43% /var/lib/lxc/vm-jessie-x86-amd64-3/rootfs/var
/dev/mapper/vg_raid_0-lv_tmp_wheezy_x86_ia32_3 5029504 10372
4756988 1% /var/lib/lxc/vm-wheezy-x86-ia32-3/rootfs/tmp
/dev/mapper/vg_jessie_x86_amd64_3-lv_usr 3462176 2771216
511760 85% /var/lib/lxc/vm-jessie-x86-amd64-3/rootfs/usr
/dev/mapper/vg_wheezy_x86_ia32_3-lv_usr 3462176 2583312
699664 79% /var/lib/lxc/vm-wheezy-x86-ia32-3/rootfs/usr
/dev/mapper/vg_wheezy_x86_ia32_3-lv_var 487652 172293
289759 38% /var/lib/lxc/vm-wheezy-x86-ia32-3/rootfs/var
/dev/mapper/vg_raid_0-lv_tmp_wheezy_x86_amd64_3 5029504 10360
4757000 1% /var/lib/lxc/vm-wheezy-x86-amd64-3/rootfs/tmp
/dev/mapper/vg_wheezy_x86_amd64_3-lv_var 588352 188388
369244 34% /var/lib/lxc/vm-wheezy-x86-amd64-3/rootfs/var
/dev/mapper/vg_raid_0-lv_tmp_squeeze_x86_ia32_3 5029504 10372
4756988 1% /var/lib/lxc/vm-squeeze-x86-ia32-3/rootfs/tmp
/dev/mapper/vg_squeeze_x86_ia32_3-lv_var 487652 86126
375926 19% /var/lib/lxc/vm-squeeze-x86-ia32-3/rootfs/var
/dev/mapper/vg_raid_0-lv_tmp_squeeze_x86_amd64_3 5029504 10372
4756988 1% /var/lib/lxc/vm-squeeze-x86-amd64-3/rootfs/tmp
/dev/mapper/vg_squeeze_x86_ia32_3-lv_usr 3462176 473140
2809836 15% /var/lib/lxc/vm-squeeze-x86-ia32-3/rootfs/usr
/dev/mapper/vg_wheezy_x86_amd64_3-lv_usr 3462176 2824148
458828 87% /var/lib/lxc/vm-wheezy-x86-amd64-3/rootfs/usr
/dev/mapper/vg_squeeze_x86_amd64_3-lv_var 519131 130954
360529 27% /var/lib/lxc/vm-squeeze-x86-amd64-3/rootfs/var
/dev/mapper/vg_squeeze_x86_amd64_3-lv_usr 3966144 2148980
1612364 58% /var/lib/lxc/vm-squeeze-x86-amd64-3/rootfs/usr
tmpfs 612824 0
612824 0% /run/user/10003
After booting, it is not possible to lauch ssh because directory is not
created as previously detected by Ximin
root@choobaka:~# ls -altr /var/run/sshd
ls: cannot access /var/run/sshd: No such file or directory
In order to be sure, i make a trivial test .....
root@choobaka:~# /usr/sbin/sshd -t; echo $?
Missing privilege separation directory: /var/run/sshd
255
which is a correct behaviour for sshd daemon.......but ....
root@choobaka:~# /etc/init.d/ssh start;echo $?
[ ok ] Restarting ssh (via systemctl): ssh.service.
0
..is not a correct behaviour because systemd can NOT detect error. It
seems that /etc/init.d/ssh script
does not test output value for sshd daemon
My proposal is :
before launching sshd, then launch command '/usr/sbin/sshd -t' and
verify output code ($?), then
exit -1 if error
if OK, then launch /usr/sbin/sshd and verify also exit code
best regards
--
--------------------------------------
-- Jean-Marc LACROIX --
-- mailto : jeanmarc.lacr...@free.fr --
---------------------------------------
--
To UNSUBSCRIBE, email to debian-ssh-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/54567a3f.8030...@free.fr