Outils pour utilisateurs

Outils du site


tech:monter_un_serveur_sftp_chroote_avec_openssh

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
tech:monter_un_serveur_sftp_chroote_avec_openssh [2025/09/18 15:24] Jean-Baptistetech:monter_un_serveur_sftp_chroote_avec_openssh [2025/09/25 15:03] (Version actuelle) Jean-Baptiste
Ligne 13: Ligne 13:
 chown root:nsc /chroot chown root:nsc /chroot
 chmod 750 /chroot chmod 750 /chroot
 +
 useradd sftpuser -M -d /dev/null -s /sbin/nologin useradd sftpuser -M -d /dev/null -s /sbin/nologin
 +# useradd is a low level utility for adding users. On Debian, administrators should usually use adduser(8) instead.
 +
 echo "/mnt/shared/ /chroot/shared/    none _netdev,bind 0 0" >> /etc/fstab echo "/mnt/shared/ /chroot/shared/    none _netdev,bind 0 0" >> /etc/fstab
 </code> </code>
tech/monter_un_serveur_sftp_chroote_avec_openssh.1758201863.txt.gz · Dernière modification : de Jean-Baptiste

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki